NEW
Font size
S
M
L
XL
WorksheetsCS Disco U3L12
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
In the statement x=x+1, the "=" sign represents...
a)
an expression
b)
gets the total
c)
gets the value
d)
the equation
2.
The statement "you can have either a puppy or a bunny" is an example of ...
a)
a conditional statement
b)
a Boolean statement
c)
an expression
d)
a variable
3.
var.property=var.property+1 is...
a)
an example of dot notation
b)
updates the variable
c)
an expression
d)
a parameter of the variable
4.
In the statement var.property=var.property+1, the value of the variable is being
a)
updated by 1
b)
decremented by 1
c)
given a property of 1
d)
incremented by 1
5.
To move a sprite with the arrow keys you need what comand?
a)
moveSprite
b)
mouseDown
c)
keyDown
d)
a Boolean expression
6.
an "if statement" is what type of algorithm
a)
repetiton/iteration
b)
conditional
c)
sequence
d)
expression
7.
The animation tab contains
a)
images
b)
sprites
c)
commands
d)
properties
8.
If my username and password are correct, log me into Snapchat...
If Pacman has collected all the balls, start the next level...
If my keyboard or mouse hasn't moved in 10 minutes, turn on the screensaver...
If Pacman has collected all the balls, start the next level...
If my keyboard or mouse hasn't moved in 10 minutes, turn on the screensaver...
a)
all are examples of algorithms
b)
all are examples of expressions
c)
all are examples of repetition
d)
all are examples of conditionals
9.
>, <, == are examples of
a)
Boolean expressions
b)
Comparison operators
c)
Expressions
d)
Variables
10.
What is the difference between "=" and "=="?
a)
== gets the value
b)
= gets the total
c)
= gets the total, == gets the total of two values
d)
== checks to see if two values are equal
Reset
