Solved

Case 1 You Have Just Starting Working at Quantum Company. as a Company

Question 41

Multiple Choice

Case 1

You 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 correctly.The code should total the array elements.What code needs to be changed? start
Declarations
Num count = 0
Num total = 0
Num scores[6] = 2,4,6,8,10,12
While count < 6
Total = total + scores
Count = count + 1
Endwhile
Stop


A) Change the while to:
While count < 7
B) move count = count + 1 after the endwhile
C) Change the total = to:
Total = scores + scores[count]
D) Change the total = to:
Total = total + scores[count]

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents