Basic javascript And Variables MCQ question and answer – 02 Posted on June 16, 2020June 18, 2020 by admin 0 Created on June 16, 2020 By admin Basic javascript And Variables MCQ question and answer - 02 1 / 10 1. JavaScript Code can be called by using A. RMI B. Triggering Event C. Preprocessor D. Function/Method 2 / 10 2. The type of a variable that is volatile is A. Volatile variable B. Mutable variable C. Immutable variable D. Dynamic variable 3 / 10 3. JavaScript Code can be called by using _________. A. RMI B. Triggering Event C. Preprocessor D. Function / Method 4 / 10 4. The generalised syntax for a real number representation is A. [digits][.digits][(E|e)[(+|-)]digits] B. [digits][+digits][(E|e)[(+|-)]digits] C. [digits][(E|e)[(+|-)]digits] D. [.digits][digits][(E|e)[(+|-)]digits] 5 / 10 5. When there is an indefinite or an infinity value during an arithmetic value computation, javascript A. Prints an exception error B.Prints an overflow error C. Displays “Infinity” D. Prints the value as such 6 / 10 6. Which of the following is not considered as an error in JavaScript? A. Syntax error B. Missing of semicolons C. Division by zero D. All of the mentioned 7 / 10 7. The escape sequence ‘f’ stands for A. Floating numbers B. Representation of functions that returns a value C. f is not present in JavaScript D. Form feed 8 / 10 8. The snippet that has to be used to check if “a” is not equal to “null” is A. if(a!=null) B. if (!a) C. if(a!null) D. if(a!==null) 9 / 10 9. The statement a===b refers to A. Both a and b are equal in value, type and reference address B. Both a and b are equal in value C. Both a and b are equal in value and type D. There is no such statement 10 / 10 10. Assume that we have to convert “false” that is a non-string to string. The command that we use is (without invoking the “new” operator) A. false.toString() B. String(false) C. String newvariable=”false” D. Both false.toString() and String(false) Your score is The average score is 0% LinkedIn Facebook Twitter 0% Restart quiz