C++ OOPs Concepts & Inheritance Quiz
Quiz
•
Engineering
•
University
•
Practice Problem
•
Hard
Shrutika Nakadi
Used 6+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a feature of OOP in C++?
Encapsulation
Abstraction
Inheritance
Compilation
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the default access specifier for members of a class in C++?
Public
Private
Protected
Internal
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What type of inheritance is shown in the following code? class A { }; class B : public A { }; class C : public B { };
Single inheritance
Multiple inheritance
Multilevel inheritance
Hybrid inheritance
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of this code? class Base { public: void show() { cout << "Base class"; } }; class Derived : public Base { public: void show() { cout << "Derived class"; } }; int main() { Derived d; d.show(); return 0; }
Base class
Derived class
Error
Nothing
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword is used to inherit a class in C++?
inherit
extends
using
:
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a C++ token?
Identifier
Keyword
Punctuation
Class
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of this code snippet? class A { public: int x = 10; }; class B : public A { public: void display() { cout << x; } }; int main() { B obj; obj.display(); return 0; }
Error
10
0
Garbage value
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Mastering Time and Work Concepts
Quiz
•
12th Grade - University
20 questions
Computer Networks CT-3
Quiz
•
University
20 questions
Engineering Materials Quiz
Quiz
•
University
20 questions
Natural Language Processing CT-3
Quiz
•
University
19 questions
Lora/LoraWAN Quiz
Quiz
•
University
16 questions
Chapter 11 - Casting Processes
Quiz
•
University
20 questions
BE23CS407 - Design and Analysis of Algorithms (Unit-1)
Quiz
•
University
15 questions
TOPIC 1-Materials and Prestressing Applications
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Engineering
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
