Basic javascript And Variables MCQ question and answer – 03 Posted on June 16, 2020June 18, 2020 by admin 6 Created on June 16, 2020 By admin Basic javascript And Variables MCQ question and answer - 03 1 / 10 1. Consider the following snippet codevar string1 = ”123”;var intvalue = 123;alert( string1 + intvalue );The result would be A. 123246 B. 246 C. 123123 D. Exception 2 / 10 2. A function definition expression can be called A. Function prototype B. Function literal C. Function definition D. Function declaration 3 / 10 3. The property of a primary expression is A. stand-alone expressions B. basic expressions containing all necessary functions C. contains variable references alone D. complex expressions 4 / 10 4. Consider the following statementsvar text = "testing: 1, 2, 3"; // Sample textvar pattern = /d+/g // Matches all instances of one or more digitsIn order to check if the pattern matches with the string “text”, the statement is A. text==pattern B. text.equals(pattern) C. text.test(pattern) D. pattern.test(text) 5 / 10 5. The JavaScript’s syntax calling ( or executing ) a function or method is called A. Primary expression B. Functional expression C. Invocation expression D. Property Access Expression 6 / 10 6. What kind of an expression is “new Point(2,3)”? A. Primary Expression B. Object Creation Expression C. Invocation Expression D. Constructor Calling Expression 7 / 10 7. Which of the operator is used to test if a particular property exists or not? A. in B. exist C. within D. exists 8 / 10 8. Among the following, which one is a ternary operator? A. + B. : C. – D. ? 9 / 10 9. “An expression that can legally appear on the left side of an assignment expression.” is a well known explanation for variables, properties of objects, and elements of arrays. They are called A. Properties B. Prototypes C. Lvalue D. Definition 10 / 10 10. JavaScript is a _______________ language. A. Object-Oriented B. High-level C. Assembly-language D. Object-Based Your score is The average score is 33% LinkedIn Facebook Twitter 0% Restart quiz