GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hey guys.I am getting a job.
I just took a written examination of big company.It was so terrible.
There are many question I did work out.
so here are some of them.
all of them are mutiple-choice.
1.Two kinds of chemical material are stored in six buckets(each bucket has only one kind of
chemical). The volumes of these buckets are: 8L, 13L, 15L, 17L, 19L and 31L. It is also known
that the price of one chemical is twice that of the other. A man has purchased five of the buckets,
and found that he spent the same amount money on each kind of chemical. Which bucket was left
unsold?
A. 8L
B. 13L
C. 15L
D. 17L
E. 19L
2.Four people are in a group
Alice says,”Exactly one of us is lying.”
Bob says, ”Exactly two of us are lying.”
Charles says, “Exactly three of us are lying.”
Dick says, “All four of us are lying.”
How many people in this group are lying?
A. 0
B. 1
C. 2
D. 3
E. 4
3.Allen and Brenda, both have a note stuck on their forehead, with a positive integer number written on it .Both Allen and Brenda can see each other’s number. They also know that the two numbers have a difference of one. They are trying to figure out the number on their own forehead.
Allen first says,”I don’t know my number.”
Brenda says,” I don’t know my number either”
Then Allen says “Now, I know my number”
Brenda now says, “Yeah, I know my number also!”
What is the number of Allen and Brenda?
A. 2,1
B. 1,2
C. 3,2
D. 2,3
E. 4,3
Plese explain to me if you can answer any of these above questions.
Thanks in advance.
2.Four people are in a group
Alice says,”Exactly one of us is lying.”
Bob says, ”Exactly two of us are lying.”
Charles says, “Exactly three of us are lying.”
Dick says, “All four of us are lying.”
How many people in this group are lying?
A. 0
B. 1
C. 2 D. 3
E. 4
"All four of us are lying." If this is a true statement, then Dick is not lying, so the statement is a false statement, simultaneously, e.g. there is a logical conradiction. So Dick is lying (at least one person is lying.) And At least one person is telling the truth, since not all are lying.
If exactly three are (truthfully) lying, then alice, bob, and dick are lying. Could be.
If exactly two are lying, then two are telling the truth. So there are two (different) exact numbers of people lying, which is impossible. (No two of the statements can simultaneously be true.)
If exactly one person is lying, it is Dick. So everyone else is telling the truth, and again, 1=2=3 is impossible.
The only plausible explanation is that Charles is telling the turth, and that there are three other liars in the group.
Last edited by jhwilliams; 07-21-2009 at 05:17 PM.
hey guys.I am getting a job.
I just took a written examination of big company.It was so terrible.
There are many question I did work out.
so here are some of them.
all of them are mutiple-choice.
1.Two kinds of chemical material are stored in six buckets(each bucket has only one kind of
chemical). The volumes of these buckets are: 8L, 13L, 15L, 17L, 19L and 31L. It is also known
that the price of one chemical is twice that of the other. A man has purchased five of the buckets,
and found that he spent the same amount money on each kind of chemical. Which bucket was left
unsold?
A. 8L
B. 13L
C. 15L
D. 17L
E. 19L
i dont think this one works (are you sure it isnt 32L ?).
8L, 13L, 15L, 17L, 19L and 31L
assumed prices:
chemical 1: $8, $13, $15, $17, $19 and $31
chemical 2: $16, $26, $30, $34, $38 and $62
...
3.Allen and Brenda, both have a note stuck on their forehead, with a positive integer number written on it .Both Allen and Brenda can see each other’s number. They also know that the two numbers have a difference of one. They are trying to figure out the number on their own forehead.
Allen first says,”I don’t know my number.”
Brenda says,” I don’t know my number either”
Then Allen says “Now, I know my number”
Brenda now says, “Yeah, I know my number also!”
What is the number of Allen and Brenda?
A. 2,1
B. 1,2
C. 3,2
D. 2,3
E. 4,3
Plese explain to me if you can answer any of these above questions.
Thanks in advance.
1.Two kinds of chemical material are stored in six buckets(each bucket has only one kind of
chemical). The volumes of these buckets are: 8L, 13L, 15L, 17L, 19L and 31L. It is also known
that the price of one chemical is twice that of the other. A man has purchased five of the buckets,
and found that he spent the same amount money on each kind of chemical. Which bucket was left
unsold?
A. 8L
B. 13L
C. 15L
D. 17L
E. 19L
First I noticed that the total after leaving out a bucket must be divisible by three. The values mod 3 are 2,1,0,2,1,1 so to be divisible by three you must leave out a bucket with remainder 1, which is 13, 19 or 31, but 31 wasn't available, so only consider 13 or 19.
Second I added it up leaving out 13, getting the total 90. If that were right some set of buckets would add up to 30. But obviously not. Switching 19 for 13 subtracts 6, so 84, so need a set adding to 28, which is 13+15, so leave out bucket 19L.
If you're comfortable with numbers, doing that computation in your head is much faster than typing the description of doing it just was.
is it the total volume or the total price that must be divisible by three (why) ?
Total volume. Because the volume is divided into two parts with equal costs but a two to one ration in price implying a one to two ratio in volume. Dividing a set of integers into parts with a one to two ratio of totals implies the overall total is divisible by three.
13L + 15L = 28L
8L + 17L + 31L = 56L
56L at some price is the same total cost as 28L at double that (per L) price.
28 + 56 = 84
84 is divisible by 3 and the probable couldn't work with a value that isn't.
Total volume. Because the volume is divided into two parts with equal costs but a two to one ration in price implying a one to two ratio in volume. Dividing a set of integers into parts with a one to two ratio of totals implies the overall total is divisible by three.
13L + 15L = 28L
8L + 17L + 31L = 56L
56L at some price is the same total cost as 28L at double that (per L) price.
28 + 56 = 84
84 is divisible by 3 and the probable couldn't work with a value that isn't.
^ no. i understand how it works with numbers less than 4 but for large positive integers i cant see how they would find out their numbers
i guess the system only works for small integers.
It's not a system. There's only one pair of numbers for which that conversation makes sense (as with all these problems, assume they are both PLBs - Perfectly Logical Beings).
1. Allen declares that he does not know his number. We know Brenda doesn't have a 1, because if she did, there would only be one possibility for his number, and he would correctly conclude that he had a 2.
2. Brenda says the same. Now Allen knows that Brenda doesn't see a 1, because if she did, she'd use the same logic in the previous step and know her number.
3. Allen now says he knows his number. Since for all possible Brenda's numbers B (except for 1, which we know hers isn't), the only way Allen can assert that his number A = B - 1 or A = B + 1 would be if he knew one of those was false. The only possibility we have ruled out for his own number is 1, so the only way Allen can be sure of his number at this point is if Brenda has a 2. Thus, Allen must have a 3.
4. Brenda, also a PLB, has been following this. Since Allen declares that he knows his number, she runs through all of that and concludes that she has a 2.
The only valid solution for this is A = 3, B = 2. QED.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.