Exam 13: Introduction to Classes

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

You can use the technique known as a member intialization list to initialize members of a class.

(True/False)
4.9/5
(32)

More than one constructor function may be defined for a class.

(True/False)
4.8/5
(28)

When you dereference an object pointer, use the

(Multiple Choice)
4.8/5
(35)

A C++ class is similar to a(n)

(Multiple Choice)
5.0/5
(40)

In C++11 you can use __________ to initialize a member variable in its declaration statement.

(Multiple Choice)
4.8/5
(40)

How many default constructors can a class have?

(Multiple Choice)
4.8/5
(28)

Which type of member function may only be called from a function that is a member of the same class?

(Multiple Choice)
4.9/5
(33)

In a procedural program you typically have __________ stored in a collection of variables and a set of __________ that perform operations on the data.

(Multiple Choice)
4.8/5
(26)

Examples of access specifiers are the key words

(Multiple Choice)
4.9/5
(20)

A destructor function can have zero to many parameters.

(True/False)
4.8/5
(40)

Objects are created from abstract data types that encapsulate __________ and __________ together.

(Multiple Choice)
4.7/5
(38)

When using smart pointers to dynamically allocate objects in C++ 11, it is unnecessary to delete the dynamically allocated objects because the smart pointer will automatically delete them.

(True/False)
4.8/5
(35)

The constructor function always has the same name as

(Multiple Choice)
4.9/5
(47)

The process of object-oriented analysis can be viewed as the following steps:

(Multiple Choice)
4.8/5
(43)

When a constructor function accepts no arguments, or does not have to accept arguments because of default arguments, it is called a(n)

(Multiple Choice)
4.8/5
(36)

When an object is defined without an argument list for its constructor, the compiler automatically calls the object's default constructor.

(True/False)
4.9/5
(30)

If you do not declare a destructor function, the compiler will furnish one automatically.

(True/False)
4.7/5
(39)

Assuming that Rectangle is a class name, what can you say is true, given the following statement? Rectangle *BoxPtr;

(Multiple Choice)
4.8/5
(37)

In OOP terminology, an object's member variables are often called its __________ and its member functions can be referred to as its behaviors or its __________.

(Multiple Choice)
4.9/5
(34)

If you do not declare an access specification, the default for members of a class is

(Multiple Choice)
5.0/5
(31)
Showing 21 - 40 of 54
close modal

Filters

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