Explore topic-wise MCQs in Javascript.

This section includes 6 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.

1.

WHICH_OF_THE_FOLLOWING_GLOBAL_VARIABLES_IS_USED_TO_GET_PARAMETERS??$

A. $HTTP_GET_VAR[].
B. $HTTP_GET_VARS()
C. $HTTP_GET_VARS
D. $HTTP_GET_VARS[].
Answer» B. $HTTP_GET_VARS()
2.

What is the purpose of the RegExp method test()?$

A. Tests for a match in its float parameter
B. Tests for a match in its string parameter
C. Tests for a match in its integer parameter
D. None of the mentioned
Answer» D. None of the mentioned
3.

What kind of path can the PHP file be?

A. Absolute
B. Relative
C. Either Absolute or Relative
D. Both Absolute and Relative
Answer» C. Either Absolute or Relative
4.

Which of the following is possible to be referenced in external JavaScript?

A. cpp
B. cs
C. php
D. all of the mentioned
Answer» D. all of the mentioned
5.

What are the two parts of JavaScript libraries?

A. “script” tag and “body” tag
B. External JavaScript and the “script” tag
C. “html” tag and “body” tag
D. None of the mentioned
Answer» C. ‚Äö√Ñ√∂‚àö√ë‚àö‚à´html‚Äö√Ñ√∂‚àö√ë‚àöœÄ tag and ‚Äö√Ñ√∂‚àö√ë‚àö‚à´body‚Äö√Ñ√∂‚àö√ë‚àöœÄ tag
6.

In which format does JavaScript support external JavaScript?

A. .js
B. .php
C. .js/php
D. .jss
Answer» B. .php