Tag: America
-
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 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 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 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 – 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++ 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
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
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…