If/Else Statements (C++ Programming)

If/Else Statements (C++ Programming)

9th Grade

10 Qs

quiz-placeholder

Similar activities

IP: JavaScript & jQuery

IP: JavaScript & jQuery

9th - 12th Grade

9 Qs

Unit 2 - Elif Statements/Nested if statements

Unit 2 - Elif Statements/Nested if statements

9th Grade

15 Qs

Programming Basics

Programming Basics

9th - 10th Grade

10 Qs

Computing laws

Computing laws

9th - 12th Grade

12 Qs

Programming with Karel the Dog 2

Programming with Karel the Dog 2

6th - 9th Grade

13 Qs

Python Algorithm

Python Algorithm

4th Grade - University

15 Qs

Pseudocode

Pseudocode

8th - 9th Grade

9 Qs

SC102- Lesson 1 (Recap)

SC102- Lesson 1 (Recap)

5th Grade - University

10 Qs

If/Else Statements (C++ Programming)

If/Else Statements (C++ Programming)

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Joseph Sultan

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