If/Else Statements (C++ Programming)

If/Else Statements (C++ Programming)

9th Grade

10 Qs

quiz-placeholder

Similar activities

Python 3 Basics

Python 3 Basics

9th Grade

13 Qs

Week 3 Arduino Basics Quiz

Week 3 Arduino Basics Quiz

7th - 12th Grade

10 Qs

Programming - Selection in an Algorithm

Programming - Selection in an Algorithm

1st - 11th Grade

10 Qs

Programming

Programming

1st - 10th Grade

10 Qs

Small Basic Mid Point Review

Small Basic Mid Point Review

6th - 12th Grade

8 Qs

CodeHS Unit 1

CodeHS Unit 1

9th - 12th Grade

12 Qs

Conditional Statements JavaScript

Conditional Statements JavaScript

8th - 12th Grade

10 Qs

Javascript

Javascript

9th Grade

10 Qs

If/Else Statements (C++ Programming)

If/Else Statements (C++ Programming)

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Joseph Sultan

Used 61+ 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?