# Here are some simple ?'s

• 07-19-2002
correlcj
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?
• 07-19-2002
The Dog
Q1 - C
Q2 - D
• 07-19-2002
Hammer
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?
• 07-19-2002
correlcj
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.
• 07-19-2002
Hammer
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. :p
• 07-19-2002
The Dog
Quote:

Why are answers A and C the same?
[EDIT] Oh, they're not the same sneaky [/EDIT]
I need some rest.
• 07-20-2002
Prelude
>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