Which of the following is a user defined data type?
1:
struct person
{
char name[20];
int age;
};
2:
int l=2;
3:
enum color {red,blue, green};
D.
char c;
Suggested Answer: A, C
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
23 comments · newest first
MA
Marti
11 months ago
1 and 3 for sure, but 2 is just a variable!
CH
Charlesetta
11 months ago
Wait, I thought enums were built-in types?
SH
Shasta
11 months ago
No way, 2 is just a basic int.
ZO
Zona
11 months ago
I think 3 is also a user-defined type.
TU
Tuyet
11 months ago
Definitely 1 is a user-defined type!
LA
Lashunda
12 months ago
I'm confused about this one. I feel like both structs and enums are user-defined, but I think I’ll stick with option 1 for the exam.
ST
Stephaine
12 months ago
I practiced a similar question before, and I think structs are definitely user-defined, so I would choose option 1.
LA
Lazaro
12 months ago
I'm not entirely sure, but I remember enums can also be considered user-defined types, so maybe option 3?
MO
Mollie
1 year ago
I think the user-defined data type is the struct, so I would go with option 1.
RE
Reuben
1 year ago
I'm a bit confused by this question. I know structs and enums are user-defined, but I'm not sure which one of these options represents that. I'll have to think it through carefully.
VA
Valentine
1 year ago
Okay, I've got this. The struct 'person' is a user-defined data type, so I'm going to select option A.
IZ
Izetta
1 year ago
Hmm, I'm a little unsure about this one. I know user-defined data types are things like structs and enums, but I'm not totally confident which of these options fits that description.
FI
Filiberto
1 year ago
This looks like a pretty straightforward question. I'm going to carefully review the options and think through what a user-defined data type is.
JE
Jettie
1 year ago
I'm pretty sure the enum 'color' is a user-defined data type, so I'm going to go with option C.
BU
Burma
1 year ago
Hmm, this seems pretty straightforward. I'll need to make sure I understand the requirements around the view_type property to ensure the image data is returned correctly.
LU
Luisa
1 year ago
Okay, let's see. The key here is to understand how the requests are routed to the instances of the Account Balance Manager. I'll need to think through each option carefully.
LA
Launa
1 year ago
The Setup Audit Trail is definitely the tool I would use to see all the configuration changes made during that time period.
DE
Denise
2 years ago
That makes sense, Myra. Enum color indeed creates a user defined data type for colors.
MY
Myra
2 years ago
I think option C is the correct answer. Enum color defines a custom data type for colors.
BR
Breana
2 years ago
I see where you're coming from, Lilli. Option B seems like a simple integer variable declaration.
LI
Lilli
2 years ago
I'm not sure, but I think option B might also be a user defined data type.
DE
Denise
2 years ago
I agree with Breana, option A seems correct because it defines a structure with name and age.
BR
Breana
2 years ago
I think the user defined data type is option A, struct person.