Search Header Logo

Code.org Discoveries Conditional Blocks

Authored by Ty Hillegonds

Computers

6th - 9th Grade

Used 102+ times

Code.org Discoveries Conditional Blocks
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Predict what will show up on console.log

true true true

true false false

false false false

true false true

2.

MULTIPLE CHOICE QUESTION

30 sec • 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( )

3.

MULTIPLE CHOICE QUESTION

30 sec • 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.

4.

MULTIPLE CHOICE QUESTION

30 sec • 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

30 sec • 1 pt

Boolean Expression

a single image within an animation
A single value of either TRUE or FALSE
A piece of code that you can easily call over and over again.
Finding and fixing problems in your algorithm or program.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Conditionals

Any valid unit of code that resolves to a value.
a single image within an animation
Statements that only run under certain conditions.
Any valid unit of code that resolves to a value.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If-Statement

 The common programming structure that implements "conditional statements".
 Attributes that describe an object's characteristics
An algorithm that has been coded into something that can be run by a machine.
Part of a program that does not work correctly.

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?