Skip to main content

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

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

What are the events generated by the Node objects called?

Question 2 of 40
★ FPSC ★ PPSC

What is the function used to remove all handlers for name events?

Question 3 of 40
★ FPSC ★ PPSC

Which function is a synonym for on()?

Question 4 of 40
★ FPSC ★ PPSC

Which of the following is an event emitter?

Question 5 of 40
★ FPSC ★ PPSC

When do uncaught exceptions generate events?

Question 6 of 40
★ FPSC ★ PPSC

Which among the following POSIX signals generate events?

Question 7 of 40
★ FPSC ★ PPSC

What is the method used to pause “data” events?

Question 8 of 40
★ FPSC ★ PPSC

When the “end” event fires on EOF when no more data will arrive, which function is called?

Question 9 of 40
★ FPSC ★ PPSC

What will be the return value of the write() method when the Node cannot write the data immediately and has to buffer it internally?

Question 10 of 40
★ FPSC ★ PPSC

Rhino is originated by

Question 11 of 40
★ FPSC ★ PPSC

Which of the following are global functions that are not part of core JavaScript?

Question 12 of 40
★ FPSC ★ PPSC

Which of the following reads the textual contents of a URL and returns as a string?

Question 13 of 40
★ FPSC ★ PPSC

Which Rhino command quits Rhino environment?

Question 14 of 40
★ FPSC ★ PPSC

Which is a more formal way of importing packages and classes as JavaScript objects?

Question 15 of 40
★ FPSC ★ PPSC

Consider the following code snippet var f = new java . io . File ( "/tmp/test" ) ; var out = new java . io . FileWriter ( f ) ; out instanceof java.io.Reader What will be the output for the above code snippet?

Question 16 of 40
★ FPSC ★ PPSC

What does Rhino do when the getter and setter methods exist?

Question 17 of 40
★ FPSC ★ PPSC

The JavaScript classes can be instantiated using _____ operator?

Question 18 of 40
★ FPSC ★ PPSC

The new Java arrays can be created into a JavaScript programs using which of the following classes?

Question 19 of 40
★ FPSC ★ PPSC

Which is a fast C++ based JavaScript interpreter?

Question 20 of 40
★ FPSC ★ PPSC

Why does the Node rely on event handlers?

Question 21 of 40
★ FPSC ★ PPSC

What is the command to run the node programs?

Question 22 of 40
★ FPSC ★ PPSC

What is the alternative command used in Node for load()?

Question 23 of 40
★ FPSC ★ PPSC

What is the command used for debugging output in Node?

Question 24 of 40
★ FPSC ★ PPSC

What is the code to print hello one second from now?

Question 25 of 40
★ FPSC ★ PPSC

Among the below given functions, Node supports which of the following client-side timer functions?

Question 26 of 40
★ FPSC ★ PPSC

The necessary globals of a node are defined under which namespace?

Question 27 of 40
★ FPSC ★ PPSC

Why does Node not block while waiting for operations to complete?

Question 28 of 40
★ FPSC ★ PPSC

Which is the method used for registering handlers?

Question 29 of 40
★ FPSC ★ PPSC

The main purpose of JavaScript in web browser is to

Question 30 of 40
★ FPSC ★ PPSC

A JavaScript program can traverse and manipulate document content through

Question 31 of 40
★ FPSC ★ PPSC

The behaviour of the document elements can be defined by

Question 32 of 40
★ FPSC ★ PPSC

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

Question 33 of 40
★ FPSC ★ PPSC

The HTML5 specification includes

Question 34 of 40
★ FPSC ★ PPSC

Which of the following are not advanced services?

Question 35 of 40
★ FPSC ★ PPSC

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

Question 36 of 40
★ FPSC ★ PPSC

Client-side JavaScript code is embedded within HTML documents in

Question 37 of 40
★ FPSC ★ PPSC

What is the programming philosophy that argues that content and behaviour should as much as possible be kept separate?

Question 38 of 40
★ FPSC ★ PPSC

Which of the following communicates with server-side CGI scripts through HTML form submissions and can be written without the use of JavaScript?

Question 39 of 40
★ FPSC ★ PPSC

Which of the following is a way of embedding Client-side JavaScript code within HTML documents?

Question 40 of 40
★ FPSC ★ PPSC

When does JavaScript code appear inline within an HTML file?

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