Exam 11: Introduction to Java

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

A(n) ____________________ is a constant value that appears directly in a statement.

Free
(Short Answer)
4.8/5
(28)
Correct Answer:
Verified

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:
Verified

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:
Verified

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)