Exam 12: Java Code Examples of Problem Domain Classes

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Which of the following is NOT a keyword?

Free
(Multiple Choice)
4.8/5
(34)
Correct Answer:
Verified

D

Java syntax is based on the _________ language.

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

C++

Methods that allow access to the attributes of a class are known as accessor methods.

Free
(True/False)
4.9/5
(38)
Correct Answer:
Verified

False

The void keyword is used to designate a class as abstract.

(True/False)
4.7/5
(31)

The ________ keyword is used to indicate that a class is abstract.

(Short Answer)
4.9/5
(38)

In Java, each "program" must be a __________.

(Short Answer)
4.8/5
(31)

What special method is used to create a new object in a class?

(Multiple Choice)
4.7/5
(45)

Java uses the __________ keyword to indicate an inheritance relationship.

(Short Answer)
4.9/5
(41)

Each __________ of code is enclosed with curly braces {}.

(Short Answer)
4.8/5
(43)

___________ methods allow access to the attributes of the class.

(Short Answer)
4.8/5
(38)

In Java blocks of code are enclosed by parenthesis.

(True/False)
4.9/5
(42)

A driver program is used to test classes.

(True/False)
4.9/5
(45)

Java uses the extends keyword to indicate an inheritance relationship.

(True/False)
4.9/5
(45)

A(n) __________ is a special method used to create a new object of the class.

(Short Answer)
4.8/5
(46)

Java is case sensitive.

(True/False)
4.9/5
(43)

A(n) __________ program test classes by creating objects of the class and sending messages to them.

(Short Answer)
4.7/5
(32)

The __________ keyword invokes the constructor of the class.

(Short Answer)
4.9/5
(41)

When associated with a class, the keyword __________ means that objects of the class can be accessed by anything in the system.

(Short Answer)
4.9/5
(38)

Classes typically consist of attributes and methods.

(True/False)
4.7/5
(46)

The extend keyword indicates a(n) ____________ relationship.

(Multiple Choice)
4.8/5
(32)
Showing 1 - 20 of 25
close modal

Filters

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