MCQOPTIONS
Saved Bookmarks
This section includes 29 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What will happen if the fvonly parameter is set to 1? |
| A. | Results got for the first view |
| B. | Can run the repeat view test |
| C. | Running the test again |
| D. | Ending the test |
| Answer» B. Can run the repeat view test | |
| 2. |
What is necessary when we need to create a new field in craft? |
| A. | Type of the input |
| B. | Type of the output |
| C. | Type of the field |
| D. | Type of argument |
| Answer» D. Type of argument | |
| 3. |
What is the purpose of the property width belonging to the ImageData element? |
| A. | Number of data |
| B. | Number of pixels |
| C. | Number of pixels per row of data |
| D. | All of the mentioned |
| Answer» D. All of the mentioned | |
| 4. |
What is the parameter of the method Date.parse()? |
| A. | date |
| B. | string |
| C. | datestring |
| D. | string |
| Answer» D. string | |
| 5. |
What is the purpose of the UgilifyJS? |
| A. | Exposes a simple API |
| B. | Minification |
| C. | Both Exposes a simple API and Minification |
| D. | Compilation |
| Answer» D. Compilation | |
| 6. |
What will be the radix value if the string begins with 0x? |
| A. | 13 |
| B. | 14 |
| C. | 15 |
| D. | 16 |
| Answer» E. | |
| 7. |
What is the return type of the method parseInt()? |
| A. | String |
| B. | Float |
| C. | Integer |
| D. | Date |
| Answer» D. Date | |
| 8. |
What is the purpose of the url json? |
| A. | Belongs to JSON object |
| B. | Reference JSON formatted data |
| C. | Belongs to JSON |
| D. | Compiles json data |
| Answer» C. Belongs to JSON | |
| 9. |
When does JSNLog have server-side extensions? |
| A. | Use of .NET |
| B. | Use of Java |
| C. | Both .NET and Java |
| D. | Use of C# |
| Answer» B. Use of Java | |
| 10. |
Which of the following is the fastest JavaScript parser? |
| A. | JSLint |
| B. | Esprima |
| C. | Acron |
| D. | Traceur |
| Answer» D. Traceur | |
| 11. |
What is the return data type of the property accept that belongs to the Input element? |
| A. | integer |
| B. | string |
| C. | boolean |
| D. | float |
| Answer» C. boolean | |
| 12. |
What does it indicate when the radix value is 16? |
| A. | String begins with 0x |
| B. | String begins with 0 |
| C. | String begins with 0P |
| D. | String begins with FF |
| Answer» B. String begins with 0 | |
| 13. |
Which of the following is a JavaScript Compressor? |
| A. | Esprima |
| B. | UgilifyJS |
| C. | Acron |
| D. | Compressify |
| Answer» C. Acron | |
| 14. |
How can you dispatch a synthetic event object? |
| A. | dispatchEvent() |
| B. | dispatch() |
| C. | dispatch(Event) |
| D. | eventdispatch() |
| Answer» B. dispatch() | |
| 15. |
What is the function of the parseInt() method? |
| A. | Parses a data type and stores in an integer |
| B. | Parses a string and returns an integer |
| C. | Parses an integer and returns a string |
| D. | Parses a string and return an object |
| Answer» C. Parses an integer and returns a string | |
| 16. |
What is the method used to stop an execution of a method? |
| A. | clearInterval() |
| B. | clearTimeout() |
| C. | both clearInterval() and clearTimeout() |
| D. | clearmethod() |
| Answer» D. clearmethod() | |
| 17. |
What is the purpose of the parameter $name ? |
| A. | Document Name |
| B. | Input Name |
| C. | Output Name |
| D. | ID |
| Answer» C. Output Name | |
| 18. |
Which of the following attribute of form tag is not set by using document object in JavaScript? |
| A. | Target |
| B. | Enctype |
| C. | Action |
| D. | None of the mentioned |
| Answer» E. | |
| 19. |
What are the parameters of the method JSON.parse()? |
| A. | text |
| B. | reviver |
| C. | both text and reviver |
| D. | object |
| Answer» D. object | |
| 20. |
What does the method defineSettings() return? |
| A. | Array of settings name |
| B. | Array of hash key |
| C. | Array of strings |
| D. | Array of objects |
| Answer» B. Array of hash key | |
| 21. |
What is the significance of the JavaScript logging library log4javascript? |
| A. | Fully featured |
| B. | Easy to use |
| C. | Fully featured and Easy to use |
| D. | Easily accessible |
| Answer» D. Easily accessible | |
| 22. |
What is the purpose of the parameter location? |
| A. | Specifies agent location |
| B. | Specifies speed |
| C. | Specifies browser |
| D. | All of the mentioned |
| Answer» E. | |
| 23. |
What type of scope is present in JavaScript? |
| A. | Lexical |
| B. | Literal |
| C. | Both Lexical and Literal |
| D. | Local |
| Answer» B. Literal | |
| 24. |
What is the purpose of the method JSON.parse()? |
| A. | Parses a string to integer |
| B. | Parses a string to JSON |
| C. | Parses a string from JSON to JSON2 |
| D. | Parses integer to string |
| Answer» C. Parses a string from JSON to JSON2 | |
| 25. |
How many events does the BaseFieldType provide? |
| A. | 1 |
| B. | 2 |
| C. | 3 |
| D. | 4 |
| Answer» D. 4 | |
| 26. |
What is the purpose of the adoptNode() method? |
| A. | Removes node |
| B. | Makes it ready for insertion |
| C. | Removes node and Makes it ready for insertion |
| D. | Changes the node |
| Answer» D. Changes the node | |
| 27. |
How do you specifically execute a command in JavaScript? |
| A. | execcommand() |
| B. | exec(command) |
| C. | execCommand() |
| D. | exec(command id) |
| Answer» D. exec(command id) | |
| 28. |
Which method is called right before a field is saved? |
| A. | onBeforeSave() |
| B. | BeforeSave() |
| C. | SaveBefore() |
| D. | onSave() |
| Answer» B. BeforeSave() | |
| 29. |
What is the meaning of JavaScript Hoisting? |
| A. | Moving declarations to bottom |
| B. | Moving declarations to top |
| C. | Hosting variables by itself |
| D. | Moving declarations to specified location |
| Answer» C. Hosting variables by itself | |