Exam 4: Fundamental Data Types
Exam 1: Introduction76 Questions
Exam 2: Using Objects82 Questions
Exam 3: Implementing Classes108 Questions
Exam 4: Fundamental Data Types124 Questions
Exam 5: Decisions119 Questions
Exam 6: Loops107 Questions
Exam 7: Arrays and Array Lists117 Questions
Exam 8: Designing Classes88 Questions
Exam 9: Inheritance99 Questions
Exam 10: Interfaces100 Questions
Exam 11: Input/Output and Exception Handling108 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion99 Questions
Exam 14: Sorting and Searching100 Questions
Exam 15: The Java Collections Framework102 Questions
Exam 16: Basic Data Structures102 Questions
Exam 17: Tree Structures102 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Stream Processing85 Questions
Exam 20: Graphical User Interfaces75 Questions
Exam 21: Advanced Input/Output90 Questions
Exam 22: Multithreading81 Questions
Exam 23: Internet Networking74 Questions
Exam 24: Relational Databases75 Questions
Exam 25: XML74 Questions
Select questions type
What is the correct way to invoke methods on variables in Java that are strings?
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
D
What is wrong with the following code snippet?

Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
C
What will be printed by the statement below?
System.out.print("O\"my\t\\\"no!");
Free
(Multiple Choice)
4.8/5
(40)
Correct Answer:
D
When you purchase donuts, they come in boxes of 12, so 24 donuts take 2 boxes.All donuts need to be in a box, so if you buy 13 donuts, you'll get 2 boxes with 12 in the first box and 1 in the second.If the integer variable numberOfDonuts contains the positive number of donuts purchased, which of the following will correctly give the number of boxes needed?
(Multiple Choice)
4.8/5
(35)
Assume the following variable has been declared and given values as shown:
String name = "Mamey, Jean";
Which statement will print the name as "Jean Mamey"?
(Multiple Choice)
4.9/5
(43)
Which is the Java equivalent of the following mathematical expression?

(Multiple Choice)
4.7/5
(33)
Assume the following variables have been declared as shown and given values elsewhere:
double a, b, c;
The discriminant of a quadratic equation is defined to be:
Which of the following statements will assign the correct value to discriminant?

(Multiple Choice)
4.8/5
(41)
Which is the Java equivalent of the following mathematical expression?

(Multiple Choice)
4.7/5
(42)
What is the result of the following statement?
String s = "You" + "had" + "me" + "at" + "hello";
(Multiple Choice)
4.9/5
(35)
Assume the following variables have been declared and given values as shown:
int i = 2345;
double m = 67.8;
What will be printed by the statement below?
System.out.printf("Values are %10d and %7.2f", i, j);
(Multiple Choice)
4.8/5
(35)
At what point in the problem-solving process should one write pseudocode?
(Multiple Choice)
4.9/5
(33)
Which of the methods below are static methods?
I.length
II.substring
III.pow
IV.sqrt
(Multiple Choice)
4.9/5
(35)
Assuming that the user inputs "Joe" at the prompt, what is the output of the following code snippet?

(Multiple Choice)
4.9/5
(43)
Showing 1 - 20 of 124
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)