Category: Programming
-

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…
-

C++ Programming Questions and Answers – Subscripting
C++ interview questions and answers focuses on “Subscripting”. One shall practice these interview 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,…
-

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…
-

Variables in JavaScript ll
Q 1. Which of the following variables takes precedence over the others if the names are the same? A. Global variable B. The two of the above C. The local element D. None of the above Show Answer Answer:-C. The local element Explanation In JavaScript, the local variable takes precedence over the global variable if…



