Search Header Logo

OOP2023_B7B8Quiz_April15

Authored by MR ARORA

Computers

University

Used 1+ times

OOP2023_B7B8Quiz_April15
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

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

Already have an account?