
Codesters_QZ1
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Medium
Bhavika shonal
Used 1+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code do?
The user’s projectile is triggered by the space key being pressed every 2 seconds
The computer’s projectile is an interval event that happens every 2 seconds.
It says user’s projectile and the computer’s projectile is very similar.
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
How do we call the function when the space key is pressed?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we check what sprite is being hit?
We set up a conditional statement that checks if the hit sprite (that is being passed to this function as a parameter) is the rocket sprite
We set up a conditional statement that checks if the hit sprite (that is being passed to this function as a parameter) is the enemy sprite.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the ball in the hole Game.
How can we make the ball stop moving while we wait?
We can set the x and y speeds to zero before calling the wait function.
We can set the x and y speeds to one before calling the wait function.
We can set the x and y speeds to 2 before calling the wait function.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In snowman game How can we ask for letters over and over again?
Using repeat loop
Using forever
Using while loop
Using for loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we check if the player has lost? What additional code will we need to add to handle this?
The player has lost if guesses drop to zero.
To handle this we will need to add code to decrease the value of guesses if the letter guessed is not in the word.
The player has lost if guesses drop to zero.
To handle this we will need to add code to decrease the value of guesses if the letter guessed is not in the word.
We should also add a print statement letting the user know how many guesses they have left.
We can change the while loop condition to only run if guesses is greater than zero and that word guessed has returned False.
The player wins if they guess all the letters in the word.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Now that we have lists to store our questions, answers, and correct answers how can we actually add information into these lists?
We can use the list function .append() to add items to our lists. Since we are working with parallel lists we want to make sure that we append the same amount of items to each list.
We can use the list function .pop() to add items to our lists. Since we are working with parallel lists we want to make sure that we append the same amount of items to each list.
We can use the list function .pop() to remove items to our lists. Since we are working with parallel lists we want to make sure that we append the same amount of items to each list.
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the Flipper game .How do we know if the shark is underwater?
The left of the screen, which is 1,1. The way we will show this in the code is by creating a tuple (a finite ordered list of elements) to hold the x and y coordinates of each segment.
The right of the screen, which is 2,2. The way we will show this in the code is by creating a tuple (a finite ordered list of elements) to hold the x and y coordinates of each segment.
The middle of the screen, which is 0,0. The way we will show this in the code is by creating a tuple (a finite ordered list of elements) to hold the x and y coordinates of each segment.
Similar Resources on Wayground
0 questions
Computer Science Discoveries Code.org U3L7-13
Quiz
•
0 questions
Introduction to Programming Bank
Quiz
•
0 questions
Key and Mouse Input Review
Quiz
•
0 questions
Events & Intervals - Codesters
Quiz
•
0 questions
Codesters in Space
Quiz
•
0 questions
JavaScript 101 Review
Quiz
•
0 questions
L12-15 Quiz
Quiz
•
0 questions
Scratch Quiz
Quiz
•
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
