Skip to main content

Object Oriented Programming Using C Plus Plus — Part 1 MCQs with Explanations

Practice high-yield Computer Science & IT MCQs on Object Oriented Programming Using C Plus Plus — Part 1 with worked academic solutions for PPSC, FPSC, CSS, PMS, NTS.

Questions
40
Difficulty Level
Exam-Level
Target Exams
PPSC, FPSC, CSS...
Estimated Time
48 mins
Exam-Level PPSC FPSC CSS PMS NTS
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
★ PPSC ★ FPSC

You can use C++ as a procedural, as well as an object-oriented, language

Question 2 of 40
★ PPSC ★ FPSC

The use of the break statement in a switch statement is

Question 3 of 40
★ PPSC ★ FPSC

Evaluate the following expression: 4 >6 || 10 < 2 * 6

Question 4 of 40
★ PPSC ★ FPSC

A static data member is given a value

Question 5 of 40
★ PPSC ★ FPSC

Which of the following is the insertion operator?

Question 6 of 40
★ PPSC ★ FPSC

Which of the following C++ expressions will find the square root of the number 16?

Question 7 of 40
★ PPSC ★ FPSC

A default catch block catches

Question 8 of 40
★ PPSC ★ FPSC

Adding a derived class to a base class requires fundamental changes to the base class

Question 9 of 40
★ PPSC ★ FPSC

Format flags may be combined using

Question 10 of 40
★ PPSC ★ FPSC

To expose a data member to the program, you must declare the data member in the _____ section of the class

Question 11 of 40
★ PPSC ★ FPSC

Evaluate the following expression: 3 >6&&7>4

Question 12 of 40
★ PPSC ★ FPSC

Which of the following are valid characters for a numeric literal constant?

Question 13 of 40
★ PPSC ★ FPSC

A function that changes the state of the cout object is called a(n) _____

Question 14 of 40
★ PPSC ★ FPSC

A C++ program contains a function with the header int function(double d, char c). Which of the following function headers could be used within the same program?

Question 15 of 40
★ PPSC ★ FPSC

When the compiler cannot differentiate between two overloaded constructors, they are called

Question 16 of 40
★ PPSC ★ FPSC

Some Streams work with input, and some with output

Question 17 of 40
★ PPSC ★ FPSC

If you design a class that needs special initialization tasks, you will want to design a(n) _____

Question 18 of 40
★ PPSC ★ FPSC

Which type of statement does not occur in computer programs?

Question 19 of 40
★ PPSC ★ FPSC

The newline character is always included between

Question 20 of 40
★ PPSC ★ FPSC

To be called object-oriented, a programming language must allow

Question 21 of 40
★ PPSC ★ FPSC

A function that returns no values to the program that calls it is _____

Question 22 of 40
★ PPSC ★ FPSC

The keyword used to define a structure is _____

Question 23 of 40
★ PPSC ★ FPSC

If container classes are carefully constructed, then these tools are available to work with structures that are not ______

Question 24 of 40
★ PPSC ★ FPSC

Header files often have the file extension _____

Question 25 of 40
★ PPSC ★ FPSC

The #ifndef directive tests to see whether ________

Question 26 of 40
★ PPSC ★ FPSC

The generic type in a template function

Question 27 of 40
★ PPSC ★ FPSC

When a child class function is called, the compiler looks first for a matching function name in the _____

Question 28 of 40
★ PPSC ★ FPSC

A function that is called automatically each time an object is destroyed is a

Question 29 of 40
★ PPSC ★ FPSC

If you create an instantiation of a class template with an int, and then create a second instantiation with a double, then

Question 30 of 40
★ PPSC ★ FPSC

The type to be used in an instantiation of a class template follows ________

Question 31 of 40
★ PPSC ★ FPSC

Which of the following statements allows the user to enter data at the keyboard?

Question 32 of 40
★ PPSC ★ FPSC

When you pass a variable _____, C++ passes only the contents of the variable to the receiving function

Question 33 of 40
★ PPSC ★ FPSC

The best form of coupling is _____

Question 34 of 40
★ PPSC ★ FPSC

Paying attention to the important properties while ignoring inessential details is known as________

Question 35 of 40
★ PPSC ★ FPSC

What does C++ append to the end of a string literal constant?

Question 36 of 40
★ PPSC ★ FPSC

An array name is a _____

Question 37 of 40
★ PPSC ★ FPSC

To enter a comment in a C++ program, you begin the comment with _____

Question 38 of 40
★ PPSC ★ FPSC

Which of the following is(are) invalid string constant(s)?

Question 39 of 40
★ PPSC ★ FPSC

You define a structure type globally because _____

Question 40 of 40
★ PPSC ★ FPSC

Overloaded functions are required to

✓ Link copied to clipboard
Continue Your Practice

Advanced Mapreduce Concepts — Part 1

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

Next Practice Set →

💡 Examiner's Advisory for Computer Science & IT

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 Computer Science & IT

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 →