Search Header Logo

Code.org Unit 6 Review conditionals and Variables

Authored by Deirdre Carlino

Computers

8th Grade

Used 36+ times

Code.org Unit 6 Review conditionals and Variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Another term for an "if-else" statment is

loops

function

conditional

algorithm

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Conditionals

run lines of code a specified number of times

check to see if a statement is true or false before running code

always will run a set of commands

will always skip a set of commands

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

In this code, the condition that needs to be checked is

fruit.scale

fruit.scale > 2

if

fruit.setAnimation

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

In this section of code, if the condition is true, what will happen?

The bug will move right.

The bug will move left

The bug will move up

You can't tell from this code

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does randomNumber (0, 100); mean?

It will allow the computer to choose a random number betwen 0 and 100

it will print any random number

it will place a random number at the coordinates of (0, 100)

it will return an error message because random numbers don't exist in Javascript

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the proper way to write the name of a variable when the variable has more than one word

redsox

red sox

redSoxWin

REDSOX

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct definition of "variable" in terms of computer science?

the x value

a placeholder for a piece of information that is stored in memory and can change

the (x, y) coordinates on the coordinate plane

the pieces of information that help us determine what the parameters are

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?