Software Engineering
Accenture Technical PrimermediumSoftware Engineering03 Selection Statements

From the option, find the correct pseudo-code to find the greatest of three numbers

Answer options

A
BEGIN DECLARE variables a, b, c READ a, b, c IF a<b IF a<c PRINT a ELSE PRINT c ELSE IF b<c PRINT b ELSE PRINT c END
B
BEGIN DECLARE variables a,b,c READ a,b,c IF a>b IF a>c PRINT a ELSE PRINT c ELSE IF b>c PRINT b ELSE PRINT c END
C
BEGIN DECLARE variables a,b,c READ a,b,c IF a>c PRINT a ELSE PRINT c ELSE IF b>c PRINT b ELSE PRINT c END

Correct answer: BEGIN DECLARE variables a,b,c READ a,b,c IF a>b IF a>c PRINT a ELSE PRINT c ELSE IF b>c PRINT b ELSE PRINT c END

Explanation

Quick AnswerThe correct answer is BEGIN DECLARE variables a,b,c READ a,b,c IF a>b IF a>c PRINT a ELSE PRINT c ELSE IF b>c PRINT b ELSE PRINT c END because it directly addresses the core logic of Software Engineering.

Correct answer: BEGIN DECLARE variables a,b,c READ a,b,c IF a>b IF a>c PRINT a ELSE PRINT c ELSE IF b>c PRINT b ELSE PRINT c END.

Related Accenture Software Engineering questions

Practice more Accenture Software Engineering questions

PrimerPrep has 1400+ practice questions, 2026 simulations and coding hands-on — all free.

Watch Walkthroughs!