Exam 4: Data Abstraction: The Walls

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

What is data abstraction?

Free
(Essay)
4.8/5
(39)
Correct Answer:
Verified

A data abstraction is a design principle that separates the operations that can be performed on a collection of data from the implementation of the operations.

Which of the following is true about a constructor in Java?

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

C

By default,all members in a class are public.

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

False

What is a constructor?

(Essay)
4.9/5
(36)

According to the principle of information hiding,a module should be completely isolated from other modules.

(True/False)
4.9/5
(32)

What feature of Java allows you to enforce information hiding when you define a class such as an ADT?

(Short Answer)
4.8/5
(29)

An application can use the operations of an ADT without knowing how the ADT is implemented.

(True/False)
5.0/5
(39)

All the items in a list must be of the same data type.

(True/False)
4.9/5
(28)

Do all Java source files define classes? Explain.

(Essay)
4.8/5
(32)

What are some of the benefits of modularity?

(Essay)
4.9/5
(30)

The items in the ADT list are referenced by ______.

(Multiple Choice)
4.9/5
(38)

An ADT's operations are known as its ______.

(Multiple Choice)
4.8/5
(36)

Give three examples of ADT operations that ask questions about the data in a collection.

(Short Answer)
4.9/5
(38)

A(n)______ is an instance of a class.

(Multiple Choice)
4.9/5
(44)

What is an abstract data type (ADT)?

(Essay)
4.7/5
(37)

A program that uses an ADT is called a(n)______.

(Multiple Choice)
4.9/5
(37)

In Java,a class can extend ______.

(Multiple Choice)
4.9/5
(43)

If an ADT list is implemented as an array,why would it be necessary for the ADT operations to "shift" elements?

(Essay)
4.9/5
(42)

A class contains methods and ______.

(Multiple Choice)
4.8/5
(33)

What is the difference between the physical size and the logical size of an array?

(Essay)
4.7/5
(43)
Showing 1 - 20 of 60
close modal

Filters

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