Software Engineering Practice Question
What will be the output for WHILE loop? BEGIN DECLARE number SET number <-- 30 WHILE number>0 number <-- number-4 END WHILE PRINT number ENDAnswer options
A
4
B
2
C
-2
D
0
Correct answer: 2
Detailed Solution & Conceptual Analysis
This question has been retained as-is due to its unique context.
Key Engineering Takeaway
In Software Engineering, understanding the underlying mechanics of Software Engineering is critical for writing performant, bug-free production code and passing rigorous technical architecture reviews.