Skip to main content

Server Side And Client Side Scripting — Part 2 MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Server Side And Client Side Scripting — 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

Which character in JavaScript code will be interpreted as XML markup?

Question 2 of 40
★ FPSC ★ PPSC

Which is the root element in a HTML document?

Question 3 of 40
★ FPSC ★ PPSC

What is the code for getting the current time?

Question 4 of 40
★ FPSC ★ PPSC

What is the code to start displaying the time when document loads?

Question 5 of 40
★ FPSC ★ PPSC

One of the main advantage of using src attribute is

Question 6 of 40
★ FPSC ★ PPSC

What will be done if more than one page requires a file of JavaScript code?

Question 7 of 40
★ FPSC ★ PPSC

What is the default value of the type attribute?

Question 8 of 40
★ FPSC ★ PPSC

The language is commonly used to

Question 9 of 40
★ FPSC ★ PPSC

The word “document” mainly refers to

Question 10 of 40
★ FPSC ★ PPSC

Which object is the main entry point to all client-side JavaScript features and APIs?

Question 11 of 40
★ FPSC ★ PPSC

Which identifier is used to represent a web browser window or frame?

Question 12 of 40
★ FPSC ★ PPSC

Which property in the Window object is used to refer to a Location object?

Question 13 of 40
★ FPSC ★ PPSC

Which Window object method is used to display message in a dialog box?

Question 14 of 40
★ FPSC ★ PPSC

The setTimeout() method is used to

Question 15 of 40
★ FPSC ★ PPSC

Which of the following is a global object?

Question 16 of 40
★ FPSC ★ PPSC

When will the window property come into play?

Question 17 of 40
★ FPSC ★ PPSC

Which is the property that represents the content displayed in the window?

Question 18 of 40
★ FPSC ★ PPSC

How to pick a document element based on the value of its id attribute?

Question 19 of 40
★ FPSC ★ PPSC

What is the property to access the first child of a node?

Question 20 of 40
★ FPSC ★ PPSC

What are the properties supporting CSS styles for a document element?

Question 21 of 40
★ FPSC ★ PPSC

The style property belongs to while of the following object?

Question 22 of 40
★ FPSC ★ PPSC

What is the purpose of the event handlers in the JavaScript?

Question 23 of 40
★ FPSC ★ PPSC

Which handler is triggered when the content of the document in the window is stable and ready for manipulation?

Question 24 of 40
★ FPSC ★ PPSC

When a program contains extensive use of event handlers, which of the following is necessary?

Question 25 of 40
★ FPSC ★ PPSC

What is the code snippet to find all container elements with class “reveal”?

Question 26 of 40
★ FPSC ★ PPSC

What is the code snippet to update the content of the timestamp element when the user clicks on it?

Question 27 of 40
★ FPSC ★ PPSC

Which of the following is not an object?

Question 28 of 40
★ FPSC ★ PPSC

What is the code snippet to change the class and let the stylesheet specify the details?

Question 29 of 40
★ FPSC ★ PPSC

The libraries that build a new higher-level API for client-side programming is

Question 30 of 40
★ FPSC ★ PPSC

Which of the following is not a framework?

Question 31 of 40
★ FPSC ★ PPSC

Which of the following frameworks focuses on DOM and Ajax utilities?

Question 32 of 40
★ FPSC ★ PPSC

What is the purpose of Dojo framework?

Question 33 of 40
★ FPSC ★ PPSC

Which is the in-house library of Yahoo!?

Question 34 of 40
★ FPSC ★ PPSC

What does Dojo and YUI have in common?

Question 35 of 40
★ FPSC ★ PPSC

What are the two incompatible versions of YUI?

Question 36 of 40
★ FPSC ★ PPSC

Which of the following framework was used by Google for Gmail?

Question 37 of 40
★ FPSC ★ PPSC

Which of the following is a web application API framework?

Question 38 of 40
★ FPSC ★ PPSC

Which is more widely used than GWT in Google?

Question 39 of 40
★ FPSC ★ PPSC

What is the function used to deregister event handler ‘f’?

Question 40 of 40
★ FPSC ★ PPSC

Which is a useful way to try out small and simple Rhino programs and one-liners?

✓ 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 →