Exam 7: Case Control Structure

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

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 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
(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
close modal

Filters

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