Python Design Patterns Quiz

Python Design Patterns Quiz

1st Grade

49 Qs

quiz-placeholder

Similar activities

discover 2b unit 15-18

discover 2b unit 15-18

1st - 2nd Grade

50 Qs

Tiếng anh 3

Tiếng anh 3

1st - 5th Grade

45 Qs

Patient Zero - Vocbulary - Alex Ridgway

Patient Zero - Vocbulary - Alex Ridgway

KG - Professional Development

47 Qs

ingles holaaaaaaaaaaa

ingles holaaaaaaaaaaa

1st - 5th Grade

51 Qs

RUNG CHUÔNG VÀNG NGÀY 12/01

RUNG CHUÔNG VÀNG NGÀY 12/01

1st Grade

50 Qs

MIDTERM A2 UNITS 1 TO 6

MIDTERM A2 UNITS 1 TO 6

1st Grade

48 Qs

ENGLISH 2ND

ENGLISH 2ND

1st - 3rd Grade

45 Qs

Grade One Spelling 3rd Term Examination

Grade One Spelling 3rd Term Examination

1st Grade

49 Qs

Python Design Patterns Quiz

Python Design Patterns Quiz

Assessment

Quiz

English

1st Grade

Medium

Created by

Айша Асылбек

Used 1+ times

FREE Resource

49 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When is __new__ executed?

Before __init__

After __init__

Instead of __init__

During class destruction

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What best describes a metaclass?

A superclass for all exceptions

A class that creates other classes

A decorated method

An abstract base class

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the Singleton pattern ensure?

Only one instance exists

Multiple interchangeable algorithms

One-to-many notifications

Dynamic behavior addition

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pattern delegates object creation to subclasses?

Observer

Factory Method

Decorator

Strategy

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Observer pattern, who receives updates?

The main subject

Registered observers

Factory objects

Decorator classes

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the Decorator pattern do?

Adds responsibilities dynamically

Ensures single instance

Creates object families

Encapsulates algorithms

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pattern selects algorithms at runtime?

Singleton

Strategy

Observer

Factory

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?

Discover more resources for English