Polymorphism in C++ Quiz

Polymorphism in C++ Quiz

University

10 Qs

quiz-placeholder

Similar activities

Object-Oriented Programming Quiz

Object-Oriented Programming Quiz

University

10 Qs

Object Oriented Programming

Object Oriented Programming

University

10 Qs

QUIZ PBO 2021

QUIZ PBO 2021

University

12 Qs

A Level OOP

A Level OOP

12th Grade - University

8 Qs

QUIZ-I-OBJECT ORIENTED PROGRAMMING WITH C++

QUIZ-I-OBJECT ORIENTED PROGRAMMING WITH C++

10th Grade - University

10 Qs

Java Inheritance

Java Inheritance

11th Grade - University

10 Qs

Object Oriented Programming

Object Oriented Programming

University

10 Qs

PRG1 - Day 10 Starter (PY)

PRG1 - Day 10 Starter (PY)

University

5 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?