Exam 2: Basic Elements of Java
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of Java50 Questions
Exam 3: Introduction to Objects and Inputoutput50 Questions
Exam 4: Control Structures I: Selection50 Questions
Exam 5: Control Structures II: Repetition50 Questions
Exam 6: Graphical User Interface Gui and Object-Oriented Design OOD50 Questions
Exam 7: User-Defined Methods50 Questions
Exam 8: User-Defined Classes and Adts50 Questions
Exam 9: Arrays50 Questions
Exam 10: Inheritance and Polymorphism50 Questions
Exam 11: Handling Exceptions and Events50 Questions
Exam 12: Advanced Guis and Graphics49 Questions
Exam 13: Recursion50 Questions
Exam 14: Searching and Sorting50 Questions
Select questions type
____ are executable statements that inform the user what to do.
(Multiple Choice)
4.9/5
(31)
If a = 4; and b = 3;, then after the statement a = b; executes, the value of b is 4 and the value of a is 3.
(True/False)
4.8/5
(33)
Consider the following program. public class CircleArea {static Scanner console = new Scanner(System.in); static final float PI = 3.14; public static void main(String[]args) {float r; float area; r = console.nextDouble(); area = PI * r * r; System.out.println("Area = " + area);}} To successfully compile this program, which of the following import statement is required?
(Multiple Choice)
4.8/5
(40)
The number of significant digits in a double variable is up to 15.
(True/False)
4.8/5
(33)
Both System.out.println and System.out.print can be used to output a string on the standard output device.
(True/False)
4.9/5
(40)
Given char ch; int num; double pay; Which of the following assignment statements are valid? (i) ch = '*'; (ii) pay = num * pay; (iii) rate * 40 = pay;
(Multiple Choice)
4.8/5
(36)
If ++x is used in an expression, first the expression is evaluated, and then the value of x is incremented by 1.
(True/False)
4.7/5
(33)
Suppose x = 8. After the execution of the statement y = x++; y is 8 and x is 10.
(True/False)
4.9/5
(35)
The symbol '5' does not belong to the char data type because 5 is a digit.
(True/False)
4.9/5
(34)
When a value of one data type is automatically changed to another data type, an implicit type coercion has occurred.
(True/False)
4.9/5
(43)
Suppose that alpha and beta are int variables. The statement alpha = --beta; is equivalent to the statement(s) ____.
(Multiple Choice)
4.8/5
(40)
An operator that has only one operand is called a unique operator.
(True/False)
4.9/5
(38)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)