Question PSC-ARR-0001
EasyWhat will be the output of the following pseudocode?
Integer a[5] = {4, 8, 15, 16, 23}
Print a[2]
- A.
16
- B.
8
- C.
Show answer and explanation
Answer: C
Indexing starts at 0: a[0] = 4, a[1] = 8, a[2] = 15.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Arrays question
What will be the output of the following pseudocode?
Integer a[5] = {4, 8, 15, 16, 23}
Print a[2]
16
8
Answer: C
Indexing starts at 0: a[0] = 4, a[1] = 8, a[2] = 15.
15
4