Case-Based Critical Thinking QuestionsCase 1You have just starting working at Quantum Company. As a new programmer, you have been asked to review and correct various pseudocode.The following pseudocode is not working properly. The message should display five times. What needs to be changed? Declarations string message = "OK" while count < 5 output message count = count + 1 endwhile
A. while count < 5 should be changed to while count = 5
B. num count = 1 should be added to the Declarations
C. num count should be added to the Declarations
D. num count = 0 should be added to the Declarations
Answer: D
You might also like to view...
The keyboard shortcut ________ enables you to quickly move to the bottom of a document
Fill in the blank(s) with correct word
Which of the following will not produce a syntax error?
a) Omitting a return type from a function definition if the function prototype specifies a return type other than int b) Returning a value from a function defined as void c) Defining a function parameter again inside a function d) Using the same names for arguments passed to a function and the corresponding parameters in the function definition