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
In the following Java statement what value is stored in the variable name? String name = "John Doe";
(Multiple Choice)
4.8/5
(28)
To print "Hello, world" on the monitor, use the following Java statement
(Multiple Choice)
4.7/5
(37)
The term ___________ typically refers to the device that displays console output.
(Multiple Choice)
4.9/5
(33)
This is a variable whose content is read only and cannot be changed during the program's execution.
(Multiple Choice)
4.9/5
(45)
The boolean data type may contain values in the following range of values
(Multiple Choice)
4.8/5
(37)
What would be displayed as a result of the following code? int x = 578;
System.out.print("There are " +
X + 5 + "\n" +
"hens in the hen house.");
(Multiple Choice)
4.9/5
(37)
Character literals are enclosed in _____; string literals are enclosed in _____.
(Multiple Choice)
4.8/5
(37)
Although the dollar sign is a legal identifier character, you should not use it because it is normally used for special purposes.
(True/False)
5.0/5
(34)
The primitive data types only allow a(n) _____ to hold a single value.
(Multiple Choice)
4.8/5
(34)
To compile a program named First, use the following command:
(Multiple Choice)
4.8/5
(41)
Which of the following does not describe a valid comment in Java?
(Multiple Choice)
4.7/5
(40)
When the + operator is used with strings, it is known as the:
(Multiple Choice)
4.8/5
(35)
Assuming that pay has been declared a double, the following statement is valid.
pay = 2,583.44;
(True/False)
4.8/5
(32)
In Java, ___________ must be declared before they can be used.
(Multiple Choice)
4.9/5
(34)
Showing 41 - 60 of 61
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)