If/Else Statements (C++ Programming)

If/Else Statements (C++ Programming)

9th Grade

10 Qs

quiz-placeholder

Similar activities

Selection in Python

Selection in Python

1st - 9th Grade

15 Qs

Python If Else Statements

Python If Else Statements

9th - 12th Grade

15 Qs

JAVA QUIZ

JAVA QUIZ

1st - 12th Grade

11 Qs

Hour of Code

Hour of Code

6th - 12th Grade

12 Qs

Python Basics - Year 8

Python Basics - Year 8

7th - 9th Grade

14 Qs

Create with Code Prototype 2 Quiz

Create with Code Prototype 2 Quiz

9th - 12th Grade

10 Qs

if/else statements quiz

if/else statements quiz

9th Grade - University

10 Qs

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

If/Else Statements (C++ Programming)

If/Else Statements (C++ Programming)

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Joseph Sultan

Used 52+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?