stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
A-Maze-ing Game Flashcards | StudBud
Explore
/
A-Maze-ing Game
A-Maze-ing Game
10 terms
·
StudBud Administration
·
2 plays
A #quiz to explain the fundamentals of #coding
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
Which choice keeps the mouse from moving out of the bounds of the maze?
C
B
A
D
2
Which choice increases the score by a scalar value each time the player wins a round?
B
C
D
A
3
What should be the initial condition of the Boolean variable 'won game'?
Wongame = false;
Wongame = 0;
Wongame = true;
Wongame = " ";
4
Which choice Correctly displays a message when the player loses?
A
B
C
D
5
Which of the following is a logical range for the speed variable?
speed > 0
speed > 0 && speed <= 50
speed >= -50 && speed <= 50
speed >= 0 && speed <= 50
6
Which of the following is a variable name?
value
-1000
This value is
“hello”
7
Which results in the mouse winning if they collect all the cheese or decrease the time if not?
C
B
A
D
8
What is the best way to initialize and declare the starting timer variable?
var time = 60;
var cheese = 60;
var time = 60
var time is 60 seconds
9
How would you tell the user that they won the game?
console.log(You won);
console.log(“You won!”)
console.log(“You won!”);
consolelog(“You won!);
10
Which expression increases the speed by 1?
Speed plus;
Speed+;
Speed + 1
Speed++;