Exam 11: Introduction to Java
Exam 1: Object-Oriented Programming and Class Hierarchies41 Questions
Exam 2: Lists and the Collections Framework35 Questions
Exam 3: Testing and Debugging25 Questions
Exam 4: Stacks and Queues28 Questions
Exam 5: Recursion25 Questions
Exam 6: Trees25 Questions
Exam 7: Sets and Maps27 Questions
Exam 8: Sorting25 Questions
Exam 9: Self-Balancing Search Trees28 Questions
Exam 10: Graphs25 Questions
Exam 11: Introduction to Java25 Questions
Exam 12: Overview of UML25 Questions
Select questions type
A(n) ____________________ is a constant value that appears directly in a statement.
Free
(Short Answer)
4.8/5
(28)
Correct Answer:
literal
The ____ control structure is used to write a loop that specifies the repetition condition in the loop header.
Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
C
Java provides a class called ____________________ that stores character sequences and allows its contents to be changed.
Free
(Short Answer)
4.8/5
(41)
Correct Answer:
StringBuilder
____ are program errors that occur during the execution of a program.
(Multiple Choice)
4.8/5
(32)
The ____ control structure is used to write a decision with scalar values that select the alternative to be executed.
(Multiple Choice)
4.8/5
(36)
The escape sequence that starts with \u represents a(n) ____________________ character.
(Short Answer)
4.8/5
(36)
You can use explicit cast operations to perform a(n) ____ and ensure that the assignment statement will be valid.
(Multiple Choice)
5.0/5
(37)
The primitive data types for Java represent numbers, characters, and Boolean values.
(True/False)
4.8/5
(35)
The ____ is used to write a decision with conditions that select the alternative to be executed.
(Multiple Choice)
4.8/5
(41)
Java uses type ____________________ to represent logical data.
(Short Answer)
4.8/5
(46)
In Java, Strings are ____________________, that is, they cannot be modified.
(Short Answer)
4.8/5
(42)
Java programmers usually use all uppercase letters for constant identifiers, with an underscore symbol between words.
(True/False)
4.8/5
(30)
A Java array has a length data field that can be used to determine the array's ____.
(Multiple Choice)
4.9/5
(53)
In Java, the relational and equality operators are used to compare the values stored in strings or other objects.
(True/False)
4.8/5
(40)
A static method, including method main, cannot call an instance method without first creating an object and applying the instance method to that object.
(True/False)
4.9/5
(37)
A(n) ____________________ is a named description for a group of entities that have the same characteristics.
(Short Answer)
4.7/5
(31)
A group of statements that is executed in sequence is written as a(n) ____________________ statement delimited by braces.
(Short Answer)
4.8/5
(28)
If you define one or more constructors for a class, you must also explicitly define the ____, or it will be undefined for that class.
(Multiple Choice)
4.9/5
(34)
Statements beginning with the keyword ____________________ cause an exit from the method.
(Short Answer)
4.8/5
(40)
Java provides a set of ____ classes whose objects contain primitive-type values.
(Multiple Choice)
4.9/5
(31)
Showing 1 - 20 of 25
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)