Exam 7: Case Control Structure

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

An alphabetic value that is input during processing is called a character string.

Free
(True/False)
4.8/5
(80)
Correct Answer:
Verified

True

There should be the same number of steps in each CASE path.

Free
(True/False)
4.8/5
(85)
Correct Answer:
Verified

False

A character string is set up once and never changes during program execution.

Free
(True/False)
4.9/5
(78)
Correct Answer:
Verified

False

Given the following pseudocode,how many conditions will be tested if 70 is input? Start Read GRADENUM CASENTRY GRADENUM CASE 60<60 < GRADENUM ≤80\leq 80 GRADE == "A' CASE 59≤59 \leq GRADENUM ≤70\leq 70 GRADE == "B' CASE 50<50 < GRADENUM ≤60\leq 60 GRADE == "C' CASE other GRADE == "No Grade" ENDCASE Write GRADE Stop

(Multiple Choice)
4.7/5
(74)

A CASE control structure can be used in place of a

(Multiple Choice)
4.9/5
(84)

A master file contains data that is relatively permanent and not highly subject to change.

(True/False)
4.8/5
(80)

The order in which tests are placed in a CASE control structure does not matter.

(True/False)
4.9/5
(92)

Given the following pseudocode,how many conditions will be tested if 60 is input? Start Read GRADENUM CASENTRY GRADENUM CASE 60<60 < GRADENUM ≤80\leq 80 GRADE == "A' CASE 59≤59 \leq GRADENUM <60< 60 GRADE == "B" CASE 50<50 < GRADENUM ≤60\leq 60 GRADE == "C' CASE other GRADE = "No Grade" ENDCASE Write GRADE Stop

(Multiple Choice)
4.8/5
(79)

Given the following pseudocode,what value of GRADE will be output if 60 is input? Start Read GRADENUM CASENTRY GRADENUM CASE 61≤61 \leq GRADENUM ≤80\leq 80 GRADE = "A" CASE 59≤59 \leq GRADENUM ≤60\leq 60 GRADE == "B" CASE 50≤50 \leq GRADENUM <60< 60 GRADE == "C" CASE other GRADE = "No Grade", ENDCASE Write GRADE Stop

(Multiple Choice)
4.8/5
(87)

Given the following pseudocode,what value of GRADENUM can be input to output a grade of "B"? Start Read GRADENUM CASENTRY GRADENUM CASE 90≤90 \leq GRADENUM ≤100\leq 100 GRADE == "A" CASE 80≤80 \leq GRADENUM ≤90\leq 90 GRADE == "B" CASE 70≤70 \leq GRADENUM ≤80\leq 80 GRADE = "C" CASE 60≤60 \leq GRADENUM ≤70\leq 70 GRADE = "D" CASE other GRADE == "F"" ENDCASE Write GRADE Stop

(Multiple Choice)
4.9/5
(57)

Given the following pseudocode,what value of GRADE will be output if 60 is input? Start Read GRADENUM CASENTRY GRADENUM CASE 90≤90 \leq GRADENUM ≤100\leq 100 GRADE == "A' CASE 80≤80 \leq GRADENUM <90< 90 GRADE = 'B' CASE 70≤70 \leq GRADENUM <80< 80 GRADE = "C' CASE 60≤60 \leq GRADENUM <70< 70 GRADE == 'D' CASE other GRADE = "F" ENDCASE Write GRADE Stop

(Multiple Choice)
4.8/5
(76)

The CASE control structure is one of the three basic control structures.

(True/False)
4.9/5
(78)

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
(82)

Records kept for reference purposes as relatively permanent data constitute a

(Multiple Choice)
4.9/5
(69)

Given the following pseudocode,what value of GRADE will be output if 60 is input? Start Read GRADENUM CASENTRY GRADENUM CASE 60<60 < GRADENUM ≤80\leq 80 GRADE == "A" CASE 59≤59 \leq GRADENUM ≤60\leq 60 GRADE == "B" CASE 50<50 < GRADENUM ≤60\leq 60 GRADE == " C\mathrm { C } ", CASE other GRADE = "No Grade" ENDCASE Write GRADE Stop

(Multiple Choice)
4.8/5
(66)

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.9/5
(76)

Given the following pseudocode,what value of GRADE will be output if 60 is input? Start Read GRADENUM CASENTRY GRADENUM CASE 60≤60 \leq GRADENUM ≤80\leq 80 GRADE == "A" CASE 59≤59 \leq GRADENUM ≤60\leq 60 GRADE == "B" CASE 50≤50 \leq GRADENUM <60< 60 GRADE == "C" CASE other GRADE == "No Grade" ENDCASE Write GRADE Stop

(Multiple Choice)
4.8/5
(82)

The steps within each CASE path are always grouped together in a module.

(True/False)
4.8/5
(76)

A transaction file is also known as a detail file.

(True/False)
4.8/5
(73)

Given the following pseudocode,what value of GRADENUM can be input to output a grade of "F"? Start Read GRADENUM CASENTRY GRADENUM CASE 90≤90 \leq GRADENUM ≤100\leq 100 GRADE = "A" CASE 80≤80 \leq GRADENUM ≤90\leq 90 GRADE = "B" CASE 70≤70 \leq GRADENUM ≤80\leq 80 GRADE == "C" CASE 60≤60 \leq GRADENUM ≤70\leq 70 GRADE = "D" CASE other GRADE == "F" ENDCASE Write GRADE Stop

(Multiple Choice)
4.8/5
(79)
Showing 1 - 20 of 30
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)