Exam 4: Decision Structures and Boolean Logic
Exam 1: Introduction to Computers and Programming48 Questions
Exam 2: Input, processing, and Output48 Questions
Exam 3: Modules48 Questions
Exam 4: Decision Structures and Boolean Logic44 Questions
Exam 5: Repetition Structures44 Questions
Exam 6: Functions44 Questions
Exam 7: Input Validation44 Questions
Exam 8: Arrays46 Questions
Exam 9: Sorting and Searching Arrays43 Questions
Exam 10: Files43 Questions
Exam 11: Menu-Driven Programs43 Questions
Exam 12: Text Processing31 Questions
Exam 13: Recursion43 Questions
Exam 14: Object-Oriented Programming43 Questions
Exam 15: Gui Applications and Event-Driven Programming43 Questions
Select questions type
Which of the following is a logical operator?
Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
D
Although the sequence structure is heavily used in programming,it cannot handle every type of task.
Free
(True/False)
4.7/5
(37)
Correct Answer:
True
The If-Then-Else statement should be used to write a single alternative decision structure.
Free
(True/False)
4.8/5
(30)
Correct Answer:
False
Boolean variables are commonly used as __________,which indicate whether a specific condition exits.
(Short Answer)
4.7/5
(32)
The ________ operator could be used,in some situations,to simplify nested selection structures.
(Multiple Choice)
4.9/5
(39)
In many languages the case structure is called a ____________ statement.
(Multiple Choice)
4.8/5
(34)
The _________________ decision structure provides only one alternative path of execution.
(Short Answer)
4.9/5
(41)
A nested decision structure can achieve the same logic as a case structure.
(True/False)
4.7/5
(43)
A case structure is a ___________ alternative decision structure.
(Multiple Choice)
4.9/5
(36)
An If statement will produce unpredictable results if the programmer does not use proper indentations in pseudocode.
(True/False)
4.9/5
(36)
The __________ operator requires both sub expressions to be true for the compound expression to be true.
(Short Answer)
4.8/5
(36)
The _____ operator is best to determine whether a number is outside a range.
(Short Answer)
4.8/5
(34)
The short-circuit evaluation is performed with expressions containing any logical operators.
(True/False)
4.8/5
(41)
The expression with an AND operator ___________ when the expression on its left is false and so it does not evaluate the expression on its right.
(Short Answer)
4.8/5
(35)
Consider the following statement:
A store is giving a discount of 30% for all purchases of over $100.
Which of the following is not the appropriate structure to use to program the statement?
(Multiple Choice)
4.8/5
(45)
When a program performs actions only under certain conditions,it is using a _________ structure.
(Short Answer)
4.9/5
(34)
Which operator is used to determine that the operands are not exactly of the same value?
(Multiple Choice)
4.9/5
(24)
Which operator is best to determine whether x contains a value in the range of 10 through 57?
(Multiple Choice)
4.7/5
(36)
Showing 1 - 20 of 44
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)