Exam 2: Java Fundamentals
Exam 1: Introduction to Computers and Java51 Questions
Exam 2: Java Fundamentals61 Questions
Exam 3: Decision Structures64 Questions
Exam 4: Loops and Files57 Questions
Exam 5: Methods60 Questions
Exam 6: A First Look at Classes58 Questions
Exam 7: Arrays and the Arraylist Class64 Questions
Exam 8: A Second Look at Classes and Objects50 Questions
Exam 9: Text Processing and More About Wrapper Classes60 Questions
Exam 10: Inheritance70 Questions
Exam 11: Exceptions and Advanced File IO56 Questions
Exam 12: A First Look at GUI Applications60 Questions
Exam 13: Advanced GUI Applications58 Questions
Exam 14: Applets and More54 Questions
Exam 15: Creating GUI Applications With Javafx and Scene Builder40 Questions
Exam 16: Recursion42 Questions
Exam 17: Databases48 Questions
Select questions type
What will be the value of z after the following statements have been executed? int x = 4, y = 33;
Double z;
Z = (double) (y / x);
Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
D
Which of the following is not a valid comment statement?
Free
(Multiple Choice)
5.0/5
(34)
Correct Answer:
C
What would be printed out as a result of the following code? System.out.println("The quick brown fox" +
"jumped over the \n"
"slow moving hen.");
(Multiple Choice)
4.8/5
(33)
Programming style includes techniques for consistently putting spaces and indentation in a program so visual cues are created.
(True/False)
4.8/5
(39)
What is the result of the following expression? 10 + 5 * 3 - 20
(Multiple Choice)
4.9/5
(40)
If the compiler encounters a statement that uses a variable before the variable is declared, an error will result.
(True/False)
4.9/5
(36)
If the following Java statements are executed, what will be displayed? System.out.println("The top three winners are\n");
System.out.print("Jody, the Giant\n");
System.out.print("Buffy, the Barbarian");
System.out.println("Adelle, the Alligator");
(Multiple Choice)
4.9/5
(35)
In Java, it is standard practice to capitalize the first letter of:
(Multiple Choice)
4.9/5
(39)
What will be the displayed when the following code is executed? final int x = 22, y = 4;
Y += x;
System.out.println("x = " + x +
", y = " + y);
(Multiple Choice)
4.8/5
(32)
In Java the variable named total is the same as the variable named Total.
(True/False)
4.8/5
(40)
This is a value that is written into the code of a program.
(Multiple Choice)
4.9/5
(42)
Which one of the following methods would you use to convert a string to a double?
(Multiple Choice)
4.8/5
(31)
What will be displayed after the following statements have been executed? final double x = 99.0;
X = 54.3;
System.out.println("x = " + x );
(Multiple Choice)
4.8/5
(47)
Showing 1 - 20 of 61
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)