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 9 Discussion

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

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;

Show Suggested Answer Hide Answer
Suggested Answer: A, C

Contribute your Thoughts:

0/2000 characters
Marti
3 months ago
1 and 3 for sure, but 2 is just a variable!
upvoted 0 times
...
Charlesetta
3 months ago
Wait, I thought enums were built-in types?
upvoted 0 times
...
Shasta
3 months ago
No way, 2 is just a basic int.
upvoted 0 times
...
Zona
4 months ago
I think 3 is also a user-defined type.
upvoted 0 times
...
Tuyet
4 months ago
Definitely 1 is a user-defined type!
upvoted 0 times
...
Lashunda
4 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.
upvoted 0 times
...
Stephaine
4 months ago
I practiced a similar question before, and I think structs are definitely user-defined, so I would choose option 1.
upvoted 0 times
...
Lazaro
4 months ago
I'm not entirely sure, but I remember enums can also be considered user-defined types, so maybe option 3?
upvoted 0 times
...
Mollie
5 months ago
I think the user-defined data type is the struct, so I would go with option 1.
upvoted 0 times
...
Reuben
5 months 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.
upvoted 0 times
...
Valentine
5 months ago
Okay, I've got this. The struct 'person' is a user-defined data type, so I'm going to select option A.
upvoted 0 times
...
Izetta
5 months 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.
upvoted 0 times
...
Filiberto
5 months 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.
upvoted 0 times
...
Jettie
5 months ago
I'm pretty sure the enum 'color' is a user-defined data type, so I'm going to go with option C.
upvoted 0 times
...
Burma
5 months 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.
upvoted 0 times
...
Luisa
5 months 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.
upvoted 0 times
...
Launa
5 months ago
The Setup Audit Trail is definitely the tool I would use to see all the configuration changes made during that time period.
upvoted 0 times
...
Denise
2 years ago
That makes sense, Myra. Enum color indeed creates a user defined data type for colors.
upvoted 0 times
...
Myra
2 years ago
I think option C is the correct answer. Enum color defines a custom data type for colors.
upvoted 0 times
...
Breana
2 years ago
I see where you're coming from, Lilli. Option B seems like a simple integer variable declaration.
upvoted 0 times
...
Lilli
2 years ago
I'm not sure, but I think option B might also be a user defined data type.
upvoted 0 times
...
Denise
2 years ago
I agree with Breana, option A seems correct because it defines a structure with name and age.
upvoted 0 times
...
Breana
2 years ago
I think the user defined data type is option A, struct person.
upvoted 0 times
...

Save Cancel