Which of the following statements are correct about an array?
int tab[10];
Suggested Answer: A, B
Get Premium CPA-21-02 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
40 comments · newest first
LO
Lonna
11 months ago
Wait, are we sure about D? I thought it had to be initialized!
DE
Deane
11 months ago
D isn't true, you can declare without initializing.
DO
Dong
11 months ago
C is spot on, tab[9] is the last one!
JU
Justa
11 months ago
B is wrong, tab[1] is actually the second element.
AN
Annamae
11 months ago
A is correct, it can store 10 elements.
QU
Quentin
12 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.
KA
Kayleigh
12 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.
KA
Karol
12 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?
JA
Janet
1 year ago
I think option A is definitely correct since the array is declared to hold 10 elements.
WI
Wilburn
1 year 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.
AL
Alaine
1 year 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.
SU
Susana
1 year 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.
DO
Douglass
1 year ago
I'm a little confused by the array indexing. Is it 0-based or 1-based? I better double-check that before answering.
CE
Celia
1 year 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.
MA
Mammie
1 year ago
Okay, let me see. I think I know which two are most accurate, but I want to double-check my understanding before answering.
AM
Amie
1 year ago
Wait, we're talking about arrays? I thought this was a test on how to juggle chainsaws. Oops, my bad!
OW
Owen
1 year ago
C) The expression tab[9] designates the last element in the array.
OW
Owen
1 year ago
B) The expression tab[1] designates the very first element in the array.
OW
Owen
1 year ago
A) The array can store 10 elements.
NI
Nickolas
1 year ago
Option B is definitely wrong. The first element in the array is tab[0], not tab[1]. Rookie mistake!
YU
Yuki
1 year ago
D) It is necessary to initialize the array at the time of declaration.
EL
Elly
1 year ago
C) The expression tab[9] designates the last element in the array.
LA
Layla
1 year ago
A) The array can store 10 elements.
VE
Venita
1 year 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?
VE
Veronika
1 year ago
D) It is necessary to initialize the array at the time of declaration.
AN
Annabelle
1 year ago
C) The expression tab[9] designates the last element in the array.
GW
Gwenn
1 year ago
B) The expression tab[1] designates the very first element in the array.
VE
Vernell
1 year ago
D) It is necessary to initialize the array at the time of declaration.
JA
Jacki
1 year ago
A) The array can store 10 elements.
WI
Winfred
1 year ago
C) The expression tab[9] designates the last element in the array.
CR
Crista
1 year ago
B) The expression tab[1] designates the very first element in the array.
AN
Anna
1 year ago
A) The array can store 10 elements.
LE
Lenna
1 year ago
I'm pretty sure Option A is the right answer. The array can store 10 elements, just like the declaration says.
EL
Elbert
2 years ago
Option C is correct. The expression tab[9] designates the last element in the array, since the index starts from 0.
JU
Julie
1 year ago
C) The expression tab[9] designates the last element in the array.
LO
Lorita
1 year ago
B) The expression tab[1] designates the very first element in the array.
VE
Vernell
1 year ago
A) The array can store 10 elements.
HE
Herschel
2 years ago
C) The expression tab[9] designates the last element in the array.
JA
Janey
2 years ago
B) The expression tab[1] designates the very first element in the array.
HE
Herschel
2 years ago
A) The array can store 10 elements.