#144 Two Selection and Not

#144 Two Selection and Not

Assessment

Interactive Video

Computers

10th Grade

Easy

Created by

Myra Deister

Used 3+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an if-else statement used for?

To execute code only when a condition is false

To specify a block of code for true or false conditions

To print messages on the screen

To create loops in programming

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What operator is used to check if a condition is NOT true?

&

||

!

==

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the NOT operator do in an if-else statement?

It always returns true

It reverses the truth value of a condition

It executes the else statement

It creates a loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about if-else statements?

There is only one way to write them

They can only execute one block of code

There is more than one way to write an if-else statement.

They are only used for weather conditions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What flexibility do if-else statements provide in programming?

They allow for random code execution

They allow for options based on conditions

They only allow one task to be executed

They eliminate the need for conditions