stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Code Ninjas SE Orange Belt Quiz Flashcards | StudBud
Explore
/
Code Ninjas SE Orange Belt Quiz
Code Ninjas SE Orange Belt Quiz
23 terms
·
StudBud Administration
·
98 plays
A quiz to test out ninjas knowledge!
Flashcards
23 cards
F
Practice quiz
P
Host live
L
Questions
23
Answers
1
what do you add after each case in a switch?
deal
break
end
cont
2
What function removes timers from the game?
$this.removeTimers()
$this.scene.removeTimers
$this.cleanUpTimers()
$this.scene.cleanupTimers()
3
What does this function from shut the box do?
it removes the dice and adds the tiles to an array
it makes all the tiles visible and removes all old data from the arrays
it puts all of the tiles in the right spot and sets up the box number array
it sets up the dice so that they can be rolled and makes the dice array
4
How do you access something in an array
array{0}
array.0
array[0]
array(0)
5
How do you add a case to a switch?
case x;
case (x)
case x
case x:
6
in Circus Bounce, this code would work to control the trampoline
True
False
7
What does this code from dungeon escape do?
it places the walls around the map
it moves the ninja by the arrow keys
it lets you collect the coin
It stops you from walking through walls
8
What is this code from Ninja race an example of?
broken code
a switch case
a loop
A function
9
What does $this.scene.timing.life return?
when the game was made
how long the game has been running in mileseconds
how long the game has been running in seconds
how long the game has been waiting for an imput
10
What does this code from ball toss do?
it makes the ball move with gravity
it stops the game from firing two balls
it sets cannonX and Y to the vector between the two
it checks if the ball is touching the basket
11
What does this code from ninja race do?
It makes 2 road clones and puts each rode in a certain spot
it makes the roads move at a specific speed
it adds roads every time the game updates
It allows the player to control the bike using arrows
12
What does this code from whack a ninja improved do?
It adds a new object to the game named "ninja" then a number
It makes a ninja equal to another ninja
It sets the name of an object in the game to "ninja"
it finds an object in the game with the name "ninja" then a number
13
What does this code from wall blaster 2 do?
it sets up the bricks by moving all objects to the right spots
It sets up the bricks by cloning on brick and changing the clones colours
it sets up the bricks by changing the background colour in certain spots
It sets up the ball to be used in the game
14
in flying ninja, we use the z value to put the second background in front of us
True
False
15
In word scramble, which is a correct way to shuffle the word?
sort(arr)
arr.sort => sort
random.sort.array
arr.sort => random(-1, 1)
16
What is the purpose of the collision timer in this code?
it stops the ball from ever hitting the paddle
it removes all the bounce and makes the ball go straight
it stops the ball from hitting the paddle to many times really fast
it adds an extra bounciness to the ball by allowing some extra bounce time
17
In Endless run, how can you stop the player from jumping in air
A variable that checks if you are on the ground
A variable that you can set false on jump and true on land
any of the other 3
A timer that stops the player from jumping until it finishes
18
What does arr.sort(() => random(1, -1)); do?
it empties the array
it makes an entirely new array
it randomly arranges the array
it returns the array
19
Are you ready for Green belt!?
Of course!
You bet I am!
I have no clue what I'm doing
I'm not sure...
20
In sky is falling, what would you use to make more clouds?
A self made function
A variable
A for loop
A timer
21
$this.mouseClicked will return true of false if the object was clicked
False
True
22
What does this code from ball toss do?
it removes gravity from the ball
It moves the ball with gravity
it changes the velocity by gravity then moves
it moves the ball with its velocity
23
why do we use math.round with random numbers?
it makes the number you get a whole number always
if we didn't the game would always give an error
it makes them nice an d smooth
it keeps the number between to points