Skip to main content

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

Practice high-yield Programming & Software Development MCQs on Object Oriented Programming In C Plus Plus — 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 keyword is used to inherit a class in C++?

Question 2 of 40
★ FPSC ★ PPSC

Which keyword is used to define a class in C++?

Question 3 of 40
★ FPSC ★ PPSC

What is the process of creating an instance of a class called in C++?

Question 4 of 40
★ FPSC ★ PPSC

What is inheritance in C++?

Question 5 of 40
★ FPSC ★ PPSC

What is the access specifier that allows members to be accessed from outside the class in C++?

Question 6 of 40
★ FPSC ★ PPSC

Which concept in C++ allows a class to have multiple functions with the same name but different parameter lists?

Question 7 of 40
★ FPSC ★ PPSC

What is encapsulation in C++?

Question 8 of 40
★ FPSC ★ PPSC

What is polymorphism in C++?

Question 9 of 40
★ FPSC ★ PPSC

Which of the following is true about constructors in C++?

Question 10 of 40
★ FPSC ★ PPSC

What is the process of wrapping data and functions into a single unit called in C++?

Question 11 of 40
★ FPSC ★ PPSC

What is dynamic polymorphism in C++?

Question 12 of 40
★ FPSC ★ PPSC

Which keyword is used to specify that a function cannot be overridden in a derived class in C++?

Question 13 of 40
★ FPSC ★ PPSC

What is an abstract class in C++?

Question 14 of 40
★ FPSC ★ PPSC

What is the purpose of friend functions in C++?

Question 15 of 40
★ FPSC ★ PPSC

What is the access specifier that allows members to be accessed only within the same class or by derived classes in C++?

Question 16 of 40
★ FPSC ★ PPSC

What is a constructor in C++?

Question 17 of 40
★ FPSC ★ PPSC

Which keyword is used to access the base class members from a derived class in C++?

Question 18 of 40
★ FPSC ★ PPSC

What is operator overloading in C++?

Question 19 of 40
★ FPSC ★ PPSC

What is the purpose of a destructor in C++?

Question 20 of 40
★ FPSC ★ PPSC

Which access specifier allows a member to be accessible only within its own class and derived classes in C++?

Question 21 of 40
★ FPSC ★ PPSC

What is function overriding in C++?

Question 22 of 40
★ FPSC ★ PPSC

What is the purpose of the 'static' keyword in C++?

Question 23 of 40
★ FPSC ★ PPSC

What is the difference between 'struct' and 'class' in C++?

Question 24 of 40
★ FPSC ★ PPSC

What is the purpose of the 'virtual' keyword in C++?

Question 25 of 40
★ FPSC ★ PPSC

Which concept allows a derived class to inherit properties and behavior from a base class in C++?

Question 26 of 40
★ FPSC ★ PPSC

What is the correct syntax for inheriting a class in C++?

Question 27 of 40
★ FPSC ★ PPSC

What is the purpose of access specifiers in C++ classes?

Question 28 of 40
★ FPSC ★ PPSC

What is the purpose of the 'friend' keyword in C++?

Question 29 of 40
★ FPSC ★ PPSC

What is the concept of data hiding in C++?

Question 30 of 40
★ FPSC ★ PPSC

Which keyword is used to access the superclass constructor in a derived class constructor in C++?

Question 31 of 40
★ FPSC ★ PPSC

What is the access specifier that restricts access to members of a class to only its friend classes and member functions in C++?

Question 32 of 40
★ FPSC ★ PPSC

What does the term "this" pointer refer to in C++?

Question 33 of 40
★ FPSC ★ PPSC

Which type of inheritance allows a class to inherit properties and behavior from multiple base classes in C++?

Question 34 of 40
★ FPSC ★ PPSC

What is the difference between an object and a class in C++?

Question 35 of 40
★ FPSC ★ PPSC

What is the process of hiding the implementation details of a class and showing only the necessary features to the outside world called in C++?

Question 36 of 40
★ FPSC ★ PPSC

What is the purpose of using virtual functions in C++?

Question 37 of 40
★ FPSC ★ PPSC

Which keyword is used to prevent a class from being instantiated in C++?

Question 38 of 40
★ FPSC ★ PPSC

Which operator is used to access members of a class through a pointer in C++?

Question 39 of 40
★ FPSC ★ PPSC

What is the term for the ability of a class to provide different implementations of a function depending on the types of its parameters in C++?

Question 40 of 40
★ FPSC ★ PPSC

Which access specifier allows members of a class to be accessed from anywhere in the program in C++?

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