Ready to test your Knowledge?
Try out our new practice tests completely free!
exam preparation banner icon

Programming Logic and Design Comprehensive

Computing

Quiz 4 :

Making Decisions

Quiz 4 :

Making Decisions

search
arrow
A series of nested if statements is also called a ____ if statement.
Free
Multiple Choice
Answer:

Answer:

B

arrow
The ____ clause of the decision is the part that executes only when the tested condition in the decision is false.
Free
Multiple Choice
Answer:

Answer:

C

arrow
Both operands in a comparison expression must be the same ____.
Free
Multiple Choice
Answer:

Answer:

D

arrow
Most programming languages limit the number of AND and OR operators in an expression.
True False
Answer:
arrow
You can use parentheses to override the default order of operations.
True False
Answer:
arrow
A ____ expression is one that represents only one of two states,usually expressed as true or false.
Multiple Choice
Answer:
arrow
You use the case structure only when a series of decisions is based on a single expression.
True False
Answer:
arrow
When you need to satisfy two or more criteria to initiate an event in a program,you must make sure that the second decision is made entirely independently of the first decision.
True False
Answer:
arrow
Usually,____ variables are not considered to be equal unless they are identical.
Multiple Choice
Answer:
arrow
Most languages allow a specialized selection structure called the ____ structure when there are several distinct possible values for a single variable,and each value requires a different subsequent action.
Multiple Choice
Answer:
arrow
Most programming languages allow you to ask two or more questions in a single comparison.
True False
Answer:
arrow
The ____ clause is the part of the decision that holds the action or actions that execute when the tested condition in the decision is true.
Multiple Choice
Answer:
arrow
When you ask multiple questions before an outcome is determined,you create a ____ condition.
Multiple Choice
Answer:
arrow
Any decision can be made using combinations of just two types of comparisons: equal and not equal.
True False
Answer:
arrow
In any comparison,the two values compared can be either variables or constants.
True False
Answer:
arrow
When you combine AND and OR operators,the OR operators take precedence,meaning their Boolean values are evaluated first.
True False
Answer:
arrow
A(n)____ decision is a decision in which two conditions must be true for an action to take place.
Multiple Choice
Answer:
arrow
A short-circuit evaluation is where each part of an expression is evaluated only as far as necessary to determine whether the entire expression is true or false.
True False
Answer:
arrow
The NOT operator is a unary operator,meaning it takes only one operand.
True False
Answer:
arrow
____ operators require two operands.
Multiple Choice
Answer:
Showing 1 - 20 of 60