Search Header Logo

Python Arcade 10Com at 26/5/2021

Authored by Peter Erhard

Computers

10th Grade

Used 4+ times

Python Arcade 10Com at 26/5/2021
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Why did this python code produce an error?

It is no python code.

Indentation is wrong.

The if statement is incorrect

can't see an error

2.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

What statement need to be there for ????


output = "x: " + ?????(self.player_sprite.center_x)

arcade.draw_text(output, 10, 20, arcade.color.WHITE, 14)

output = "y: " + ?????(self.player_sprite.center_y)

arcade.draw_text(output, 10, 40, arcade.color.WHITE, 14)

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is str in this python code?


output = "x: " + str(self.player_sprite.center_x)

arcade.draw_text(output, 10, 20, arcade.color.WHITE, 14)

Python arcade library function

Variable

string

build-in python function

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a 'if' statement?

... programming conditional statement that, if proved true, performs a certain functionality.

Python Library used to provide build in functions.

A loop statement to provide extended functionality.

Sorry, don't know

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many variables have been defined here?

7

5

3

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the movement, speed of a sprite (character) get controlled in python arcade?

In pushing buttons down.

In controlling the x and y co-ordinates

The code controls it automatically

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

What statements are correct to the programming lines 37 to 47?

The assembly a for-loop

The code saves us from having to repeat the same code (adding a bomb) several times.

The are a if-clause

The code belongs together.

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?