Software Engineering
Accenture PrimermediumSoftware EngineeringArrays

The names of all associates undergoing training are stored in an array named associate_name[50]. The 5th associates name is retrieved as

Answer options

A
associate_name[4]
B
associate_name[5]
C
associate_name[3+1]
D
associate_name[6]

Correct answer: associate_name[4], associate_name[3+1]

Explanation

since array index starts from 0, the fifth element is accessed is accessed by array[4]. It is possible to perform arithmetic operation in an array position

Related Accenture Software Engineering questions

Practice more Accenture Software Engineering questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.