OOP2023_B7B8Quiz_April15

OOP2023_B7B8Quiz_April15

University

5 Qs

quiz-placeholder

Similar activities

Java Quiz2

Java Quiz2

University

10 Qs

FGWHN Python OOP - Polymorphism

FGWHN Python OOP - Polymorphism

University

10 Qs

Basic java

Basic java

University

10 Qs

Weekly Contest #8 - TechXNinjas

Weekly Contest #8 - TechXNinjas

University

10 Qs

Hibernate Java

Hibernate Java

University

8 Qs

JAVA FOR ANDROID-JAVA

JAVA FOR ANDROID-JAVA

University

10 Qs

some questions

some questions

11th Grade - University

8 Qs

C# - 02

C# - 02

University

6 Qs

OOP2023_B7B8Quiz_April15

OOP2023_B7B8Quiz_April15

Assessment

Quiz

Computers

University

Hard

Created by

MR ARORA

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which access specifier is used in C++ to specify private inheritance?

public

protected

friend

private

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which type of inheritance is demonstrated when a class inherits from more than one base classes?

Single inheritance

Multiple inheritance

Hierarchical inheritance

Hybrid inheritance

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which access specifier is typically used to specify the overridden function in the base class?

public

friend

protected

private

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Can a function in C++ be both overloaded and overridden?

Yes, it is possible.

No, it is not possible.

Only overloaded functions can be overridden.

Only virtual functions can be overloaded.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid way to overload a function in C++?

Changing the number of parameters

Changing the order of parameters

Changing the data type of parameters

Changing the access specifier of the function