Skip to main content

Sockets — Part 1 MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Sockets — 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

Which of the following is a stateless protocol?

Question 2 of 40
★ FPSC ★ PPSC

What does the value 2 of the WebSocket attribute Socket.readyState indicate?

Question 3 of 40
★ FPSC ★ PPSC

How many WebSocket events are available?

Question 4 of 40
★ FPSC ★ PPSC

Which method is used to close the WebSocket?

Question 5 of 40
★ FPSC ★ PPSC

How does the client and the server communicate following the rules defined by the WebSocket protocol?

Question 6 of 40
★ FPSC ★ PPSC

Which of the following are not a socket property?

Question 7 of 40
★ FPSC ★ PPSC

How can we check the subprotocol being used by the client?

Question 8 of 40
★ FPSC ★ PPSC

How will you transmit data using the connection?

Question 9 of 40
★ FPSC ★ PPSC

Which of the following is not a WebSocket event?

Question 10 of 40
★ FPSC ★ PPSC

What does an History object contain?

Question 11 of 40
★ FPSC ★ PPSC

The history object is a part of which object?

Question 12 of 40
★ FPSC ★ PPSC

How many methods are there in the History object?

Question 13 of 40
★ FPSC ★ PPSC

What is the purpose of the method forward()?

Question 14 of 40
★ FPSC ★ PPSC

How will you update the URL displayed in the location bar?

Question 15 of 40
★ FPSC ★ PPSC

How do you add a particular state to the browsing history?

Question 16 of 40
★ FPSC ★ PPSC

What does the pushState() method do?

Question 17 of 40
★ FPSC ★ PPSC

Which of the following method is used to replace the current history state instead of adding a new state to the browsing history?

Question 18 of 40
★ FPSC ★ PPSC

How many parameters does the replaceState() method take?

Question 19 of 40
★ FPSC ★ PPSC

What is the purpose of the event window.onpopstate?

Question 20 of 40
★ FPSC ★ PPSC

R is an extension of which of the following language?

Question 21 of 40
★ FPSC ★ PPSC

Which of the following is/are statistical languages?

Question 22 of 40
★ FPSC ★ PPSC

Which of the following is a successor to the S language?

Question 23 of 40
★ FPSC ★ PPSC

What are the purposes R can be used for?

Question 24 of 40
★ FPSC ★ PPSC

What type of language is generally used to collect the data?

Question 25 of 40
★ FPSC ★ PPSC

What are the processes that take place within R?

Question 26 of 40
★ FPSC ★ PPSC

Which platform is R imported to after charting as a PDF?

Question 27 of 40
★ FPSC ★ PPSC

What is the purpose of a glue language?

Question 28 of 40
★ FPSC ★ PPSC

Why do we use Adobe Illustrator along with R?

Question 29 of 40
★ FPSC ★ PPSC

What does the R language do?

Question 30 of 40
★ FPSC ★ PPSC

What kind of data can be run in R?

Question 31 of 40
★ FPSC ★ PPSC

Which of the following is/are the features of R?

Question 32 of 40
★ FPSC ★ PPSC

What is the advantage for Linux users using R?

Question 33 of 40
★ FPSC ★ PPSC

Which of the following is the base install for R?

Question 34 of 40
★ FPSC ★ PPSC

Which of the following comes with compiled third-party packages?

Question 35 of 40
★ FPSC ★ PPSC

Which of the following comes with tools to build your own R packages?

Question 36 of 40
★ FPSC ★ PPSC

The code of the R language has an extension?

Question 37 of 40
★ FPSC ★ PPSC

Which of the following is used to run ad hoc R commands?

Question 38 of 40
★ FPSC ★ PPSC

Which is the keyword used to open the Help window?

Question 39 of 40
★ FPSC ★ PPSC

For a more extensive search, which keyword needs to be used?

Question 40 of 40
★ FPSC ★ PPSC

What is the usage of the keyword ?? in R?

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