Search Header Logo
Python classes

Python classes

Assessment

Presentation

Computers

10th Grade

Medium

Created by

Ljiljana Ljuba

Used 13+ times

FREE Resource

3 Slides • 8 Questions

1

Python classes

Slide image

2

3

4

Multiple Choice

What are class variables?

1

Variables with a sense of style

2

Variables that apply to all instances of the class

3

Variables that change with every instance of the class

4

Integers

5

Multiple Choice

Identify the code that properly accesses an engine_sound() method in a Car class.

1

porsche.engine_sound()

2

mustang = engine_sound()

3

engine_sound(tesla):

4

engine_sound.Car(camaro)

6

Multiple Choice

Identify the initialization method for a Car class.

1

class init(self, make, model):

2

class__init__:

3

def __init__(self, make, model):

4

def __init__(self, make, model):

7

Multiple Choice

Identify the term that describes the creation of a new object.

1

instantiation

2

declare

3

iteration

4

initialize

8

Multiple Choice

Identify the first statement that creates a class named Employee.

1

class Employee():

2

Class Employee:

3

class employee:

4

class Employee:

9

Multiple Choice

What is the keyword to create a class?

1

import

2

__int__

3

class

4

def

10

Multiple Choice

What is a Python class?

1

A function to create an object.

2

A template (blueprint) for creating objects.

3

A procedure related to an object.

4

A process that repeats are directed.

11

Multiple Choice

What is a Python class?

1

A function to create an object.

2

A template (blueprint) for creating objects.

3

A procedure related to an object.

4

A process that repeats are directed.

Python classes

Slide image

Show answer

Auto Play

Slide 1 / 11

SLIDE