Code.org Discoveries
Quiz
•
Computers
•
9th - 11th Grade
•
Hard
Cecilia Milla
Used 100+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the difference between sprite.visible being false and using sprite.destroy ( )?
nothing, they're both the same
sprite.destroy( ) requires that you re-create the sprite
sprite.visible = false will require that you re-create the sprite
because you can no longer see the sprite, then it no longer exists
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
When calling sprite.IsTouching(target) and you increase the score, why does the score go up so high?
Because the draw() function is a loop and the two sprites are touching many times.
What? no my score only goes up once. The sprites only touch once.
The IDE knows that I don't want to increase the score just by one and gives me a larger number because it thinks it's better to use larger numbers.
Because the sprite don't actually touch once I set sprite.visible = false.
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What's the difference between var sprite, and var x?
With a sprite you will need to call CreateSprite()
With a sprite you will need to call SetAnimation( )
the variable x is only used to hold a value that can be changed.
all of the above.
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
the if(keyDown(up)) returns
a boolean value of true if the user presses the down key
a boolean value of false if the user presses the down key
A boolean value of true if the user presses the up key
A boolean value of false if the user presses the up key
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Give an example of a nested if-condition
if(keyDown(up) and keyDown(left)) then sprite.y = sprite.y + 5;
if (keyDown(up)) then sprite.y = sprite.y + 5;
if (keyDown(up) or keyDown(left)) then sprite.y = sprite.y + 5;
if (keyDown(up)) then if(sprite.y > 400) then sprite.y = 0;
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In the draw loop, if you call the text function before the drawSprites and/or background function, what happens?
You won't be able to see your text because the sprites and background will be drawn on top of the text.
You will be able to see your text because Game Lab knows you want to see the text.
You won't be able to see your sprites or background because order doesn't matter.
You will be able to see your text because the sprites and the background will be drawn after the text.
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What happens if you don't call background in your draw loop and your sprite has movement?
nothing, animation is fine.
the sprites are drawn on top of each other to simulate movement, the older drawings don't get erased.
you don't need to call background because you don't have one.
you can just use sprite.move( ) so there's no need for the function background( )
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
History of Computers
Quiz
•
6th - 12th Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
15 questions
HTML
Quiz
•
8th - 12th Grade
10 questions
Q1 M 2 - TOPIC 2 / Check your understanding
Quiz
•
10th Grade
11 questions
ICT - Networks and communication
Quiz
•
9th Grade
10 questions
4Q Week3 Review Quiz (Who missed the Quiz ONLY))
Quiz
•
9th Grade
12 questions
GCSE AQA 04 Computer Systems - Languages & Translators
Quiz
•
10th - 11th Grade
15 questions
2.GRADE STORY 5
Quiz
•
2nd Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
15 questions
Halloween Trivia
Quiz
•
9th Grade
