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
Assuming that the user enters 45 and 62 as inputs for n1 and n2, respectively, what is the output of the following code snippet?

(Multiple Choice)
5.0/5
(38)
Assume the following variables have been declared and given values as shown:
String str = "0123456789";
String sub = str.substring(3, 4);
Which is the value of sub?
(Multiple Choice)
4.8/5
(34)
The problem solving process emphasizes a "first, do-it-by-hand" approach because
(Multiple Choice)
4.8/5
(26)
What is the difference between the result of the following two Java statements?
I.int cents = (int)(100 * price + 0.5);
II.int cents = (100 * price + 0.5);
(Multiple Choice)
4.7/5
(39)
What happens to the fractional part when a division is performed on two integer variables?
(Multiple Choice)
4.8/5
(36)
Assuming that the user enters 23 and 45 as inputs for num1 and num2, respectively, what is the output of the following code snippet?

(Multiple Choice)
4.8/5
(33)
Which of the following statements is correct about constants?
(Multiple Choice)
4.7/5
(48)
Which one of the following is a correct method for defining and initializing an integer variable with name value?
(Multiple Choice)
4.9/5
(42)
How do you extract the first 5 characters from the string str?
(Multiple Choice)
4.8/5
(44)
Assuming that the user inputs a value of 25 for the price and 10 for the discount rate in the following code snippet, what is the output?

(Multiple Choice)
4.9/5
(35)
Suppose a phone number, stored as a ten-character string (of digits only) called phoneNumber must be converted into a string that has parentheses around the area code.Which statement below will do that?
(Multiple Choice)
4.9/5
(37)
Which one of the following operators computes the remainder of an integer division?
(Multiple Choice)
4.8/5
(36)
What will be the value stored in the variable x after the execution of the following code snippet?

(Multiple Choice)
4.9/5
(32)
What will be the value of the variables x and y after the given set of assignments?

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

(Multiple Choice)
4.9/5
(44)
Showing 101 - 120 of 124
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)