Python Term 2 - Quiz 2

Python Term 2 - Quiz 2

6th - 8th Grade

9 Qs

quiz-placeholder

Similar activities

Python Tartaletka 3

Python Tartaletka 3

5th - 9th Grade

13 Qs

Python L3 (MS) Lesson 5

Python L3 (MS) Lesson 5

6th Grade

6 Qs

Pygame

Pygame

6th - 8th Grade

10 Qs

S2 Scratch Knowledge Check 2

S2 Scratch Knowledge Check 2

7th Grade

10 Qs

Quiz sur Pygame

Quiz sur Pygame

8th Grade

13 Qs

Lesson1_Level4

Lesson1_Level4

6th - 12th Grade

11 Qs

10. Pygame

10. Pygame

5th - 12th Grade

12 Qs

Списки Python + Pygame

Списки Python + Pygame

KG - University

10 Qs

Python Term 2 - Quiz 2

Python Term 2 - Quiz 2

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Created by

Tomasz Michalski

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With what symbol can we access attributes and methods of an object?

.

-

*

:

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In what way can we display an image on a screen by using the pygame module?

display.draw(image, (20, 20))

display.blit(image, (20, 20))

image.draw(display, (20, 20))

display.display(image, (20, 20))

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to set the size of the display?

pygame.display.set_mode()

pygame.display.set_screen()

pygame.display.set_size()

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to close a pygame program?

pygame.quit()

pygame.exit()

pygame.terminate()

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class in the pygame module is used to create new game objects?

Sprite

Image

Object

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A group of similar objects that allows to operate on them as a whole

An image object

Such thing does not exist in pygame module.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Is this program written correctly?

Yes

No

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code fragment will create a Car class instance and passes value 2011 into the constructor?

bmwCar(2011)

tesla = Car.create(2011

mustang = Auto(2011)

porsche = Auto.create.2011

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way of defining a constructor?

class init(self):

def __init__(self):

clas __init__:

def init(self):