Monday, September 6, 2010

Test a javascript in blogspot




The following QUIZ is written in Javascript, you can only click once in each question
to get score and then go to next question. See all answers via clicking hint.

1. Which university did Jiansen Lu get his Ph.D?
Univ. of Science & Technology of China
Univ. of British Columbia
University of Saskatchewan
He will never get his Ph.D

2.Which of the following are valid definitions of an application’s main( ) method(Java)
public static void main();
public static void main( String args );
public static void main( String args[] );
public static void main( Graphics g );

3. If MyProg.java were compiled as an
application and then run from the command line as:

java MyProg I like tests

what would be the value of args[ 1 ] inside
the main( ) method?

MyProg
"I"
"like"
3

hint

No comments:

Post a Comment