Search Header Logo

CS3 - Review

Authored by Denise Bethard

Computers

Used 159+ times

CS3 - Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

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

Media Image

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?

Media Image
Media Image
Media Image
Media Image

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".

Media Image
Media Image
Media Image
Media Image

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?