I think this program will work under the condition that the fault one is
heavier in weight, but the case is that it may be lighter OR heavier.
Ok enough of php interview questions.
I need to pass a value to a function in .js file which has been linked in a
php file which in turn has been included
PROTECTED]
Sent: Friday, August 29, 2003 2:55 AM
Subject: RE: [PHP] PHP Interview questions
snip
Can you do it programmitically (with pseudo-code)? After all, we need
to
keep this on-topic :)
/sip
not pseudo code and it could definatley be cleaned up or done better
but her is my quick try
murugesan, et al --
...and then murugesan said...
%
% In a group of 12 eggs only one is having weight less or more.
% Can we have a program to find the egg, provided we have to weigh only three
% times with a weighing machine with two pans,without using weights.
*Without* a balance scale?
to find the egg, provided we have to weigh only three
times with a weighing machine with two pans,without using weights.
-murugesan
- Original Message -
From: Matt Matijevich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 29, 2003 2:55 AM
Subject: RE: [PHP] PHP Interview questions
[snip]
However, Curt does bring up a good pointgiven a real world situation
create the decision logic (in code format) that demonstrates you grep
the path needed to arrive at a conclusion. As many of us model business
processes this is a valid method for determining familiarity with the
[snip]
You come to a fork in the road. One fork takes to to Utopia (where you'd
like to go) and the other takes you to the Black Forest (where you
definitely do not want to go). There are two men standing there. You
know that one always tells the truth, the other always liesbut you
do not know
[snip]
Which road would the other man point to if I asked him the way to
Utopia?
[/snip]
Can you do it programmitically (with pseudo-code)? After all, we need to
keep this on-topic :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Oh manit is WAY too early for a question like this...
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 7:31 AM
To: Jay Blanchard; Curt Zirzow; PHP General
Subject: RE: [PHP] PHP Interview questions
[snip]
However, Curt does bring up
snip
Can you do it programmitically (with pseudo-code)? After all, we need
to
keep this on-topic :)
/sip
not pseudo code and it could definatley be cleaned up or done better
but her is my quick try at it
echo We are walking to up to a fork in the road.br /;
$randval = rand(1, 500);
$randval2 =
On Tue, 2003-08-26 at 11:35, Curt Zirzow wrote:
* Thus wrote Richard Baskett ([EMAIL PROTECTED]):
on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote:
This smells like a trick question... Are the switches connected to the
same light bulb? You've only mentioned one light
From: Curt Zirzow [EMAIL PROTECTED]
toggle_light(1);
sleep(120);
toggle_light(1);
toggle_light(2);
move('self', 'room/');
if ($lightbulb['temp'] $room['temp']) {
echo switch #1;
} elseif ($lightbulb['ison']) {
echo switch #2;
} else {
echo switch #3;
}
hm.. i had to keep
it
takes for a light bulb to cool down)
Martin
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 27 August 2003 5:35 AM
To: Curt Zirzow; PHP General
Subject: Re: [PHP] PHP Interview questions
From: Curt Zirzow [EMAIL PROTECTED]
toggle_light(1
* Thus wrote Gabriel Guzman ([EMAIL PROTECTED]):
On Tue, 2003-08-26 at 11:35, Curt Zirzow wrote:
* Thus wrote Richard Baskett ([EMAIL PROTECTED]):
on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote:
unfortunately, this won't work... you need to loop through the
lightbulbs...
Gabriel Guzman [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Tue, 2003-08-26 at 10:00, CPT John W. Holmes wrote:
PHP is server side, so it obviously cannot control light bulbs. Use
javascript.
maybe the lightbulbs are connected to the server :)
as seems to be the case right
[snip]
toggle_light(1);
sleep(120);
toggle_light(1);
toggle_light(2);
move('self', 'room/');
if ($lightbulb['temp'] $room['temp']) {
echo switch #1;
} elseif ($lightbulb['ison']) {
echo switch #2;
} else {
echo switch #3;
}
hm.. i had to keep it OT somehow :)
[/snip]
:7) Curt.
However,
Hi,
Wednesday, August 27, 2003, 9:48:38 PM, you wrote:
JB [snip]
JB toggle_light(1);
JB sleep(120);
JB toggle_light(1);
JB toggle_light(2);
JB move('self', 'room/');
JB if ($lightbulb['temp'] $room['temp']) {
JB echo switch #1;
JB } elseif ($lightbulb['ison']) {
JB echo switch #2;
JB }
[snip]
JB You are presented with three crates. One is labled 'apples', one is
JB labled 'oranges', one is labled 'apples and oranges'. The lables
have
JB been mis-applied with none of the lables being on the correct crate.
To
JB be perfectly clear ( :7) Brian! ) one crate contains apples, one
JB
Jay Blanchard mailto:[EMAIL PROTECTED]
on Wednesday, August 27, 2003 9:13 AM said:
You are taking a fruit from the crate labeled apples and oranges,
right? If so, you would be correct. Well done!
I hate not being able to figure these things out. :(
ME SAD!
c.
--
PHP General Mailing
Hello All,
I am in the process of hiring someone that needs to have extensive PHP and
MySQL experience. Does anyone have any suggestions for interview questions?
I have no PHP or MySQL experience, and come from a non-technical background.
I want the questions to be technical, but I am unsusre
: Tuesday, August 26, 2003 9:22 AM
Subject: [PHP] PHP Interview questions
Hello All,
I am in the process of hiring someone that needs to have extensive PHP and
MySQL experience. Does anyone have any suggestions for interview
questions?
I have no PHP or MySQL experience, and come from a non
From: Micheal Harris [EMAIL PROTECTED]
I am in the process of hiring someone that needs to have extensive PHP and
MySQL experience. Does anyone have any suggestions for interview
questions?
I have no PHP or MySQL experience, and come from a non-technical
background.
I want the questions to be
[snip]
I say you should send them to the list and let us grill them!! We'll
sort
out the riff-raff.. :)
[/snip]
Hear! Hear! :)
Also ask a couple of other questions that require thought, but have
nothing else to do with code. such as...
In one room you have 3 light switches, each connected to
: Micheal Harris; [EMAIL PROTECTED]
Asunto: Re: [PHP] PHP Interview questions
From: Micheal Harris [EMAIL PROTECTED]
I am in the process of hiring someone that needs to have extensive PHP and
MySQL experience. Does anyone have any suggestions for interview
questions?
I have no PHP or MySQL
This smells like a trick question... Are the switches connected to the
same light bulb? You've only mentioned one light bulb? 8)
Cheers,
Rob.
On Tue, 2003-08-26 at 12:35, Jay Blanchard wrote:
Also ask a couple of other questions that require thought, but have
nothing else to do with code.
From: Jay Blanchard [EMAIL PROTECTED]
Also ask a couple of other questions that require thought, but have
nothing else to do with code. such as...
In one room you have 3 light switches, each connected to one light bulb
in another room. How many trips must you make to determine which switch
[snip]
This smells like a trick question... Are the switches connected to the
same light bulb? You've only mentioned one light bulb? 8)
[/snip]
I should have been clearer. There are 3 light bulbs, each connected to
one of 3 switches. Replies are coming in off-list as well. :) I have
more like
[snip]
In one room you have 3 light switches, each connected to one light
bulb
in another room. How many trips must you make to determine which
switch
is connected to which light bulb?
PHP is server side, so it obviously cannot control light bulbs. Use
javascript.
[/snip]
That really did make
]
Subject: RE: [PHP] PHP Interview questions
This smells like a trick question... Are the switches connected to the
same light bulb? You've only mentioned one light bulb? 8)
Cheers,
Rob.
On Tue, 2003-08-26 at 12:35, Jay Blanchard wrote:
Also ask a couple of other questions that require thought
on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote:
This smells like a trick question... Are the switches connected to the
same light bulb? You've only mentioned one light bulb? 8)
Cheers,
Rob.
On Tue, 2003-08-26 at 12:35, Jay Blanchard wrote:
Also ask a couple of other
Everyone has given some great information. I have some ideas i would
like to throw into the mix too.
Here are some topics:
1. Questions regarding HTTP protocols. (SSL)
2. Questions regarding the server that you will be deploying on.
If you are deploying to apache or iis they should be
CPT John W. Holmes wrote:
From: Jay Blanchard [EMAIL PROTECTED]
Also ask a couple of other questions that require thought, but have
nothing else to do with code. such as...
In one room you have 3 light switches, each connected to one light bulb
in another room. How many trips must you make to
* Thus wrote Richard Baskett ([EMAIL PROTECTED]):
on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote:
This smells like a trick question... Are the switches connected to the
same light bulb? You've only mentioned one light bulb? 8)
Cheers,
Rob.
On Tue, 2003-08-26
On Tue, 2003-08-26 at 10:36, Ray Hunter wrote:
Everyone has given some great information. I have some ideas i would
like to throw into the mix too.
Here are some topics:
1. Questions regarding HTTP protocols. (SSL)
One that was we like to use is: Describe an HTTP header.
Most people
On Tue, 2003-08-26 at 10:00, CPT John W. Holmes wrote:
PHP is server side, so it obviously cannot control light bulbs. Use
javascript.
maybe the lightbulbs are connected to the server :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
34 matches
Mail list logo