Skip to main content

Document Object Model And Event Handling — Part 2 MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Document Object Model And Event Handling — Part 2 with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.

Questions
40
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
48 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
40

Verified Practice Questions

Interactive test mode with detailed academic worked solutions

Live Progress | 0/40 answered
✓ 0 correct ✗ 0 wrong 0% score
Question 1 of 40
★ FPSC ★ PPSC

The central object in a larger API is known as

Question 2 of 40
★ FPSC ★ PPSC

The paragraph “p” is a part of

Question 3 of 40
★ FPSC ★ PPSC

The node directly above a node is called

Question 4 of 40
★ FPSC ★ PPSC

The Text and Comment is part of

Question 5 of 40
★ FPSC ★ PPSC

The nodes that represent HTML elements are the

Question 6 of 40
★ FPSC ★ PPSC

Which of the following is/are of Text nodes?

Question 7 of 40
★ FPSC ★ PPSC

Which is one of way to query a document for an element or elements?

Question 8 of 40
★ FPSC ★ PPSC

Which of the following can be used to select HTML elements based on the value of their name attributes?

Question 9 of 40
★ FPSC ★ PPSC

Which of the following property refers to the root element of the document?

Question 10 of 40
★ FPSC ★ PPSC

The return type of getElementsByClassName() is

Question 11 of 40
★ FPSC ★ PPSC

Which syntax is used to describe elements in CSS?

Question 12 of 40
★ FPSC ★ PPSC

What does the following code snippet mean? # log> span

Question 13 of 40
★ FPSC ★ PPSC

Which of the following is the ultiate element selection method?

Question 14 of 40
★ FPSC ★ PPSC

Which of the following is the Web application equivalent to querySelectorAll()?

Question 15 of 40
★ FPSC ★ PPSC

The C in CSS stands for

Question 16 of 40
★ FPSC ★ PPSC

The latest version of CSS is

Question 17 of 40
★ FPSC ★ PPSC

Which of the following is an example of a Shortcut Property?

Question 18 of 40
★ FPSC ★ PPSC

Which of the following is the default positioning elements with CSS?

Question 19 of 40
★ FPSC ★ PPSC

Which property lays the element according to the normal flow?

Question 20 of 40
★ FPSC ★ PPSC

Which of the following property allows you to specify an element’s position with respect to the browser window?

Question 21 of 40
★ FPSC ★ PPSC

The type that specifies what kind of event occured is

Question 22 of 40
★ FPSC ★ PPSC

Which is the object on which the event occured or with which the event is associated?

Question 23 of 40
★ FPSC ★ PPSC

In general, event handler is nothing but

Question 24 of 40
★ FPSC ★ PPSC

When will the browser invoke the handler?

Question 25 of 40
★ FPSC ★ PPSC

Which property specifies the property of the event?

Question 26 of 40
★ FPSC ★ PPSC

The process by which the browser decides which objects to trigger event handlers on is

Question 27 of 40
★ FPSC ★ PPSC

Which form of event propogation handles the registered container elements?

Question 28 of 40
★ FPSC ★ PPSC

The events that are directly tied to a specific input device are

Question 29 of 40
★ FPSC ★ PPSC

The high-level events among the following events are

Question 30 of 40
★ FPSC ★ PPSC

The events that are not directly tied to a specific input device are

Question 31 of 40
★ FPSC ★ PPSC

The events that are not triggered directly by user activity are called

Question 32 of 40
★ FPSC ★ PPSC

The video and the audio belong to the

Question 33 of 40
★ FPSC ★ PPSC

The client-side JavaScript’s asynchronous programming model contains

Question 34 of 40
★ FPSC ★ PPSC

Which are the events that have default actions that can be canceled by event handlers?

Question 35 of 40
★ FPSC ★ PPSC

The events that represents occurrences related to the browser window are

Question 36 of 40
★ FPSC ★ PPSC

Which event is fired when a document and all of its external resources are fully loaded and displayed to the user?

Question 37 of 40
★ FPSC ★ PPSC

Which is the alternative to the load event?

Question 38 of 40
★ FPSC ★ PPSC

Which is the opposite to the load event in JavaScript?

Question 39 of 40
★ FPSC ★ PPSC

Which is the property that is triggered in response to JavaScript errors?

Question 40 of 40
★ FPSC ★ PPSC

Which event can be fired on any scrollable document element?

✓ Link copied to clipboard
Continue Your Practice

Advance Html — Part 1

Master the next curriculum module with 40 exam-standard MCQs.

Next Practice Set →

💡 Examiner's Advisory for Programming & Software Development

In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.

More Modules in Programming & Software Development

View All →
📚

Study Guides

Topic summaries and syllabus breakdown

Explore Guides →
🎯

Complete Library

Search through 78,000+ verified MCQs

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →