APCSP Boolean Expressions/If-Else (After Exam)

APCSP Boolean Expressions/If-Else (After Exam)

Assessment

Flashcard

Computers

9th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

7 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What will happen if the condition in the code evaluates FALSE?

Back

nothing will happen/the block of statements does NOT run

2.

FLASHCARD QUESTION

Front

What will happen if the condition in the code evaluates TRUE? Options: the first block of statements runs, the second block of statements runs, nothing will happen/the blocks of statements do NOT run

Back

the first block of statements runs

3.

FLASHCARD QUESTION

Front

What will happen if the condition in the code evaluates FALSE? Options: the first block of statements runs, the second block of statements runs, nothing will happen/the blocks of statements do NOT run

Back

the second block of statements runs

4.

FLASHCARD QUESTION

Front

If the value of score1 is 350 and the value of score2 is 210, what will be the value of result after the code segment is executed?

Back

5

5.

FLASHCARD QUESTION

Front

What is 7 MOD 2?

Back

1

6.

FLASHCARD QUESTION

Front

What is 6 MOD 2?

Back

0

7.

FLASHCARD QUESTION

Front

What is the output after executing the following code segment:

Back

EVEN