G11 W11 P1

G11 W11 P1

11th Grade

11 Qs

quiz-placeholder

Similar activities

Câu hỏi về thiết bị máy tính

Câu hỏi về thiết bị máy tính

7th Grade - University

10 Qs

f.e

f.e

10th - 12th Grade

15 Qs

Mid semester kelas XI RPL Konsep pemodelan berorientasi objek

Mid semester kelas XI RPL Konsep pemodelan berorientasi objek

11th Grade

10 Qs

ICT Unit Test Topic : DBMS - Access

ICT Unit Test Topic : DBMS - Access

8th - 12th Grade

15 Qs

Cell Phone Vocabulary

Cell Phone Vocabulary

9th - 12th Grade

12 Qs

Excel

Excel

11th - 12th Grade

10 Qs

Chapter 8: Safety and security

Chapter 8: Safety and security

10th - 11th Grade

14 Qs

Interesting Bird Facts

Interesting Bird Facts

KG - Professional Development

11 Qs

G11 W11 P1

G11 W11 P1

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Ahmed Shams

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The composition of attributes and methods is defined by

Inheritance

Method

Class

Object

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is true about the inheritance concept in object-oriented programming?

A child class can inherit attributes and methods from multiple parent classes.

Child classes cannot have additional attributes or methods beyond those of the parent

A parent class can inherit from its child class.

Only methods can be inherited from the parent class.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following code and identify the parent class. class A: pass class B(A): pass class C(A): pass A.B B.C C.None D.A

A.B

B.C

C.None

D.A

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, what is an example of polymorphism?

Creating classes that inherit from multiple parent classes.

Creating multiple classes with the same name.

Using the len() method on different data types.

Writing multiple functions with different names that perform the same action.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Predict the output of the following program. class Parent: def speak(self): return "Parent Speaking" class Child(Parent): def speak(self): return "Child Speaking" obj = Child() print(obj.speak())

A.Child Speaking

B.An error will be raised

C.None of the above

D.Parent Speaking

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if a method is not found in the Child class but is present in the parent class?

The program will throw an error.

The method from the parent class will be executed.

The program will terminate.

The method from the child class will be executed.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which feature of OOP allows the reusability of code?

Inheritance

Class

Method

Object

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?