Exam 9: Classes

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

What type of member functions allow a client of a class to assign values to private data members?

(Multiple Choice)
5.0/5
(39)

The type of function a client would use to check the balance of a bank account would be:

(Multiple Choice)
4.8/5
(36)

Which of the following statements about separating a class's interface and implementation is not true?

(Multiple Choice)
4.7/5
(33)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(25)

A default constructor has how many parameters?

(Multiple Choice)
4.8/5
(35)

When a client code programmer uses a class whose implementation is in a separate file from its interface, that implementation code is merged with the client's code during the:

(Multiple Choice)
4.9/5
(30)

Every object of the same class:

(Multiple Choice)
4.7/5
(35)

The assignment operator =) can be used to:

(Multiple Choice)
4.8/5
(38)

Given the class definition: Class CreateDestroy { Public: CreateDestroy) { cout << "constructor called, "; } ~CreateDestroy) { cout << "destructor called, "; } }; What will the following program output? Int main) { CreateDestroy c1; CreateDestroy c2; Return 0; }

(Multiple Choice)
4.8/5
(34)

In the UML, the top compartment of the rectangle modeling a class contains:

(Multiple Choice)
4.7/5
(44)

A header file is typically given the filename extension:

(Multiple Choice)
4.7/5
(42)

A client changing the values of private data members is:

(Multiple Choice)
4.8/5
(26)

The compiler will implicitly create a default constructor if:

(Multiple Choice)
4.9/5
(38)

A default constructor:

(Multiple Choice)
4.9/5
(40)

Variables defined inside a member function of a class have:

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

Filters

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