Explore topic-wise MCQs in Javascript.

This section includes 12 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_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
2.

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. None of the mentioned
Answer» C. Parses an integer and returns a string
3.

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
4.

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. None of the mentioned
Answer» C. Parses an integer and returns a string
5.

What will be the radix value if the string begins with 0x?

A. 13
B. 14
C. 15
D. 16
Answer» E.
6.

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
7.

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
8.

Which is the function in JavaScript that will print the current page in JavaScript?

A. print()
B. printcurrent()
C. print(now)
D. print(this)
Answer» B. printcurrent()
9.

What is the parameter of the method Date.parse()?

A. date
B. string
C. datestring
D. string
Answer» D. string
10.

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
11.

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
12.

What is the function of the XML parser?

A. Converts XML document to XML DOM object
B. Converts XML DOM object to XML document
C. Converts XML DOM object to a comment
D. None of the mentioned
Answer» B. Converts XML DOM object to XML document