Tag: America

  • C++ Programming Questions and Answers – Function Call

    C++ Programming Questions and Answers – Function Call

    C++ quiz focuses on “Function Call”. One shall practice these quizzes to improve their C++ programming skills needed for various interviews (campus interviews, walk in interviews, company interviews), placements, entrance exams and other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a beginner, fresher, engineering…

  • CSS Questions & Answers – Selectors

    CSS Questions & Answers – Selectors

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “Selectors”. Q 1. What type of selector is used in this case? p {line-height: 150%;} A. element SelectorsB. class SelectorsC. id SelectorsD. none of the mentioned Show Answer Answer:-A. element Selectors Explanation These selectors are called element selectors and are simply used as follows: element-name {…

  • CSS Questions & Answers – Specificity and Importance

    CSS Questions & Answers – Specificity and Importance

    CSS Multiple Choice Questions & Answers (MCQs) focuses on “Specificity and Importance”. Find the specificity of the statments using the rule given below.A selector’s specificity is calculated as follows:1) count 1 if the declaration is from is a ‘style’ attribute rather than a rule with a selector, 0 otherwise (= a) (In HTML, values of…

  • Python Questions and Answers – Lists – 7

    Python Questions and Answers – Lists – 7

    Python Code Output Questions Python Multiple Choice Questions & Answers (MCQs) focuses on “Lists-7”. Q 1.What will be the output of the following Python code? a=[“Apple”,”Ball”,”Cobra”] a.sort(key=len) print(a) A. Invalid syntax for sort() B. [‘Ball’, ‘Apple’, ‘Cobra’] C.[‘Apple’, ‘Ball’, ‘Cobra’] D.[‘Cobra’, ‘Apple’, ‘Ball’] Show Answer Answer:-B.[‘Ball’, ‘Apple’, ‘Cobra’] Explanation The syntax isn’t invalid and the…

  • Python Questions and Answers – Lists – 6

    Python Questions and Answers – Lists – 6

    Python Multiple Choice Questions & Answers (MCQs) focuses on “Lists-6”. Python Multiple Choice Questions & Answers (MCQs) focuses on “Lists-6”. Q 1. What will be the output of the following Python code? a=[10,23,56,[78]] b=list(a) a[3][0]=95 a[1]=34 print(b) A. [10,34,56,[78]] B. [10,23,56,[95]] C. [10,23,56,[78]] D. [10,34,56,[95]] Show Answer Answer:-B. [10,23,56,[95]] Explanation The above copy is a…

  • Python Questions and Answers – Lists – 5

    Python Questions and Answers – Lists – 5

    Python Questions and Answers – Lists – 5 Python Question Paper focuses on “Lists”. Q 1. What will be the output of the following Python code? print(“Hello, World!”[7:]) values = [[3, 4, 5, 1], [33, 6, 1, 2]]   v = values[0][0] for lst in values: for element in lst: if v > element: v…

  • Python Questions and Answers – Lists – 4

    Python Questions and Answers – Lists – 4

    Python Programming Questions & Answers focuses on “Lists”. Q 1. What will be the output of the following Python code? def f(i, values = []): values.append(i) return values f(1)f(2)v = f(3)print(v) A. [1] [2] [3]B. [1] [1, 2] [1, 2, 3]C. [1, 2, 3]D. 1 2 3 Show Answer Answer:-C. [1, 2, 3] Explanation Execute in…

  • C++ Programming Questions and Answers – Large Objects

    C++ Programming Questions and Answers – Large Objects

    C++ Multiple Choice Questions focuses on “Large Objects”. One shall practice these questions to improve their C++ programming skills needed for various interviews (campus interviews, walk-in interviews, company interviews) entrance exams and other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a beginner, fresher, engineering…

  • Operators and expressions of JavaScript

    Operators and expressions of JavaScript

    Q 1. See the given code of JavaScript and choose the correct output from the following: var string1 = “40”;   varvalueinit=50;   alert( string1 +intvalue);   A. 90 B. 4050 C. 4090 D. Exception Show Answer Answer:-B. 4050 Explanation In JavaScript, the alert method does the typecasting and converts the value of the variable “valueinit” to a string after that it concatenates…

  • JavaScript MCQ

    JavaScript MCQ

    Q 1. Which type of JavaScript language is ___ A. Object-Based B. Object-Oriented C. Assembly-language D. High-level Show Answer Answer:-A. Object-Based Explanation JavaScript is not a pure OOP’s (object oriented programming) based languages such as PHP, java or many other languages, although it is an object-based language. It is not OOP’s based language, because it…

You cannot copy content of this page