Exam 5: Dowhile Control Structuretrailer Record Logic

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

If you are using the automatic end-of-file facility,you need to include a special record at the end of the input denoting that there is no more data to process.

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

False

How many times will the loop steps in the instructions corresponding to the following pseudocode be executed,assuming 5 values - 5,6,7,3,0 - are input,one on each record? Read SCORE DOWHILE SCORE >0> 0 Write SCORE ENDDO

Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
Verified

D

A heading line serves as a title to a report that is output.

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

True

A line that outputs the average grade for each student can be considered in some cases,both a detail line and a total line.

(True/False)
4.8/5
(38)

The loop read is always executed more than one time.

(True/False)
4.9/5
(33)

What value of COUNT will be output after the instructions corresponding to the following pseudocode are executed,assuming 7 values - 5,6,7,3,0,4,2 - are input,one on each record? COUNT =0 SUM =0 VALUE =1 DOWHILE VALUE >0 Write Value SUM = SUM + VALUE COUNT = COUNT +1 Read VALUE ENDDO Write SUM, COUNT

(Multiple Choice)
4.8/5
(32)

A detail line is usually written after the loop is exited.

(True/False)
4.8/5
(33)

The loop read in a loop controlled using trailer record logic is usually placed as the last step in the loop.

(True/False)
5.0/5
(45)

The priming read is placed

(Multiple Choice)
4.9/5
(29)

In trailer record logic a counter is used to control the loop.

(True/False)
4.7/5
(37)

A trailer record is also called a(n)

(Multiple Choice)
4.9/5
(39)

A trailer record must contain special information that differentiates it from the rest of the input.

(True/False)
4.9/5
(36)

What value of COUNT will be output after the instructions corresponding to the following pseudocode are executed,assuming 7 values - 5,6,7,3,0,4,2 - are input,one on each record? COUNT =0 SUM =0 VALUE =1 Read VALUE DOWHILE VALUE >0 Write Value SUM = SUM + VALUE COUNT = COUNT +1 Read VALUE ENDDO Write SUM, COUNT

(Multiple Choice)
4.8/5
(36)

How many times will the loop steps in the instructions corresponding to the following pseudocode be executed,assuming 5 values - 0,6,7,3,0 - are input,one on each record? DOWHILE SCORE >0> 0 Read SCORE Write SCORE ENDDO

(Multiple Choice)
4.7/5
(37)

A variable whose value does not change during program execution is called a

(Multiple Choice)
4.9/5
(39)

The automatic end-of-file facility is implemented differently in different programming languages.

(True/False)
4.9/5
(34)

The use of named constants makes an algorithm more flexible.

(True/False)
4.9/5
(36)

Where is the write statement for a total line generally placed?

(Multiple Choice)
4.8/5
(33)

How many times will the loop steps in the instructions corresponding to the following pseudocode be executed,assuming 5 values - 5,6,7,3,0 - are input,one on each record? Read SCORE DOWHILE SCORE >0> 0 Read SCORE Write SCORE ENDDO

(Multiple Choice)
5.0/5
(26)

How many times will the loop steps in the instructions corresponding to the following pseudocode be executed,assuming 5 values - 5,6,7,3,0 - are input,one on each record? Read SCORE DOWHILE SCORE >0> 0 Write SCORE Read SCORE ENDDO

(Multiple Choice)
5.0/5
(37)
Showing 1 - 20 of 30
close modal

Filters

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