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 Input/output50 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 Classes50 Questions
Exam 9: Arrays46 Questions
Exam 10: Inheritance and Polymorphism50 Questions
Exam 11: Handling Exceptions and Events50 Questions
Exam 12: Advanced Guis and Graphics48 Questions
Exam 13: Recursion50 Questions
Exam 14: Applications of Arrays Searching and Sorting and Strings50 Questions
Select questions type
The == characters are a special symbol in Java.
Free
(True/False)
4.9/5
(40)
Correct Answer:
True
A value such as 'd' is called a character constant.
Free
(True/False)
4.7/5
(42)
Correct Answer:
True
The declaration int a, b, c; is equivalent to which of the following?
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
B
When evaluating a mixed expression, all integer operands are converted to floating-point numbers with the decimal part of zero.
(True/False)
4.8/5
(29)
Operators of the same precedence are evaluated from right to left.
(True/False)
4.8/5
(44)
Suppose console is a Scanner object initialized with the standard input device and feet and inches are int variables. Consider the following statements: feet = console.nextInt();
inches = console.nextInt(); These statements require the value of feet and inches to be input on separate lines.
(True/False)
4.7/5
(39)
The number of significant digits in a double variable is up to 15.
(True/False)
4.7/5
(34)
Suppose that index is an int variable. The statement index = index + 1; is equivalent to index++;
(True/False)
4.7/5
(36)
When a value of one data type is automatically changed to another data type, an implicit type coercion has occurred.
(True/False)
4.8/5
(36)
What is the output of the following statement? System.out.println("Welcome \n Home");
(Short Answer)
4.8/5
(34)
Both System.out.println and System.out.print can be used to output a string on the standard output device.
(True/False)
4.7/5
(43)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)