MCQOPTIONS
Saved Bookmarks
This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
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. | String newvariable= false |
| B. | Both false.toString() and String(false) |
| C. | String(false) |
| D. | false.toString() |
| E. | None of these |
| Answer» C. String(false) | |
| 2. |
The statement p===q refers to _________ |
| A. | There is no such statement |
| B. | Both p and q are equal in value, type and reference address |
| C. | Both p and q are equal in value |
| D. | Both p and q are equal in value and type |
| E. | None of these |
| Answer» E. None of these | |
| 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!null) |
| C. | if (!a) |
| D. | if(a!=null) |
| E. | None of these |
| Answer» B. if(a!null) | |
| 4. |
The escape sequence f stands for _________ |
| A. | Form feed |
| B. | f is not present in JavaScript |
| C. | Representation of functions that returns a value |
| D. | Floating numbers |
| E. | None of these |
| Answer» B. f is not present in JavaScript | |