Polymorphism in C++ Quiz

Polymorphism in C++ Quiz

University

10 Qs

quiz-placeholder

Similar activities

Object Oriented Programming Quizizz

Object Oriented Programming Quizizz

10th Grade - University

11 Qs

java quiz on Encapsulation and Abstraction

java quiz on Encapsulation and Abstraction

University

10 Qs

bootcamp

bootcamp

University

8 Qs

Java Programming Pt. 1

Java Programming Pt. 1

University

10 Qs

Java Bootcamp Day 4

Java Bootcamp Day 4

University

15 Qs

DEBUG THE CODE

DEBUG THE CODE

University

10 Qs

Talent Next Java MCQ-1

Talent Next Java MCQ-1

University

10 Qs

OOPs concepts

OOPs concepts

University

10 Qs

Polymorphism in C++ Quiz

Polymorphism in C++ Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Vinston R

Used 5+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What does polymorphism mean in C++?

One name, many forms

Many classes, one object

One object, many classes

All of the above

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which type of polymorphism is achieved by function overloading or operator overloading?

Dynamic polymorphism

Static polymorphism

Runtime polymorphism

Virtual polymorphism

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Runtime polymorphism is achieved through:

Function overloading

Operator overloading

Virtual functions

Friend functions

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is required for function overriding in C++?

Different function name

Different return type

Virtual keyword in base class

Static functions

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the main advantage of polymorphism?

Faster execution

Better memory management

Code reusability and flexibility

None of the above

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following can be overloaded in C++?

Constructors

Functions

Operators

All of the above

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the correct syntax for declaring a virtual function?

virtual void func();

override void func();

static void func();

virtual function();

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?