NEW
Font size
S
M
L
XL
WorksheetsIntro to Python 1
Total questions: 22
Worksheet time: 17mins
Name
Class
Date
1.
What is syntax?
a)
Syntax is the word used to describe an error
b)
Syntax is the rules of the programming language
c)
It is used to read information
d)
It is used to output information
2.
Shows the syntax of commands that you can drag
a)
Code Editor
b)
Toolkit
c)
Stage
d)
Syntax
3.
The order in which each command runs
a)
Sequence
b)
Syntax
c)
Sprite
d)
Block of Code
4.
Finding and fixing the errors in a program
a)
Indentation
b)
Nesting
c)
Event Block
d)
Debugging
5.
The area where your program's output is displayed
a)
Code Editor
b)
Toolkit
c)
Stage
d)
Syntax
6.
A plane that is divided into four regions by a horizontal line called the x
a)
Coordinate Plane
b)
Pixel
c)
Nesting
d)
Dot Notation
7.
A block of code that may repeat or run more than once.
a)
Loop
b)
If
c)
Function
d)
Event Block
8.
In which section of the toolkit would you find a "space" background?
a)
Actions
b)
Sprites
c)
Stage
d)
Events
9.
In which section of the Toolkit would you find the move forward command?
a)
Action
b)
Sprites
c)
Stage
d)
Events
10.
In which section of the Toolkit would you find a "dinosaur" sprite?
a)
Action
b)
Stage
c)
Sprites
d)
Events
11.
Debug the line of code
stage.set_background("city)
stage.set_background("city)
a)
stage.set_background(city)
b)
stage.set_background(("city))
c)
stage.set_background("city")
d)
stage.set_background(CITY)
12.
What is the x value in the coordinate pair (-50, 100)
a)
50
b)
-50
c)
100
d)
-100
13.
sprite.glide_to(-50, 100)
Which direction from center will the sprite move?
Which direction from center will the sprite move?
a)
Left and Up
b)
Left and Down
c)
Right and Up
d)
Right and Down
14.
What is MISSING from the following coordinate pair: (100 50)
a)
A quote
b)
A sprite
c)
A parenthesis
d)
A comma
15.
sprite = codesters.Circle(0, 150, 100, "purple")
What is the location?
What is the location?
a)
(0,150)
b)
100
c)
0
d)
150
16.
sprite = codesters.Circle(0, 150, 100, "purple")
What is the diameter?
What is the diameter?
a)
0
b)
50
c)
150
d)
100
17.
Which option best describes how user input can impact our programs?
a)
It forces the user to write their own program
b)
It allows us to make programs interactive
c)
It lets us grade the user on their work
d)
User-input has no impact on our programs
18.
A character that is controlled by a program through code is referred to as a
a)
animal
b)
sprite
c)
person
d)
dojo
19.
What do these symbols mean in Codesters? ( )
a)
Loop
b)
Gathers Commands
c)
Repeats Code
d)
Excludes Code
20.
A loop is a block of ___________ containing commands that will be run more than once.
a)
code
b)
actions
c)
programs
d)
binary
21.
What is the black box that you enter your code into called?
a)
code editor
b)
code writer
c)
algorithm box
d)
toolkit
22.
These are also called ordered pairs and name locations on the coordinate plane.
a)
Point
b)
Origin
c)
(X,Y) Coordinates
d)
Coordinate Plane
Reset
