

MCQOPTIONS
Saved Bookmarks
This section includes 87 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.
51. |
_ 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) | |
52. |
_ 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. | |
53. |
_ How to calculate the run time of a code?$? |
A. | Start time – End time |
B. | End time – Start time |
C. | Start time/ End time |
D. | Start time * End time |
Answer» C. Start time/ End time | |
54. |
_ What is the purpose of the UgilifyJS?$? |
A. | Exposes a simple API |
B. | Minification |
C. | Both Exposes a simple API and Minification |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
55. |
_ What is the return type of the method parseInt()?$? |
A. | String |
B. | Float |
C. | Integer |
D. | Date |
Answer» D. Date | |
56. |
_ 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 | |
57. |
_ 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. | Can run the repeat view test |
D. | None of the mentioned |
Answer» B. Can run the repeat view test | |
58. |
_What will be the radix value if the string begins with 0x?$? |
A. | 13 |
B. | 14 |
C. | 15 |
D. | 16 |
Answer» E. | |
59. |
_What is the purpose of the url json?$? |
A. | Belongs to JSON object |
B. | Reference JSON formatted data |
C. | Belongs to JSON |
D. | None of the mentioned |
Answer» C. Belongs to JSON | |
60. |
_Which of the following method will wait for certain milliseconds to execute a specified method?$? |
A. | setInterval() |
B. | setTimeout() |
C. | setmilli() |
D. | setseconds() |
Answer» B. setTimeout() | |
61. |
_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. | None of the mentioned |
Answer» D. None of the mentioned | |
62. |
_Which is the method used to process on the input’s post data before it is saved to the database?$? |
A. | prep() |
B. | settings() |
C. | defineSettings() |
D. | prepSettings() |
Answer» E. | |
63. |
_How many events does the BaseFieldType provide?$? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» D. 4 | |
64. |
_How can you dispatch a synthetic event object?$? |
A. | dispatchEvent() |
B. | dispatch() |
C. | dispatch(Event) |
D. | None of the mentioned |
Answer» B. dispatch() | |
65. |
_Which function is used to start the time logging?$? |
A. | startTimeLogging() |
B. | start() |
C. | Loggingstart() |
D. | startLogging() |
Answer» B. start() | |
66. |
_Which of the following are ways to benchmark code?$? |
A. | Timing the code |
B. | Calculating the number of operations performed |
C. | Timing the code & Calculating the number of operations performed |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
67. |
_Which of the following is a JavaScript Compressor?$? |
A. | Esprima |
B. | UgilifyJS |
C. | Acron |
D. | None of the mentioned |
Answer» C. Acron | |
68. |
_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. | None of the mentioned |
Answer» C. Parses a string from JSON to JSON2 | |
69. |
_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 | |
70. |
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. | |
71. |
What will happen if the radix parameter of the parseInt() function is omitted? |
A. | Runs in assumption |
B. | Throws exception |
C. | Aborts |
D. | Taken as 0 |
Answer» B. Throws exception | |
72. |
What is the purpose of the method ActiveXObject()? |
A. | Used to call automation object |
B. | Used to reference automation object |
C. | Used to instantiate automation object |
D. | All of the mentioned |
Answer» D. All of the mentioned | |
73. |
Which of the following browsers support the usage of the JavaScript logging library log4javascript? |
A. | IE |
B. | Safari |
C. | Opera |
D. | All of the mentioned |
Answer» E. | |
74. |
How many arguments does the getInputHtml() accept? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» C. 3 | |
75. |
When does the defineContentAttribute() method return a false? |
A. | Data stored in different table |
B. | Data stored in its own table |
C. | Data is not stored at all |
D. | Data is not obtained |
Answer» C. Data is not stored at all | |
76. |
What kind of an exception will be thrown if the string to parse is not valid JSON? |
A. | SyntaxError |
B. | ArrayOutOfBoundException |
C. | Both SyntaxError and ArrayOutOfBoundException |
D. | None of the mentioned |
Answer» B. ArrayOutOfBoundException | |
77. |
What will be the radix value of the parseInt() method when the string begins with 0? |
A. | 6 |
B. | 7 |
C. | 8 |
D. | 9 |
Answer» D. 9 | |
78. |
To which of the following object does the print() method belong to? |
A. | window |
B. | document |
C. | hash |
D. | none of the mentioned |
Answer» B. document | |
79. |
What is the purpose of the window.location object in JavaScript? |
A. | Get the URL and redirect |
B. | Get the location of the cursor |
C. | Get the path to the next page |
D. | All of the mentioned |
Answer» B. Get the location of the cursor | |
80. |
What is the significance of the JavaScript logging library loglevel? |
A. | Lightweight |
B. | Unreliable |
C. | Minimal usage |
D. | Inconvenient |
Answer» B. Unreliable | |
81. |
What does the getInputHtml() return? |
A. | Input |
B. | Fieldtype’s input HTML |
C. | Array |
D. | Value |
Answer» C. Array | |
82. |
What is the purpose of the parameter $value? |
A. | Field’s expected value |
B. | Field’s previous value |
C. | Field’s current value |
D. | Field’s probability value |
Answer» D. Field‚Äö√Ñ√¥s probability value | |
83. |
What is the function of the method importNode()? |
A. | Copies without removing |
B. | Copies and removes |
C. | Only copies |
D. | Only removes |
Answer» B. Copies and removes | |
84. |
Which of the following object is used to post the data to an external process, say savePerfData? |
A. | XML |
B. | XBT |
C. | XHR |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
85. |
What will be the radix value of the parseInt() method when the string begins with any other value other than 0x and 0? |
A. | 8 |
B. | 9 |
C. | 10 |
D. | 11 |
Answer» D. 11 | |
86. |
What is the purpose of the radix parameter in the parseInt() method? |
A. | Numeral system not to be used |
B. | Numeral system to be used |
C. | Convertion mode |
D. | None of the mentioned |
Answer» C. Convertion mode | |
87. |
What is the necessity to create a separate file after having an API key? |
A. | To hold configuration information |
B. | To hold key details |
C. | To hold URL details |
D. | To hold the speed of the process |
Answer» B. To hold key details | |