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
(35)
Correct Answer:
Verified

True

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

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

False

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

Free
(True/False)
4.9/5
(37)
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 5959 \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.8/5
(36)

A CASE control structure can be used in place of a

(Multiple Choice)
4.9/5
(42)

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 60<60 < GRADENUM 80\leq 80 GRADE == "A' CASE 5959 \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
(40)

Given the following pseudocode,what value of GRADE will be output if 60 is input? Start Read GRADENUM CASENTRY GRADENUM CASE 6161 \leq GRADENUM 80\leq 80 GRADE = "A" CASE 5959 \leq GRADENUM 60\leq 60 GRADE == "B" CASE 5050 \leq GRADENUM <60< 60 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 9090 \leq GRADENUM 100\leq 100 GRADE == "A" CASE 8080 \leq GRADENUM 90\leq 90 GRADE == "B" CASE 7070 \leq GRADENUM 80\leq 80 GRADE = "C" CASE 6060 \leq GRADENUM 70\leq 70 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 9090 \leq GRADENUM 100\leq 100 GRADE == "A' CASE 8080 \leq GRADENUM <90< 90 GRADE = 'B' CASE 7070 \leq GRADENUM <80< 80 GRADE = "C' CASE 6060 \leq GRADENUM <70< 70 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 60<60 < GRADENUM 80\leq 80 GRADE == "A" CASE 5959 \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
(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 6060 \leq GRADENUM 80\leq 80 GRADE == "A" CASE 5959 \leq GRADENUM 60\leq 60 GRADE == "B" CASE 5050 \leq GRADENUM <60< 60 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)

A transaction file is also known as a detail file.

(True/False)
4.8/5
(32)

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

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

Filters

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