Examlex

Solved

What Value of COUNT Will Be Output After the Instructions

question 13

Multiple Choice

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 \begin{array} { l } \text { COUNT } = 0 \\\text { SUM } = 0 \\\text { VALUE } = 1 \\\text { Read VALUE } \\\text { DOWHILE VALUE } > 0 \\\text { Write Value } \\\quad \text { SUM } = \text { SUM } + \text { VALUE } \\\quad \text { COUNT } = \text { COUNT } + 1 \\\quad \text { Read VALUE } \\\text { ENDDO } \\\text { Write SUM, COUNT }\end{array}


Definitions:

Polycaprolactone

A biodegradable polymer with the chemical formula (C6H10O2)n used in making polyurethane, adhesives, and biomedical devices.

Biodegradable Polymer

A type of polymer that can be broken down by microorganisms into water, carbon dioxide (or methane), and biomass, within a reasonably short period of time.

Lactone Monomer

A singular molecular unit that can form polymers and contains a lactone ring, a cyclic ester.

Compound Name

The unique, standardized nomenclature associated with a chemical substance that describes its structure or formula.

Related Questions