Object Oriented Concepts Through CPP

Object Oriented Concepts Through CPP

University

20 Qs

quiz-placeholder

Similar activities

Quiz on List and Tuples

Quiz on List and Tuples

University

16 Qs

Introduction to Networking

Introduction to Networking

University

15 Qs

The AI Shield

The AI Shield

University

15 Qs

DI (EM24) - Diseño de Perfiles (T5)

DI (EM24) - Diseño de Perfiles (T5)

University - Professional Development

20 Qs

Data Mining - Classification Mining

Data Mining - Classification Mining

University

15 Qs

Unit 28 - Quiz #1

Unit 28 - Quiz #1

University

15 Qs

TH4: BàI 1: Phần cứng và phần mềm

TH4: BàI 1: Phần cứng và phần mềm

4th Grade - University

17 Qs

PROBLEM SOLVING USING R  UNIT I  MCQS

PROBLEM SOLVING USING R UNIT I MCQS

University

15 Qs

Object Oriented Concepts Through CPP

Object Oriented Concepts Through CPP

Assessment

Quiz

Computers

University

Medium

Created by

RAHUL SONAWANE

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?