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
(76)

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

(True/False)
4.8/5
(76)

When you dereference an object pointer, use the

(Multiple Choice)
4.8/5
(83)

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

(Multiple Choice)
5.0/5
(82)

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

(Multiple Choice)
4.8/5
(87)

How many default constructors can a class have?

(Multiple Choice)
4.8/5
(68)

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

(Multiple Choice)
5.0/5
(78)

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
(70)

Examples of access specifiers are the key words

(Multiple Choice)
4.8/5
(67)

A destructor function can have zero to many parameters.

(True/False)
4.8/5
(86)

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

(Multiple Choice)
4.7/5
(78)

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
(72)

The constructor function always has the same name as

(Multiple Choice)
4.9/5
(94)

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

(Multiple Choice)
4.8/5
(80)

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
(86)

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
(79)

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

(True/False)
4.7/5
(95)

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

(Multiple Choice)
4.8/5
(71)

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
(86)

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

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

Filters

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