Font size
WorksheetsCoding Test #2
Total questions: 39
Worksheet time: 37mins
Variables are NOT surrounded by quotes. We refer to the variable's value by using its name alone.
True
False
The variable before each question stores a string that does not get read or interpreted by the program.
True
False
Match the definition to the correct vocabulary word.
a variable that stores the input that a user enters in an Ask text box
input variable
a letter, number, word, or sentence in quotation marks; strings appear green in the Codesters code editor
string
the syntax for assigning an action to a specific sprite using its variable name
dot natation
a variable that stores a string value
string variable
True or False:
Python will NOT automatically include a space between strings. Students must include that space in the string.
True
False
True or False: Students can NOT use variables as arguments in .say( ) commands to make the sprite say the value of the variable.
false
true
True or False:
NONE of the text of a .say( ) command, strings and variables, must go inside the parentheses that follow the command.
False
True
True or False:
You NEED to put quotes around variable names.
True
False
Match the correct definition to the vocabulary word:
the process of combining two strings together with the + operator
string concatenation
a variable that stores an integer (whole number) value
integer variable
a variable that stores a string (text) value
string variable
an integer, string, or variable that controls how a command is run
argument
True or False:
We can use a variable as an argument to control the size of multiple objects. Variables appear orange in the Codesters code editor and should NOT be surrounded by quotes.
True
False
True or False:
Programs run in order from bottom to top.
False
True
True or False:
Variables MUST be created before they can be used.
True
False
True or False:
Variable names cannot contain spaces. To use two words in a variable names, replace spaces with underscores.
False
True
Match the definition to the correct vocabulary word:
a block of code that will only run when a certain action happens
event
a name that stores a value
variable
the word to the left of the equals sign that identifies a specific variable
variable name
the string we use in a sprite command to get specific images from the Codesters library; sprite = codesters.Sprite("cat") will display the sprite with the "cat" image label
image label
True or False:
When a command has multiple arguments, the arguments must be separated by commas.
True
False
True or False:
Integers are NOT surrounded by quotes.
True
False
True or False:
Strings never are surrounded by quotes.
False
True
True or False:
We can use a sprite's variable name to assign actions to a sprite. This is called dot notation.
True
False
True or False:
You must use a sprite's variable name BEHIND the action command you want to assign.
True
False
True or False:
You must NOT use the correct variable name when assigning actions to a sprite.
True
False
True or False:
The variable name sprite is the default sprite variable name in Codesters. If you change a sprite's name, you must also change the variable name in front of any command that you want to assign to that sprite.
True
False
A letter, word, or sentence in quotation marks is called a _____.
string
input
variable
integer
What symbol do you use to concatenate (join) two strings?
-
+
=
*
True or False:
You can use an .ask( ) command WITHOUT a sprite.
True
False
This stores the text that the user inputs in an Ask command
input string
input variable
input integer
input sprite
True or False:
User input is NEVER a string
False
True
You’re helping a friend with their code and see an input variable named input.
What feedback should you give?
All the variables should be named input
The sprite should say every input variable
This variable name is too general and should be more specific & descriptive
You should keep the name, but make sure only one variable is named input
Choose the best definition of a variable.
A collection of letters or number surrounded by quotes.
A positive or negative number with no fractional part.
A name that stores a value.
A character on the stage.
An integer variable is a variable that stores a(n) _____ value.
word
text
object
integer number
A string Variable is a variable that stores a(n) ______ value.
word
text
object
number
Variables are ____ in the code editor and not surrounded by quotes.
red
yellow
orange
blue
Which term is NOT part of a variable creation statement?
Name
Equal Sign
Value
Stage
Why are variables useful in programming?
They always make your code easier to read
You are less likely to have syntax errors
Cause big changes in your program with only a small change in the code
You can only use each variable once
Choose the best definition of a variable.
a collection of letters or number surrounded by quotes
a positive or negative number with no fractional part.
a name that stores a value
a character on the stage
A string variable is a variable that stores a ____ value.
word
text
object
number
Variables are ____ in the code editor and not surrounded by quotes.
red
yellow
orange
blue
To control the location, size, or color of a shape, you edit its:
arguments
perimeter
objects
comment
How can we use dot notation?
We can use it to make dots on the screen.
We can use it before a command to give the command to a specific sprite.
We can use it to assign the same command to multiple sprites at once
We use it to change the variable names of sprites
The variable before the dot is the...
actor
action
The command after the dot is the...
actor
action
