Exam 7: Case Control Structure
Exam 1: Introduction to Structured Design30 Questions
Exam 2: Simple Sequence Control Structure30 Questions
Exam 3: Ifthenelse Control Structure30 Questions
Exam 4: Dowhile Control Structurecounter-Controlled Loops30 Questions
Exam 5: Dowhile Control Structuretrailer Record Logic30 Questions
Exam 6: Modularization30 Questions
Exam 7: Case Control Structure30 Questions
Exam 8: Dountil Control Structure30 Questions
Exam 9: Introduction to Arrays30 Questions
Exam 10: Introduction to Object-Oriented Design30 Questions
Exam 11: Inheritance30 Questions
Exam 12: Other Class and Object Relationships30 Questions
Exam 13: Array Applications30 Questions
Exam 14: Master File Update Processing30 Questions
Exam 15: Control-Break Processing30 Questions
Select questions type
It is good programming practice to include an other path in every CASE control structure.
(True/False)
4.9/5
(34)
Given the following pseudocode,how many conditions will be tested if TRANSCODE is a Withdrawal?
Start
Read TRANSCODE
CASENTRY TRANSCODE
CASE "Receipt"
Process B000
CASE" Order"
Process B010
CASE "Withdrawal"
Process B020
CASE "Adjustment"
Process B030
ENDCASE
Write GRADE
Stop
(Multiple Choice)
4.9/5
(35)
In the following pseudocode,the value for TRANSCODE is an example of a(n)?
Start
Read TRANSCODE
CASENTRY TRANSCODE
CASE "Receipt"
Process B000
CASE "Order"
Process B010
CASE "Withdrawal"
Process B020
CASE "Adjustment"
Process B030
ENDCASE
Write GRADE
Stop
(Multiple Choice)
4.9/5
(34)
We can replace the nested IFTHENELSE control structure with the CASE control structure.
(True/False)
4.8/5
(34)
In a CASE control structure,every test requires an exit connector on the flowchart and an ENDCASE statement in the pseudocode.
(True/False)
4.9/5
(37)
The top-to-bottom arrangement of the conditions in the CASE control structure dictates the actual order that the tests will be made by the computer.
(True/False)
4.9/5
(39)
Given the following pseudocode,what value of GRADENUM must be input to output a grade of "C"?
Start
Read GRADENUM
CASENTRY GRADENUM
CASE GRADENUM GRADE "A'
CASE GRADENUM GRADE 'B'
CASE GRADENUM GRADE "C'
CASE GRADENUM GRADE "D'
CASE other
GRADE "F"
ENDCASE
Write GRADE
Stop
(Multiple Choice)
4.8/5
(44)
In a CASE control structure,the test that is most likely to reveal a true outcome should be placed last.
(True/False)
4.8/5
(42)
Current activities like changes and corrections made to a relatively permanent file constitute a
(Multiple Choice)
4.9/5
(36)
A nested IFTHENELSE control structure is generally easier to work with than a CASE control structure.
(True/False)
4.8/5
(43)
Showing 21 - 30 of 30
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)