10. Question 7
This piece of code (next slide) was required for
a first stage interview with a well known social
network:
i. What is the name of the sorting algorithm
used in sortMe($binaryNumbers)?
ii. In what order do the binary numbers
appear in the variable $output at the end
of execution?
16. Question 1
A parking spot is unoccupied 1/3 of
the time, but, you find it empty for
nine consecutive days in a row.
Find the probability that it will be
empty on the tenth day.
17. Question 2
A book has N pages, numbered the
usual way, from 1 to N.
The total number of digits in the page
numbers is 1,095.
How many pages does the book have?
18. Question 3
A man pushed his car to a hotel and
lost his fortune. What happened?
19. Question 4
10, 9, 60, 90, 70, 66,
What number comes next in the
series?
21. Question 6
I am the beginning of the end, and the
end of time and space. I am essential
to creation, and I surround every place.
What am I?
22. Question 7
A woman shoots her husband, then
holds him under water for five
minutes. Finally, she hangs him. Five
minutes later they enjoy a wonderful
dinner together. How can this be?
23. Question 8
I live above a star but never burn. I
have 11 neighbours but they never
turn. My initials are p, q, r and
sometimes s. What am I?
24. Question 9
I'm not the sort that's eaten, I'm not
the sort you bake, don't put me in an
oven, I don't taste that great, but when
applied correctly, around me you will
find, problems are so simple when my
digits come to mind.
25. Question 10
3 men are buried in the sand all facing the same way
with only their heads above ground. Each man has a hat
placed on his head which is either red or blue, but they
can't see it. The men know that their hats were selected
from a bag containing 3 red hats, and 2 blue hats. The
man at the back (who can see the hats of the two men in
front of him) is asked what hat he is wearing. He
answers: "I don't know". The middle (who can see the
hat of the man in front of him) man is asked what hat he
is wearing. He also replies: "I don't know". Finally, the
man at the front is asked what hat he is wearing. He
answers: "I am wearing a red hat". How did he know?
28. Question 2
A team from the Agency for Science,
Technology and Research (A*STAR)
printed a colour photo, measuring just
50 micrometres across, the width of a
human hair.
What was the photo of?
29. Question 3
Who was the most mentioned athlete
on Facebook during the whole of the
Olympic Games?
30. Question 4
Which image hosting service recently
contributed to science when a new
species of insect was identified in one
of its posts?
31. Question 5
Yahoo have employed Marissa Mayer
as their new CEO.
According to Wired.co.uk, she should
take one simple action if she wants the
company to succeed. What is it?
32. Question 6
US TV broadcaster NBC were at the centre
of controversy recently after it persuaded
Twitter to suspend journalist Guy Adams for
a message he posted during the Opening
Ceremony. In a statement, NBC said: "We
filed a complaint with Twitter because a
user tweeted the personal information of
one of our executives."
Who was the executive in question?
33. Question 7
Microsoft recently revealed they are
axing their web-based email service
Hotmail after 16 years of business.
What are they replacing it with?
34. Question 8
The Japanese recently unveiled a giant
robot at the Wonder Festival in Tokyo.
Kuratas is 4m high, weighs 4.5 tonnes
and is capable of firing 100 rounds a
second – or even working as a cleaner
or firefighter. It can be controlled in 2
ways. The first is a human pilot in a
mid-torso cockpit. What is the second?
35. Question 9
Nintendo Wii have announced they are
to release an exclusive new game that
will give players the chance to sing,
dance and even duet with world-
renowned musical theatre stars in
some of their favourite musicals. But
which famous composer is the star of
the game?
36. Question 10
Apple have recently been granted a
patent for a Smart Cover with an
integrated display.
What revolutionary new way could it
be powered?