web developer's test item

Thread: web developer's test item

1. Member
Join Date
Dec 1969
Posts
85

web developer's test item

There are two types of human being. Liars and truth-tellers. Liars always lie, the other always tells the truth. There are 4 men: Scott, Dan, Richard and Brook. <BR><BR>Their statements are: <BR><BR> <BR><BR>Scott: Dan is a liar <BR><BR>Dan: Both Scott and Richard always lie <BR><BR>Richard: Brook is a liar <BR><BR>Brook: Only Dan tells the truth <BR><BR> <BR><BR>Who lies and who tells the truth? Explain.<BR><BR>

2. Senior Member
Join Date
Dec 1969
Posts
96,118

Oh, come on...

Brook is obviously a liar. If his statement is the truth, then he contradicts himself.<BR><BR>Richard is therefore telling the truth.<BR><BR>Dan is therefore a liar since he says Richard always lies.<BR><BR>Scott is therefore telling the truth.<BR><BR>Man, that one is too simple to bother with. Come up with a better one!<BR><BR>

3. Member
Join Date
Dec 1969
Posts
67

haha...

... simple and easy !! but interesting !! got some more ?

4. Senior Member
Join Date
Dec 1969
Posts
2,768

RE: Oh, come on...

That&#039;s a good one. Reminds me of the freaking LSAT exam questions. They&#039;re fun if you&#039;re not timed.

5. Senior Member
Join Date
Dec 1969
Posts
2,768

RE: Oh, come on...

A designer will select exactly two appliance designs and exactly two cabinet designs for the renovation of a house. The available appliacne designs are H, J, K, L, and M, adn the available cabinet designs are T, V, and W. THe selections of appliances and cabinets must be made in accordance with the following conditions:<BR><BR>H is selected only if J and W are selected.<BR>M cannot be selected unless J is selected.<BR>If V is selected, then H is selected.<BR><BR>1. If V is selected, which one of the following must be selected?<BR>a) K<BR>b) L<BR>C) M<BR>D) T<BR>E) W<BR><BR>2) Which one of the following pairs of designs cannot be selected together?<BR>a) H and J<BR>b) H and M<BR>c) J and K<BR>d) J and L<BR>e) J and M<BR><BR>3) If J is not selected, which one of the following must be true?<BR>a) H and T are selected.<BR>b) K and L are selected.<BR>c) K and M are selected.<BR>d) L and V are not selected.<BR>e) M and W are not selected.<BR><BR>4. If L is selected, how many distinct combinations of designs can be selected?<BR>a) 1<BR>b) 2<BR>c) 3<BR>d) 4<BR>e) 6<BR><BR>5) If the conditions are altered such that H can be selected without selecting J, but all of the other conditions remain in effect, then which one of the following is a pair of designs that may be selected together?<BR>a) H and M<BR>b) K and M<BR>c) K and V<BR>d) M and V<BR>e) T and V <BR><BR> =)

6. Senior Member
Join Date
Dec 1969
Posts
96,118

Either I'm an idiot, or...

(A) H is selected only if J and W are selected. [can be reworded as "Iff J and W are selected, then H is selectable." *OR* as "Iff J and W are selected, then H *shall* be automatically selected." The English language is too ambiguous as this rule is originally given.]<BR><BR>(B) M cannot be selected unless J is selected. [can be rewordeds as "Iff J is selected, then M is selectable."]<BR><BR>(C) If V is selected, then H is selected. [no need to reword, not ambiguous, though the IF might be better changed to IFF]<BR><BR>"IFF" means "If and only if".<BR><BR><BR>1) (e) W -- see rules [C] and then [A]; actually, selecting V implies H and J and W.<BR><BR>2) None of the above?<BR> (a) J *must* be selected if H is selected [A, no matter how interpreted], so this is certainly okay<BR> (b) J *must* be selected if H is selected [A, no matter how interpreted], and if J is selected then M is selectable [B], so this is okay<BR> (c) and (d) Neither K nor L is mentioned in the rules, and the rules put no restriction on J being selected alone, so I can&#039;t see how either of these is disallowed.<BR> (e) If M appears, J must appear [B].<BR><BR>So at this point I quit. Obviously I&#039;m misinterpreting one of the rules. Or a rule is missing. Or...<BR><BR>Care to explain the answer to question (2)? Maybe I&#039;ll then see the light and tackle the others.<BR><BR>

7. Senior Member
Join Date
Dec 1969
Posts
96,118

Never mind, I am an idiot.

I missed the VERY FIRST SENTENCE: Exactly 2 cabinet designs, exactly 2 appliance designs. SIGH. Sorry.<BR><BR>Back later...meetings for next couple of hours.<BR><BR>

8. Senior Member
Join Date
Dec 1969
Posts
2,768

I'm impressed

I&#039;ll be watching for your answer. I&#039;m impressed at how well you did with it even with missing the first two sentences. =)

9. Senior Member
Join Date
Dec 1969
Posts
2,768

BTW...

All questions have one answer. There are no "All of the above" or "None of the above" answers.<BR><BR>I reconfirmed my text and it&#039;s correct. I have the answer key, of course, if you want any help.

10. Senior Member
Join Date
Dec 1969
Posts
96,118

Losing a bit of my idiocy?

The rules, restated:<BR><BR>[@] Must choose EXACTLY two from H,J,K,L,M *and* EXACTLY two from T,V,W<BR><BR>[A] H is selected only if J and W are selected. [can be reworded as "Iff J and W are selected, then H is selectable." *OR* as "Iff J and W are selected, then H *shall* be automatically selected." The English language is too ambiguous as this rule is originally given.]<BR><BR>[B] M cannot be selected unless J is selected. [can be reworded as "Iff J is selected, then M is selectable."]<BR><BR>[C] If V is selected, then H is selected. [no need to reword, not ambiguous, though the IF might be better changed to IFF]<BR><BR>"IFF" means "If and only if".<BR><BR><BR>1) (e) W -- see rules [C] and then [A]; actually, selecting V implies H and J and W.<BR><BR>**************<BR><BR>2) (b) M is not selectable unless J is selected [B], so if M and H appear, J must also appear, and that violates rule [@].<BR><BR>**************<BR><BR>3) NOT (a): If J is not selected, H is not selectable [A].<BR> Maybe (b): If J is not selected, then H is not selected [A]. If H is not selected, then V is not selected [C], so T and W must be selected [@]. There are no rules relating to K/L vs. T/W.<BR> NOT (c): If M is selected, then J must be selected [B], and this violates [@]<BR> NOT (d): If V is not selected, the T and W must be selected [@]. If L is not selected, then two from H,K,M must be selected [@ and conditions of question]. But neither H nor M can be selected if J is not selected [A and B], so only M is left and that violates [@].<BR> NOT (e): J is not selected, so H cannot be [A]. And M is not, per the terms of the question and [B]. That leaves K and L as selectable. But H is not selected, so V is not [C] and W is not per terms of the question. Leaving only T.<BR><BR>Ergo (b) is the right answer: K and L<BR><BR>**************<BR><BR>4) If L is selected, then neither H nor M can be selected, because both require J [A and B] and that would violate [@]. So we can pair L with only J or K. <BR> L + J : cannot select V since H is not selected [C], so only pair is T + W.<BR> L + K : cannot select V since H is not selected [C], so only pair is T + W.<BR>so the answer is<BR> (b) 2<BR><BR>***************************************** ****************<BR><BR>CHANGE THE RULES FOR (5) !!<BR><BR>[@] Must choose EXACTLY two from H,J,K,L,M *and* EXACTLY two from T,V,W<BR><BR>[A] H is selected only if W is selected. [can be reworded as "Iff W is selected, then H is selectable." *OR* as "Iff W is selected, then H *shall* be automatically selected." The English language is too ambiguous as this rule is originally given.]<BR><BR>[B] M cannot be selected unless J is selected. [can be reworded as "Iff J is selected, then M is selectable."]<BR><BR>[C] If V is selected, then H is selected. [no need to reword, not ambiguous, though the IF might be better changed to IFF]<BR><BR><BR>5) NOT (a): see (2). Change in rules doesn&#039;t affect this pair.<BR> NOT (b): If M is selected, J must be selected [B], and so we violate [@].<BR> Maybe (c): If V is selected, H must be selected [C]; if H is selected, W must be selected. So we are force to H+K, V+W.<BR> NOT (d): If M is selected J must be selected [B]. If V is selected, H must be [C]. So we have H+J+M and violate [@].<BR> NOT (e): If V is selected, then H is selected [C]. If H is selected, then W is selected [A]. So we have T+V+W and violate [@].<BR><BR>so the answer is <BR> (b) K and M<BR><BR>********************************<BR>***** ***************************<BR><BR>Better, but no real toughies.<BR><BR>Bill<BR>

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•