Solved

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

Question 40

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.

-In the following pseudocode,what will be the value of sum after the code is run? Declarations
Num count = 0
Num sum = 0
While count < 3
For X = 1 to 2 step 1
Sum = sum + X
Endfor
Count = count + 1
Endwhile


A) 3
B) 6
C) 9
D) 12

Correct Answer:

verifed

Verified

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

Related Questions