If/Else Statements (C++ Programming)

If/Else Statements (C++ Programming)

9th Grade

10 Qs

quiz-placeholder

Similar activities

Xcode and Playgrounds

Xcode and Playgrounds

9th - 11th Grade

9 Qs

Microsoft Publisher

Microsoft Publisher

7th - 10th Grade

10 Qs

S3 Web Technologies

S3 Web Technologies

9th Grade

10 Qs

Accessing the Internet

Accessing the Internet

9th - 10th Grade

15 Qs

AI and Python: Ch.1 Revision

AI and Python: Ch.1 Revision

9th Grade

10 Qs

SHEET QUIZ

SHEET QUIZ

9th - 12th Grade

15 Qs

End of term assessment

End of term assessment

9th Grade

15 Qs

If/Else Statements (C++ Programming)

If/Else Statements (C++ Programming)

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

Joseph Sultan

Used 64+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

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?