510 likes | 618 Views
Final Jeopardy. Java fundamental for 10. Q: How to compile and run a Java program?. OL 10 A. Java fundamental– 10 points. A: What is Javac and Java?. Table. Java fundamental for 20. Q: A Java program contains one or more of this?. OL 20 A. Java fundamental for 20. A: What is CLASS?.
E N D
Java fundamental for 10 Q: How to compile and run a Java program? OL 10 A
Java fundamental– 10 points A: What is Javac and Java? Table
Java fundamental for 20 Q: A Java program contains one or more of this? OL 20 A
Java fundamental for 20 A: What is CLASS? Table
Java fundamental for 30 Q: This is needed to run the same Java program on different Operating Systems without having to recompile? OL 30 A
Java Fundamental for 30 A: What is Java Virtual Machine (JVM) ? Table
Java fundamental for 40 Q: The name of this tree has been used as another name for Java ? OL 40 A
Java fundamental for 40 A: What is “OAK”? Table
Java 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
Java fundamental for 50 A: What is “Write ONCE Run EVERYWHERE”? Table
Numerical Data type 10 Q: Data types used to represent integer values? CF 10 A
Numerical Data for 10 A: What are byte, short, int, long? Table
Numerical Data for 20 Q: Data types to represent real values. CF 20 A
Numerical data types for 20 A: What are float and double? Table
Numerical data type for 30 Q: These symbols are allowed in a valid identifier? CR 30 A
Numerical data type for 30 A: What are $ and _? Table
Numerical 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
Numerical Data for 40 A: What is 6? Table
Numerical data for 50 Q: The values of this can not be changed in the entire program? CF 50 A
Numerical data for 50 A: What is constant? Table
Boolean expression for 10 Q: Boolean expressions are evaluated to one of these values? IS 10 A
Boolean expression for 10 A: What is true or false? Table
Boolean expression for 20 Q: These are boolean operators in Java? IS 20 A
Boolean Expression for 20 A: What are AND, OR, NOT? Table
Boolean expression for 30 Q: Which are the six relational operators used in boolean expressions? • < • >= • <= • > • == • && • != • ! IS 30A
Boolean expression for 30 A: What are A,B,C,D,E,and G? Table
Boolean Expression for 40 Q: Evaluate this boolean expression: (1<2 || 4 <=3) IF 40 A
Boolean expression for 40 A: What is true? Table
Boolean expression for 50 Q: Evaluate this expression: (60%3 == 0) && (50%9 != 0) IF 50 A
Boolean expression for 50 A: What is true? Table
If/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
If/Then/While for 10 A: What is B? Table
If/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
If/Then/While for 20 A: What is Fair? Table
If/Then/While for 30 Q: What is this code doing? if (num1 * num2 * num3 < 0) { System.out.println(“This is good”); } else { System.out.println(“This is bad”); } T30 A
If/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
If/Then/While for 40 Q: These symbols are always found in an if statement T40 A
If/Then/While for 40 A: What are ( and )? Table
It/Then/While for 50 Q: The statements in the body of this loop must be executed at least ONCE T50 A
If/Then/While for 50 A: What is DO-WHILE loop? Table
Miscellaneous for 10 Q: Switch only support these data types ?. DM 10 A
Miscellaneous for 10 A: What are char and integer (byte, short, int)? Table
Miscellaneous for 20 Q: Operand is converted from a lower to a higher precision DM 20 A
Miscellaneous for 20 A: What is implicit casting? Table
Miscellaneous for 30 Q: How can we say 23 in Java. DM 30 A
Miscellaneous for 30 A: What is Math.pow(2,3) ? Table
Miscellaneous for 40 Q: JOptionPane.showInputDialog gets input from a user and return this data type DM 40 A
Miscellaneous for 40 A: What is String? Table
Miscellaneous for 50 Q: The value of this component can be changed in a Java program DM 50 A