Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

C++ Institute Exam CPA-21-02 Topic 1 Question 21 Discussion

Actual exam question for C++ Institute's CPA-21-02 exam
Question #: 21
Topic #: 1
[All CPA-21-02 Questions]

Which of the following statements are correct about an array?

int tab[10];

Show Suggested Answer Hide Answer
Suggested Answer: A, B

Contribute your Thoughts:

Amie
3 months ago
Wait, we're talking about arrays? I thought this was a test on how to juggle chainsaws. Oops, my bad!
upvoted 0 times
Owen
2 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Owen
2 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Owen
2 months ago
A) The array can store 10 elements.
upvoted 0 times
...
...
Nickolas
3 months ago
Option B is definitely wrong. The first element in the array is tab[0], not tab[1]. Rookie mistake!
upvoted 0 times
Yuki
2 months ago
D) It is necessary to initialize the array at the time of declaration.
upvoted 0 times
...
Elly
3 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Layla
3 months ago
A) The array can store 10 elements.
upvoted 0 times
...
...
Venita
4 months ago
This is a tricky one, but I think the correct answer is Option D. You have to initialize the array at the time of declaration, right?
upvoted 0 times
Veronika
2 months ago
D) It is necessary to initialize the array at the time of declaration.
upvoted 0 times
...
Annabelle
2 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Gwenn
3 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Vernell
3 months ago
D) It is necessary to initialize the array at the time of declaration.
upvoted 0 times
...
Jacki
3 months ago
A) The array can store 10 elements.
upvoted 0 times
...
Winfred
3 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Crista
4 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Anna
4 months ago
A) The array can store 10 elements.
upvoted 0 times
...
...
Lenna
4 months ago
I'm pretty sure Option A is the right answer. The array can store 10 elements, just like the declaration says.
upvoted 0 times
...
Elbert
4 months ago
Option C is correct. The expression tab[9] designates the last element in the array, since the index starts from 0.
upvoted 0 times
Julie
3 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Lorita
3 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Vernell
4 months ago
A) The array can store 10 elements.
upvoted 0 times
...
...
Herschel
4 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Janey
4 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Herschel
4 months ago
A) The array can store 10 elements.
upvoted 0 times
...

Save Cancel