terriko: (Pi)
[personal profile] terriko
There's a longer, friends-locked post before this one talking about the interviews I had this week, but it occurs to me that the more general public might get a kick out of the two interview questions that most amused me:

My new favourite interview question:

Given this code...

if ( X ) 
  print("hello")
else 
  print("world")



What do you need to insert in place of X in order to get this code to print "helloworld" ?



And the second one:


If you're in a room with a light bulb that's on, how can you make it be off?


(This was asked shortly after they told me they were asking to see if I had the security mindset, which is a pretty huge clue as to the types of answers they were hoping to hear. I had a lot of fun with this.)


I am leaving my answers out of this post so that you can think about the possibilities yourselves, but of course feel free to discuss in the comments.

Date: April 26th, 2013 06:32 am (UTC)
azurelunatic: Vivid pink Alaskan wild rose. (Default)
From: [personal profile] azurelunatic
Let's see. You could of course look for a light switch and turn it off that way, if there is one. You could also break the bulb, unscrew the bulb, get out your insulated shears and remove the bulb from its power supply the fun way, or maybe even go out of the room and fetch a bulldozer. Depending on what you mean by "off", you might also be able to cover it with something, or fill the air in the room with enough fog (you have a fog machine, right?) so it's not really light anymore.

Profile

terriko: (Default)
terriko

July 2025

S M T W T F S
  12345
678910 1112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 28th, 2025 08:24 pm
Powered by Dreamwidth Studios