New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

C++ Institute CPA-21-02 Exam - 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:

0/2000 characters
Lonna
3 months ago
Wait, are we sure about D? I thought it had to be initialized!
upvoted 0 times
...
Deane
4 months ago
D isn't true, you can declare without initializing.
upvoted 0 times
...
Dong
4 months ago
C is spot on, tab[9] is the last one!
upvoted 0 times
...
Justa
4 months ago
B is wrong, tab[1] is actually the second element.
upvoted 0 times
...
Annamae
4 months ago
A is correct, it can store 10 elements.
upvoted 0 times
...
Quentin
5 months ago
I feel like option D is tricky. I know you can declare an array without initializing it, but it might be better to initialize it right away.
upvoted 0 times
...
Kayleigh
5 months ago
For option C, I believe tab[9] is indeed the last element, but I might be mixing it up with other examples we did in class.
upvoted 0 times
...
Karol
5 months ago
I'm not so sure about option B; I remember something about indexing starting at 0, so wouldn't tab[1] be the second element?
upvoted 0 times
...
Janet
5 months ago
I think option A is definitely correct since the array is declared to hold 10 elements.
upvoted 0 times
...
Wilburn
5 months ago
Okay, I've got this. The first statement is correct - the array can store 10 elements. The second statement is wrong, the first element is at index 0, not 1. The third statement is correct, tab[9] is the last element. And the fourth statement is false, we don't have to initialize the array on declaration.
upvoted 0 times
...
Alaine
5 months ago
Hmm, I'm a bit unsure about the last statement. Do we really need to initialize the array when we declare it? I'll have to think that one through.
upvoted 0 times
...
Susana
5 months ago
This looks like a straightforward question about array basics. I'll start by carefully reading through each statement and thinking about whether it's correct or not.
upvoted 0 times
...
Douglass
5 months ago
I'm a little confused by the array indexing. Is it 0-based or 1-based? I better double-check that before answering.
upvoted 0 times
...
Celia
5 months ago
This looks like a straightforward multiple-choice question. I'll carefully read through the options and try to recall what I've learned about the Product Master configuration.
upvoted 0 times
...
Mammie
6 months ago
Okay, let me see. I think I know which two are most accurate, but I want to double-check my understanding before answering.
upvoted 0 times
...
Amie
10 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
9 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Owen
9 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Owen
9 months ago
A) The array can store 10 elements.
upvoted 0 times
...
...
Nickolas
10 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
9 months ago
D) It is necessary to initialize the array at the time of declaration.
upvoted 0 times
...
Elly
9 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Layla
10 months ago
A) The array can store 10 elements.
upvoted 0 times
...
...
Venita
11 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
9 months ago
D) It is necessary to initialize the array at the time of declaration.
upvoted 0 times
...
Annabelle
9 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Gwenn
9 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Vernell
10 months ago
D) It is necessary to initialize the array at the time of declaration.
upvoted 0 times
...
Jacki
10 months ago
A) The array can store 10 elements.
upvoted 0 times
...
Winfred
10 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Crista
10 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Anna
10 months ago
A) The array can store 10 elements.
upvoted 0 times
...
...
Lenna
11 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
11 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
10 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Lorita
10 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Vernell
11 months ago
A) The array can store 10 elements.
upvoted 0 times
...
...
Herschel
11 months ago
C) The expression tab[9] designates the last element in the array.
upvoted 0 times
...
Janey
11 months ago
B) The expression tab[1] designates the very first element in the array.
upvoted 0 times
...
Herschel
11 months ago
A) The array can store 10 elements.
upvoted 0 times
...

Save Cancel