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

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77