Title: Final Jeopardy
1Final Jeopardy
Fundamental Java Numerical Data type Boolean Expression If/THEN/WHILE Miscellaneous
10 10 10 10 10
20 20 20 20 20
30 30 30 30 30
40 40 40 40 40
50 50 50 50 50
2Java fundamental for 10
- Q How to compile and run a Java program?
OL 10 A
3Java fundamental 10 points
- A What is Javac and Java?
Table
4Java fundamental for 20
- Q A Java program contains one or more of this?
OL 20 A
5Java fundamental for 20
Table
6Java fundamental for 30
- Q This is needed to run the same Java program
on different Operating Systems without having to
recompile?
OL 30 A
7Java Fundamental for 30
- A What is Java Virtual Machine (JVM) ?
Table
8Java fundamental for 40
- Q The name of this tree has been used as
another name for Java ?
OL 40 A
9Java fundamental for 40
Table
10Java fundamental for 50
- Q This used to be the best selling point for
Java (hint refer to its portability with 4
words)
OL 50 A
11Java fundamental for 50
- A What is Write ONCE Run EVERYWHERE?
Table
12 Numerical Data type 10
- Q Data types used to represent integer values?
CF 10 A
13Numerical Data for 10
- A What are byte, short, int, long?
Table
14Numerical Data for 20
- Q Data types to represent real values.
CF 20 A
15Numerical data types for 20
- A What are float and double?
Table
16Numerical data type for 30
- Q These symbols are allowed in a valid
identifier?
CR 30 A
17Numerical data type for 30
Table
18Numerical Data type for 40
- Q Suppose we have
- int x, y
- x 40
- y x / 6
- What is the value of y?
CF 40 A
19Numerical Data for 40
Table
20Numerical data for 50
- Q The values of this can not be changed in the
entire program?
CF 50 A
21Numerical data for 50
Table
22Boolean expression for 10
- Q Boolean expressions are evaluated to one of
these values?
IS 10 A
23Boolean expression for 10
Table
24Boolean expression for 20
- Q These are boolean operators in Java?
IS 20 A
25Boolean Expression for 20
Table
26Boolean expression for 30
- Q Which are the six relational operators used in
boolean expressions? - lt
- gt
- lt
- gt
-
-
- !
- !
IS 30A
27Boolean expression for 30
- A What are A,B,C,D,E,and G?
Table
28Boolean Expression for 40
- Q Evaluate this boolean expression
- (1lt2 4 lt3)
IF 40 A
29Boolean expression for 40
Table
30Boolean expression for 50
- Q Evaluate this expression
- (603 0) (509 ! 0)
IF 50 A
31Boolean expression for 50
Table
32If/then/while/for for 10
- Q What is the output from the following code?.
- int number 45
- if (number ! 45)
- System.out.println(Hello)
-
- else
- System.out.println(Bye)
-
- A. Hello
- B. Bye
T10 A
33If/Then/While for 10
Table
34If/Then/While for 20
- Q What is the result of this switch statement
- int number 45
- switch (number)
- case 35 System.out.println(Good)
- case 45 System.out.println(Fair)
- case 55 System.out.println(None)
-
- A. Good
- B. Fair
- C. None
T20 A
35If/Then/While for 20
Table
36If/Then/While for 30
- Q What is this code doing?
- if (num1 num2 num3 lt 0)
- System.out.println(This is good)
-
- else
- System.out.println(This is bad)
-
T30 A
37If/Then/While for 30
- A What is if products of these three numbers
(num1,num2,num3) are negative, print out This is
good. Otherwise, print out This is bad ?
Table
38If/Then/While for 40
- Q These symbols are always found in an if
statement
T40 A
39If/Then/While for 40
Table
40It/Then/While for 50
- Q The statements in the body of this loop must
be executed at least ONCE
T50 A
41If/Then/While for 50
Table
42Miscellaneous for 10
- Q Switch only support these data types ?.
DM 10 A
43Miscellaneous for 10
- A What are char and integer (byte, short, int)?
Table
44Miscellaneous for 20
- Q Operand is converted from a lower to a higher
precision
DM 20 A
45Miscellaneous for 20
- A What is implicit casting?
Table
46Miscellaneous for 30
- Q How can we say 23 in Java.
DM 30 A
47Miscellaneous for 30
- A What is Math.pow(2,3) ?
Table
48Miscellaneous for 40
- Q JOptionPane.showInputDialog gets input from a
user and return this data type
DM 40 A
49Miscellaneous for 40
Table
50Miscellaneous for 50
- Q The value of this component can be changed in
a Java program
DM 50 A
51Miscellaneous for 50
Table