Search Header Logo

Conditionals

Authored by Rebecca Lee

Computers

10th Grade

Used 27+ times

Conditionals
AI

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 CHOICE QUESTION

30 sec • 1 pt

Which of the following is a test statement?

color = sprite.ask("What's your favorite color?")

sprite.say("So your favorite color is " + color.")

if color == "red":

color = "red"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes what a test statement is?

This part is the code that runs in a conditional if the condition is true

This is the part of the code that checks whether a condition is true or false

This is a code that shows how many times a loop should run

This is a code that saves multiple pieces of information in one place

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes what the nested code part of a conditional is?

This part is the code that runs in a conditional if the condition is true

This is the part of the code that checks whether a condition is true or false

This is a code that shows how many times a loop should run

This is a code that saves multiple pieces of information in one place

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many test statements does this program have?

1

2

3

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What happens if the user inputs "winter" into the first question in this program?

The background changes to a winter background

The user is asked another question

The sprites says "Sad..."

The sprite says "Me too!"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes what a flowchart is?

A diagram that shows each step of a process or algorithm

Conventions for making code easier for people to read

The line of code in a conditional that checks if something is true or false.

The line of code in a conditional that's indented over

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following symbols compares two values to see if they are the same?

=

[ ]

==

""

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?