Quiz 7 Object Oriented Programming (Polymorphism, Abstract Classes and Interfaces)

Quiz 7 Object Oriented Programming (Polymorphism, Abstract Classes and Interfaces)

10 Qs

quiz-placeholder

Similar activities

Organization

Organization

8th Grade

11 Qs

Ellis Island

Ellis Island

KG - University

10 Qs

1.1. Social Status and Stratification Quiz_Gr 8

1.1. Social Status and Stratification Quiz_Gr 8

KG - University

15 Qs

Concrete and Abstract Nouns Assessment

Concrete and Abstract Nouns Assessment

KG - University

10 Qs

Social Class

Social Class

KG - University

10 Qs

L5.1 大卫的一天 课文理解练习-英文

L5.1 大卫的一天 课文理解练习-英文

KG - University

15 Qs

Unit 5 Part 1: Cooking Methods & Heat Transfer Quiz

Unit 5 Part 1: Cooking Methods & Heat Transfer Quiz

10th Grade

13 Qs

Syllabus Review

Syllabus Review

KG - University

15 Qs

Quiz 7 Object Oriented Programming (Polymorphism, Abstract Classes and Interfaces)

Quiz 7 Object Oriented Programming (Polymorphism, Abstract Classes and Interfaces)

Assessment

Quiz

others

Medium

Created by

Sithy Chamroeun

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is polymorphism in Dart?
A) The ability of a class to have multiple constructors
B) The ability of a method to have different implementations in subclasses
C) A way to prevent inheritance
D) The ability to store multiple values in a variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is method overriding in Dart?
A) A way to call a superclass method from a subclass
B) When a subclass provides a new implementation of a method from the superclass
C) Using multiple constructors in a class
D) A method that calls itself

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which keyword is used to override a method in Dart?
A) implements
B) override
C) extends
D) final

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following is NOT true about polymorphism?
A) It allows a subclass to override methods of the superclass
B) It makes the code more flexible and reusable
C) It prevents subclasses from modifying the superclass methods
D) It helps in achieving dynamic method dispatch

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is an abstract class in Dart?
A) A class that cannot be instantiated and is used to define a blueprint for other classes
B) A class that allows multiple inheritance
C) A class that can be instantiated directly
D) A class that only contains private variables

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which keyword is used to define an abstract class in Dart?
A) class
B) interface
C) abstract
D) implements

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which statement about abstract classes is true?
A) Abstract classes must have at least one method implementation
B) Abstract classes cannot have implemented methods
C) You can create an object of an abstract class directly
D) Abstract classes are used when we need partial implementation of functionality

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?