Thursday, April 5, 2007

You are Smart When You Know Your JavaScript

Ok, so maybe you tinker with it, but how well do you really know this programming language? It is one of the most widely used languages, but it is probably known inside-out by less people than Cobol. People still use Cobol, right? Here is the quiz...


1. What was the original name of JavaScript?
a) Oak
b) LiveScript
c) Mocha
d) DOM Script

2. Who invented JavaScript?
a) Brendan Eich
b) Bill Gates
c) Danny Goodman
d) Fritz Schneider

3. How do you write a for loop in JavaScript?
a) for(int i =0; i < 10; i++){...
b) for i = 0 to 10 ...
c) for (var i = 0; i < 10; i++){...
d) for (var i = 0, i < 10, i++){...

4. In JavaScript, what does the "continue" statement do?
a) Terminates execution of the statements in the current if statement and continues to the next statement outside the current block.
b) Terminates execution of the statements in the current iteration of the current or labelled loop, and continues execution of the loop with the next iteration.
c) Continues execution of the statements in the current iteration of a loop after a break statement has been executed.
d) Causes the execution of the statements in the current function to be skipped.

5. Which of the following is a complete list of logical operators in JavaScript?
a) &, |, !
b) &&, ||
c) +, -, *, /, %, ++, --
d) &&, ||, !

6. How do you create comments within your code in JavaScript?
a) //
b) @
c) --
d) #

7. Which of the following in not a global object?
a) Array
b) RegExp
c) Error
d) int

8. What does the Date.UTC function return?
a) The number of milliseconds in a Date object since January 1, 1900, 00:00:00, universal time.
b) Converts the parameter passed in to the equivalent string representation of the date to UTC representation
c) The number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time.
d) Converts a UTC representation of a date into a date object.

9. Which of the following is not a tool related to JavaScript?
a) Venkman
b) JSLint
c) CupOfJoe Debugger
d) FireBug

10. Which of the following is not a method of the XMLHttpRequest object?
a) abort()
b) getRequestHeader(label, value)
c) getResponseHeader(headerName)
d) setRequestHeader(label, value)

Tuesday, April 3, 2007

You are Smart When You Know Your President

Whether you like him or not, he is your president. You should at least know something about him. So here's your opportunity to shine. Show us your presidential prowess. C'mon, give it your best shot. I bet you don't even know what the W stands for...


1. OK, what does the "W" stand for?
a) William
b) Walker
c) Walter
d) Warren

2. George W. Bush is the ___ President of the United States.
a) 28th
b) 42nd
c) 43rd
d) 51st

3. Our fearless leader has 4 living siblings. Who are they?
a) Jeb, Neil, Marvin, and Dorothy
b) Jeb, Mike, Neil, and Dorothy
c) Robin, Jeb, William, and Jeffery
d) Ann, Jeb, Marvin, and Dorothy

4. Mr. Bush had a sister die in 1953 at the age of 3 from leukemia. What was her name?
a) Mary
b) Linda
c) Dorothy
d) Robin

5. Which of the following facts are not true about George's high school years?
a) He was a cheerleader in high school.
b) He played baseball for his high school.
c) He attended an all-boys high school.
d) He attended high school in Massachusetts.

6. From which University did our current president receive a Bachelor of Arts degree in 1968?
a) Cornell
b) Harvard
c) Brown University
d) Yale

7. From which university did George receive his MBA?
a) Cornell
b) Harvard
c) Yale
d) Brown University

8. Which of the following people was not on Bush's first cabinet?
a) Andrew Card
b) Karl Rove
c) Condoleezza Rice
d) Donald Rumsfeld

9. Which of the following companies was Mr. Bush involved with before becomming president?
a) Haliburton
b) Chevron
c) Harken Energy
d) BP

10. Which state was Georgey born in?
a) Connecticut
b) Massechusetts
c) Vermont
d) Rhode Island