Accenture Software Engineering Practice Question
Which of the following represents the correct sequence for the given pseudo-code? BEGIN [1] READ mark1, mark2, mark3, mark4, mark5 [2] PRINT average [3] total < mark1 + mark2 + mark3 + mark4 + mark5 [4] average < total / 5 [5] DECLARE mark1, mark2, mark3, mark4, mark5, total, average END a. 1 5 4 3 2 b. 5 1 4 3 2 c. 5 1 3 4 2 d. 1 5 3 4 2Answer options
A
1 5 4 3 2
B
5 1 4 3 2
C
5 1 3 4 2
D
1 5 3 4 2
Correct answer: 5 1 4 3 2
Explanation
Correct answer: 5 1 4 3 2.