# Here are some simple ?'s

This is a discussion on Here are some simple ?'s within the C Programming forums, part of the General Programming Boards category; Hello, can anyone answer these question for me? Q1: Choose the statement which defines enu type fuzzy consisting of values ...

1. ## Here are some simple ?'s

Hello,
can anyone answer these question for me?
Q1: Choose the statement which defines enu type fuzzy consisting of values false, maybe and true. Defined so that maybe is greater than false but less than true.
a. enum fuzzy{false, maybe,true};
b. enum fuzzy{true,false,maybe};
c. enum fuzzy{false, maybe,true}
d. enum fuzzy{true,maybe,false};

I chose b

Next,
which statement allocates space for a variable of the defined enum type?
a. enum color{red,yellow,blue}paint;
b. enum color{red,yellow,blue};
c. enum color{red,yellow,blue}paint;
d. a & c

I chose B

Can anyone tell if I am right and if i am wrong what is the anwers and why?

2. Q1 - C
Q2 - D

3. ## Re: Here are some simple ?'s

>... Defined so that maybe is greater than false but less than true.
>I chose b
Then you'd be wrong. Read the question again, the only key bit is what I have quoted above.
Why are answers A and C the same?
[EDIT] Oh, they're not the same sneaky [/EDIT]

>which statement allocates space for a variable of the defined enum type?
>I chose B
Again, you'd be wrong, I'm afraid.
Why are answers A and C the same?

4. ## Why are answers A and C the same?

To throw off the Mighty Hammer.
But the question was inevitablely simple, was it not?
Thanks again.

5. ## Re: Why are answers A and C the same?

>To throw off the Mighty Hammer.
Toying with me, eh?!!

>But the question was inevitablely simple, was it not?
Yes!

>Thanks again.
No prob.

And the answer to Q1 is A, not C.

6. Why are answers A and C the same?
[EDIT] Oh, they're not the same sneaky [/EDIT]
I need some rest.

7. >I chose b
The correct answer is A, C and A are identical except C contains a syntax error and is made invalid because of this.

>which statement allocates space for a variable of the defined enum type?
I'm very much against trick questions as they do not judge your knowledge, they simply imply incorrect answers. This question could be interpreted to be all of the answers.

-Prelude