Search Header Logo

If/Else Statements (C++ Programming)

Authored by Joseph Sultan

Computers

9th Grade

Used 65+ times

If/Else Statements (C++ Programming)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

What is an "if" statement?

Lines of code activated when conditions are met

Executes a written line of code.

Stops the code if certain requirements are not met

Repeats a command until a statement is true.

2.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

What is an "Else" statement?

Assigns a value to a variable

Adds another command the code will execute

Runs the statement coded if anything else in the code does not run as anticipated.

A function that is performed if the "if" statement is not satisfied

3.

FILL IN THE BLANK QUESTION

30 sec • 5 pts

Media Image

The (a)   is executed once and only once

4.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

Where do you write an "if/else" statement?

Global Space

Void Setup

Void Code

Void Loop

5.

DRAW QUESTION

30 sec • Ungraded

Circle the global space

Media Image

6.

DRAW QUESTION

30 sec • Ungraded

Circle one example of an "if/else" statement.

Media Image

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

If an "if" statement is activated when a button is pressed, then the "else" statement will activate when...

the LED does not turn on

the button is not pressed

the LED turns on

the circuit does not power.

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?