Exam 11: Introduction to Classes

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

The type of access that restricts a user from seeing how data is actually stored is referred to as ____.

Free
(Multiple Choice)
4.7/5
(35)
Correct Answer:
Verified

B

In C++, an abstract data type is referred to as a(n) ____.

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

D

The term ____ refers to any constructor that does not require any arguments when it is called.

Free
(Multiple Choice)
4.7/5
(49)
Correct Answer:
Verified

B

In C++, an object may be declared with empty parentheses.

(True/False)
4.8/5
(41)

The process of creating a new object is often referred to as a(n) ____________________ of the object.

(Short Answer)
4.9/5
(42)

A ____ function is any function that has the same name as its class.

(Multiple Choice)
4.9/5
(33)

Multiple constructors can be defined for each class as long as each one has a different number of and/or different ____________________ types.

(Short Answer)
4.9/5
(39)

The ____ section of a class is where the member functions declared in the declaration section are written.

(Multiple Choice)
4.8/5
(39)

In a pure object-oriented language, all data types are constructed as ____________________.

(Short Answer)
5.0/5
(32)

User-defined data types are required when you want to create objects that are more complex than simple integers and characters.

(True/False)
4.9/5
(33)

Central to the creation of objects is the concept of a(n) ____ data type.

(Multiple Choice)
4.9/5
(34)

Languages that use classes but don t provide inheritance and polymorphism are referred to as ____ languages.

(Multiple Choice)
4.8/5
(37)

A(n) ____ is simply a user-defined type that defines both a type of data and the operations that can be performed on it.

(Multiple Choice)
4.8/5
(44)

In C++, a common programming error consists of including a return type with the constructor s prototype.

(True/False)
4.8/5
(30)

Constructors are considered to be mutator functions.

(True/False)
4.8/5
(38)

Unlike a procedural approach, a(n) ___________________ approach fits graphically windowed environments well.

(Short Answer)
4.9/5
(36)

In UML, class diagrams are used to describe classes and their ____________________.

(Short Answer)
4.8/5
(37)

The ____________________ function has no return type.

(Short Answer)
4.9/5
(39)

A(n) ____ is any non-constructor member function that accesses a class s private data members.

(Multiple Choice)
4.8/5
(32)

In C++, using the same name for a data member as for a member function does not produce an error.

(True/False)
4.9/5
(34)
Showing 1 - 20 of 50
close modal

Filters

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