
CS3 - Review
Authored by Denise Bethard
Computers
Used 159+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
You can combine two strings into one using the '+' operator. This is called (select all correct answers)
Adding strings.
Combining strings.
Concatenating strings.
Using Boolean
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To escape from the storeroom without being caught by the ogre guard, follow the trail of coins. (Hint: Just like checking an enemy's 'type', you can check the position or 'pos' of an 'item'. You can even find the 'x' and 'y' coordinates of a 'item's pos'.) Which of the Syntax below is the correct one to complete the level?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Each item is an object, which is a type of data, like a string or a number. Objects contain other pieces of data, which are known as:
Object string
Object data
Properties
Object number
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Change the condition here to make your hero say "Come at me!" (Multiple answers)
if 3 + 3 == 7:
hero.say("Come at me!")
if 3 + 3 == 6: hero.say("Come at me!")
if 3 + 3 != 6: hero.say("Come at me!")
if 3 + 3 != 7:
hero.say("Come at me!")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Two equal-signs together == represents the equality operator, whereas = is the assignment operator.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you code: "if this is True, then do that". Choose the correct answer.
if 2 + 2 != 4:
hero.say("Hey!")
if 2 + 2 == 4:
hero.say("Hey!")
2 + 2 == 4:
hero.say("Hey!")
None of the above.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you accomplish the following goals: Only attack enemies of type "munchkin" and "thrower". Don't attack a "burl".
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?