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
2 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
4 days ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Owen
13 days ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Owen
14 days ago
A) The array can store 10 elements.
upvoted 0 times
...
...
Nickolas
2 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
22 days ago
D) It is necessary to initialize the array at the time of declaration.
upvoted 0 times
...
Elly
1 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Layla
2 months ago
A) The array can store 10 elements.
upvoted 0 times
...
...
Venita
2 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
20 days ago
D) It is necessary to initialize the array at the time of declaration.
upvoted 0 times
...
Annabelle
26 days ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Gwenn
27 days ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Vernell
1 months ago
D) It is necessary to initialize the array at the time of declaration.
upvoted 0 times
...
Jacki
2 months ago
A) The array can store 10 elements.
upvoted 0 times
...
Winfred
2 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Crista
2 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Anna
2 months ago
A) The array can store 10 elements.
upvoted 0 times
...
...
Lenna
2 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
3 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
2 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Lorita
2 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Vernell
2 months ago
A) The array can store 10 elements.
upvoted 0 times
...
...
Herschel
3 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Janey
3 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Herschel
3 months ago
A) The array can store 10 elements.
upvoted 0 times
...

Save Cancel