Exam 4: Making Decisions
Exam 1: An Overview of Computers and Proramming51 Questions
Exam 2: Elements of High Quality Programs51 Questions
Exam 3: Understanding Structure51 Questions
Exam 4: Making Decisions51 Questions
Exam 5: Looping51 Questions
Exam 6: Arrays51 Questions
Exam 7: File Handling and Applications51 Questions
Exam 8: Advanced Data Handling Techniques51 Questions
Exam 9: Advanced Modularization Techniques51 Questions
Exam 10: Object Oriented Programming51 Questions
Exam 11: More Object Oriented Programming Concepts51 Questions
Exam 12: Event Driven Gui Programming Multithreading and Animation51 Questions
Exam 13: System Modeling With the Uml51 Questions
Exam 14: Using Relational Databases51 Questions
Select questions type
When you use the logical ____ operator, only one of the listed conditions must be met for the resulting action to take place.
Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
A
In an OR decision, why is it more efficient to first ask the question that is more likely to be true?
Free
(Essay)
4.8/5
(28)
Correct Answer:
The general rule is: In an OR decision, first ask the question that is more likely to be true. This approach eliminates as many executions of the second decision as possible, and the time it takes to process all the data is decreased. As with the AND situation, in an OR situation, it is more efficient to eliminate as many extra decisions as possible.
When you ____________________ decisions because the resulting action requires that two conditions be true, you must decide which of the two decisions to make first.
Free
(Short Answer)
4.7/5
(35)
Correct Answer:
nest
Usually, ____ variables are not considered to be equal unless they are identical.
(Multiple Choice)
4.8/5
(31)
A series of nested if statements is also called a ____ if statement.
(Multiple Choice)
4.9/5
(39)
You use the logical ____ operator to reverse the meaning of a Boolean expression.
(Multiple Choice)
4.9/5
(42)
When creating a truth table, you must determine how many possible Boolean value combinations exist for the conditions. If there are two conditions, ____ combinations will exist.
(Multiple Choice)
4.8/5
(32)
List the three types of comparisons that enable the making of any decision.
(Essay)
4.9/5
(41)
A ____ expression is one that represents only one of two states, usually expressed as true or false.
(Multiple Choice)
5.0/5
(44)
List three techniques to avoid confusion when mixing AND and OR operators.
(Essay)
4.7/5
(44)
Most programming languages allow you to ask two or more questions in a single comparison.
(True/False)
4.9/5
(36)
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)
4.8/5
(45)
A ____________________ selection is one in which an action is associated with each of two possible outcomes.
(Short Answer)
4.8/5
(32)
Both operands in a comparison expression must be the same ____.
(Multiple Choice)
4.8/5
(39)
You can use ____ for clarity and to override the default order of operations.
(Multiple Choice)
4.9/5
(32)
Showing 1 - 20 of 51
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)