Why did this python code produce an error?
Python Arcade 10Com at 26/5/2021

Quiz
•
Computers
•
10th Grade
•
Hard
Peter Erhard
Used 4+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
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
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
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.
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
Python programming

Quiz
•
6th - 12th Grade
10 questions
Python

Quiz
•
10th - 11th Grade
10 questions
KS4 Programming Techniques (1)

Quiz
•
8th - 10th Grade
14 questions
Computing Revision JCG

Quiz
•
KG - University
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
15 questions
Python Lists

Quiz
•
10th - 12th Grade
10 questions
PYTHON (FOR LOOP)

Quiz
•
1st - 10th Grade
12 questions
Python Programming Basics

Quiz
•
7th - 11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University