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

Concrete and Abstract Nouns (February Valentines Day 3rd Grade Language Arts Kahoot!) Third

Concrete and Abstract Nouns (February Valentines Day 3rd Grade Language Arts Kahoot!) Third

KG - University

14 Qs

Unit 5 Vocabulary

Unit 5 Vocabulary

9th - 12th Grade

12 Qs

Syllabus Quiz

Syllabus Quiz

9th - 12th Grade

11 Qs

SMS Quizizz Instruction and Features Quiz

SMS Quizizz Instruction and Features Quiz

Professional Development

15 Qs

Show and Tell: ch 19-20

Show and Tell: ch 19-20

5th Grade

15 Qs

SIMULASI ANBK 2023

SIMULASI ANBK 2023

KG - University

13 Qs

Rules & Procedures Quiz

Rules & Procedures Quiz

9th - 12th Grade

13 Qs

Chapter 3+4 (school)

Chapter 3+4 (school)

4th Grade

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