You are on page 1of 4

Score for this attempt: 10 out of 10

Submitted Feb 14 at 12:16pm


This attempt took 5 minutes.

1 / 1 pts
Question 1

In an if-else statement, if the boolean expression is false then


________.

no statements or blocks are executed

the statement or block following the else is executed

the first statement or block is executed

all the statements or blocks are executed

1 / 1 pts
Question 2

________ operators are used to determine whether a specific


relationship exists between two values.

Assignment

Arithmetic

Logical

Relational

1 / 1 pts
Question 3

A block of code is enclosed in a set of ________.

braces, { }

parentheses, ( )
brackets, [ ]

double quotes, " "

1 / 1 pts
Question 4

The boolean expression in an if statement must evaluate to


________.

degrees or radians

true or false

positive or negative

left or right

1 / 1 pts
Question 5

A ________ is a boolean variable that signals when some condition


exists in the program.

sentinel

flag

block

case

1 / 1 pts
Question 6

The ________ statement is used to create a decision structure which


allows a program to have more than one path of execution.
block

if

null

flag

1 / 1 pts
Question 7

In Java, when a character is stored in memory, it is actually the


________ that is stored.

Unicode number

ASCII code

floating-point value

letter, symbol, or number

1 / 1 pts
Question 8

Which of the following expressions will determine whether x is less


than or equal to y?

x <= y

x => y

x >= y

x =< y
1 / 1 pts
Question 9

Which of the following is the not equal operator?

NOT

*&

!=

1 / 1 pts
Question 10

If you prematurely terminate an if statement with a semicolon, the


compiler will ________.

not display an error message

assume you are placing a null statement there

both not display an error message and assume you are placing a null
statement there

none of these

Quiz Score: 10 out of 10

You might also like