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
An alphabetic value that is input during processing is called a character string.
Free
(True/False)
4.8/5
(35)
Correct Answer:
True
There should be the same number of steps in each CASE path.
Free
(True/False)
4.8/5
(39)
Correct Answer:
False
A character string is set up once and never changes during program execution.
Free
(True/False)
4.9/5
(37)
Correct Answer:
False
Given the following pseudocode,how many conditions will be tested if 70 is input?
Start
Read GRADENUM
CASENTRY GRADENUM
CASE GRADENUM
GRADE "A'
CASE GRADENUM
GRADE "B'
CASE GRADENUM
GRADE "C'
CASE other
GRADE "No Grade"
ENDCASE
Write GRADE
Stop
(Multiple Choice)
4.8/5
(36)
A master file contains data that is relatively permanent and not highly subject to change.
(True/False)
4.8/5
(31)
The order in which tests are placed in a CASE control structure does not matter.
(True/False)
4.9/5
(41)
Given the following pseudocode,how many conditions will be tested if 60 is input?
Start
Read GRADENUM
CASENTRY GRADENUM
CASE GRADENUM
GRADE "A'
CASE GRADENUM
GRADE "B"
CASE GRADENUM
GRADE "C'
CASE other
GRADE = "No Grade"
ENDCASE
Write GRADE
Stop
(Multiple Choice)
4.8/5
(40)
Given the following pseudocode,what value of GRADE will be output if 60 is input?
Start
Read GRADENUM
CASENTRY GRADENUM
CASE GRADENUM
GRADE = "A"
CASE GRADENUM GRADE "B"
CASE GRADENUM GRADE "C"
CASE other
GRADE = "No Grade",
ENDCASE
Write GRADE
Stop
(Multiple Choice)
4.8/5
(37)
Given the following pseudocode,what value of GRADENUM can be input to output a grade of "B"?
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.9/5
(30)
Given the following pseudocode,what value of GRADE will be output if 60 is input?
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
(46)
The CASE control structure is one of the three basic control structures.
(True/False)
4.9/5
(33)
In the following pseudocode,the value for WITHDRAWAL is an example of a(n)?
Start
RECEIPT = "Receipt"
ORDER = "Order"
WITHDRAWAL "Withdrawal"
ADJUSTMENT = "Adjustment",
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
(37)
Records kept for reference purposes as relatively permanent data constitute a
(Multiple Choice)
4.9/5
(30)
Given the following pseudocode,what value of GRADE will be output if 60 is input?
Start
Read GRADENUM
CASENTRY GRADENUM
CASE GRADENUM GRADE "A"
CASE GRADENUM GRADE "B"
CASE GRADENUM GRADE " ",
CASE other
GRADE = "No Grade"
ENDCASE
Write GRADE
Stop
(Multiple Choice)
4.8/5
(32)
The pseudocode form of a CASE control structure always contains exactly three levels of indentation regardless of how many tests are made.
(True/False)
4.8/5
(36)
Given the following pseudocode,what value of GRADE will be output if 60 is input?
Start
Read GRADENUM
CASENTRY GRADENUM
CASE GRADENUM
GRADE "A"
CASE GRADENUM
GRADE "B"
CASE GRADENUM
GRADE "C"
CASE other
GRADE "No Grade"
ENDCASE
Write GRADE
Stop
(Multiple Choice)
4.8/5
(35)
The steps within each CASE path are always grouped together in a module.
(True/False)
4.8/5
(38)
Given the following pseudocode,what value of GRADENUM can be input to output a grade of "F"?
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
(35)
Showing 1 - 20 of 30
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)