Object Oriented Concepts Through CPP

Quiz
•
Computers
•
University
•
Medium
RAHUL SONAWANE
Used 4+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When can an inline function be expanded?
Runtime
Compile time
Never gets expanded
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the option below which is not a member of class.
Friend function
Static function
Virtual function
Const function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Data members and member functions of a class are private by default. True or False?
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does polymorphism stand for?
a class that has four forms
a class that has two forms
a class that has only a single form
a class that has many forms
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which principle of OOP is illustrated by defining different methods with the same name but different parameters?
Inheritance
Polymorphism
Encapsulation
Abstraction
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of default arguments in function definitions?
To specify what value a function returns
To give a default value to a parameter if no argument is passed
To make a parameter optional
To overload a function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does encapsulation in C++ refer to?
Creating multiple copies of the same function
Protecting data by making it private
The process of combining data and functions into a single unit
Linking different classes together
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
C++ Quiz

Quiz
•
University
18 questions
AP Computer Science A Post Unit 2 Check

Quiz
•
10th Grade - University
20 questions
La sintassi CSS

Quiz
•
9th Grade - Professio...
15 questions
C++ Quiz-1

Quiz
•
University
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
22 questions
c++

Quiz
•
University
18 questions
THE_COVER

Quiz
•
University
16 questions
HTML Tags

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade