Explore topic-wise MCQs in Javascript.

This section includes 10 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_IS_THE_PROGRAMMING_PHILOSOPHY_THAT_ARGUES_THAT_CONTENT_AND_BEHAVIOUR_SHOULD_AS_MUCH_AS_POSSIBLE_BE_KEPT_SEPARATE??$

A. Unobtrusive JavaScript
B. Obtrusive JavaScript
C. Inherited JavaScript
D. Modular JavaScript
Answer» B. Obtrusive JavaScript
2.

Which_of_the_following_communicates_with_server-side_CGI_scripts_through_HTML_form_submissions_and_can_be_written_without_the_use_of_JavaScript?$

A. Static Web Pages
B. Interactive Web Pages
C. Conditional Web Pages
D. All web pages
Answer» C. Conditional Web Pages
3.

Client-side JavaScript code is embedded within HTML documents in _________?

A. A URL that uses the special javascript:encoding
B. A URL that uses the special javascript:stack
C. A URL that uses the special javascript:protocol
D. A URL that uses the special javascript:code
Answer» D. A URL that uses the special javascript:code
4.

JavaScript code between a pair of “script” tags are called __________$

A. Non-inline
B. External
C. Referenced
D. Inline
Answer» E.
5.

Which of the following are not advanced services?

A. Data storage
B. Networking
C. XMLHttpRequest object
D. None of the mentioned
Answer» E.
6.

The HTML5 specification includes __________

A. Data storage
B. Graphics APIs
C. Other APIs for web apps
D. All of the mentioned
Answer» E.
7.

The service(s) that enables networking through scripted HTTP requests is __________

A. XMLHttpResponse
B. XMLRequest
C. XMLHttpRequest
D. XMLHttps
Answer» D. XMLHttps
8.

The behaviour of the document elements can be defined by __________

A. Using document object
B. Registering appropriate event handlers
C. Using element object
D. Using data element
Answer» C. Using element object
9.

A JavaScript program can traverse and manipulate document content through __________

A. Element Object
B. Document Object
C. Both Element and Document Object
D. Data object
Answer» D. Data object
10.

The main purpose of JavaScript in web browser is to ___________

A. Creating animations and other visual effects
B. User Interface
C. Visual effects
D. User experience
Answer» B. User Interface