BlackFriday 2024! 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 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:

Denise
6 months ago
That makes sense, Myra. Enum color indeed creates a user defined data type for colors.
upvoted 0 times
...
Myra
6 months ago
I think option C is the correct answer. Enum color defines a custom data type for colors.
upvoted 0 times
...
Breana
6 months ago
I see where you're coming from, Lilli. Option B seems like a simple integer variable declaration.
upvoted 0 times
...
Lilli
6 months ago
I'm not sure, but I think option B might also be a user defined data type.
upvoted 0 times
...
Denise
6 months ago
I agree with Breana, option A seems correct because it defines a structure with name and age.
upvoted 0 times
...
Breana
6 months ago
I think the user defined data type is option A, struct person.
upvoted 0 times
...

Save Cancel