

MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.
1. |
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 |
Answer» D. There is no such statement | |
2. |
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) |
Answer» E. | |
3. |
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) |
Answer» E. | |
4. |
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 |
Answer» E. | |
5. |
Which of the following is not considered as an error in JavaScript? |
A. | Syntax error |
B. | Missing of semicolons |
C. | Division by zero |
D. | Missing of Bracket |
Answer» D. Missing of Bracket | |
6. |
JavaScript _________ when there is an indefinite or an infinite value during an arithmetic computation. |
A. | Prints an exception error |
B. | Prints an overflow error |
C. | Displays “Infinity” |
D. | Prints the value as such |
Answer» D. Prints the value as such | |
7. |
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]. |
Answer» B. [digits][+digits][(E|e)[(+|-)]digits]. | |
8. |
A hexadecimal literal begins with __________ |
A. | 00 |
B. | 0x |
C. | 0X |
D. | Both 0x and 0X |
Answer» E. | |
9. |
The type of a variable that is volatile is _______________ |
A. | Volatile variable |
B. | Mutable variable |
C. | Immutable variable |
D. | Dynamic variable |
Answer» C. Immutable variable | |
10. |
JavaScript Code can be called by using ___________ |
A. | RMI |
B. | Triggering Event |
C. | Preprocessor |
D. | Function/Method |
Answer» E. | |