Java Games: Flashcards, matching, concentration, and word search.

Review Written Exam

C++ review for the written exam

AB
Relational operators allow you to compare numbers
zeroWhen a relational expression is false, it has this value
nestingWhen an if statement is placed within the conditionally-executed code of another if statement, this is known as:
&&The _____ operator represents the logical AND.
||The ______ operator takes an operand and reverses its truth or falsehood
ReasonablenessInput values should always be checked for
Relational expressionWhereas < is called a relational operator, x < y is called a(n)________________
==The _____ operator is used in C++ to represent equalityThe _____ operator is used in C++ to represent equality
AssignmentIn C++ the = operator indicates
bracesIf you intend to place a block of statements within an if statement, you must use __________ around the block.
logical operators___________ operators connect two or more relational expresisons into one, or reverse the logic of an expression.
!The ______ operator performs a logical NOT operation
++ and --and _____ are operators that add and subtract one from their operands.
pre-testThe while loop is a(n) ____________ loop.
at least onceThe statements following a while condition may never be executed, whereas the statements in a do-while expression will be executed:
updateA for statement contains three expressions: initialization, test, and
initializationIn a for statement, the ________ expression is executed only once.
variableYou may declare a __________ in the initialization expression of a for loop
post-testThe do-while loop is a __________ loop that is ideal in situations where you always want the loop to iterate at least once.
nestedA loop that is inside another loop is called:
continueThe _________ statement may be used to stop a loop's current iteration and begin the next one.
incrementTo ___________ a value means to increase it by one
prefixWhen the increment operator precedes its operand, as in ++num1, the expression is in _______ mode.
>In the statement if (x++ > 10), the _____ operator is used first
sentinelA __________ is a special value that marks the end of a list of values.
infiniteThe do-while loop is considered a(n) _________ loop
forIf you want a user to enter exactly 20 values, which loop would you use?


Deedee Herrera

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities