Inheritance Quiz

Inheritance Quiz

2nd Grade

10 Qs

quiz-placeholder

Similar activities

Inheritance in C++

Inheritance in C++

12th Grade

9 Qs

Gaming Lesson 3

Gaming Lesson 3

6th - 8th Grade

14 Qs

Advanced C# Quiz 4: Classes

Advanced C# Quiz 4: Classes

University

10 Qs

Unit02 Quizizz01

Unit02 Quizizz01

9th - 12th Grade

10 Qs

Business Analysis 2 - Data modelling and requirements

Business Analysis 2 - Data modelling and requirements

University

8 Qs

3.1-basic-CSS-review

3.1-basic-CSS-review

7th Grade - Professional Development

10 Qs

JavaScript #4: DOM

JavaScript #4: DOM

12th Grade

10 Qs

OOP 4 Polymorphism

OOP 4 Polymorphism

11th Grade

10 Qs

Inheritance Quiz

Inheritance Quiz

Assessment

Quiz

Computers

2nd Grade

Hard

Created by

Sakar Omar

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is inheritance in programming?

A method to delete classes

A way to create a new class from an existing class

A type of error in coding

A way to create random numbers

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a base class?

A class that is inherited from

A class that has no methods

A class that only has private members

A class that inherits from another class

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the sealed keyword do?

Makes a class public

Hides a class from the program

Prevents other classes from inheriting from a class

Allows other classes to inherit from a class

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is single inheritance?

A class that inherits from only one base class

A class that inherits from multiple classes

A class that can inherit methods only

A class that has no base class

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an advantage of inheritance?

Requires more memory

Increases code repetition

Makes code harder to read

Reduces application development time

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a derived class?

A class that is the same as the base class

A class that only has private methods

A class that inherits from a base class

A class that does not inherit anything

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is multi-level inheritance?

A class that inherits from two base classes

A class that inherits from one base class and becomes a base class for another

A class that has no base class

A class that can only inherit methods

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?