Exam 9: Classes: a Deeper Look; Throwing Exceptions

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

If the line: friend class A; Appears in class B, and the line: Friend class B; Appears in class C, then:

(Multiple Choice)
4.8/5
(36)

An error occurs if:

(Multiple Choice)
4.8/5
(28)

Which of the following preprocessor directives does not constitute part of the preprocessor wrapper?

(Multiple Choice)
4.9/5
(31)

Member function definitions:

(Multiple Choice)
4.8/5
(29)

For a non-constant member function of class Test, the this pointer has type:

(Multiple Choice)
4.7/5
(34)

Which of the following statements is false (ssume we're referring to class Time)?

(Multiple Choice)
4.7/5
(40)

Variables defined inside a member function of a class have:

(Multiple Choice)
4.8/5
(25)

The code fragment: Increment::Increment(int c, int i) : increment (i) { Count = c; } Does not cause any compilation errors. This tells you that:

(Multiple Choice)
4.9/5
(35)

Static member functions:

(Multiple Choice)
4.8/5
(34)

If Americans are objects of the same class, which of the following attributes would most likely be represented by a static variable of that class?

(Multiple Choice)
4.8/5
(34)

When composition (one object having another object as a member) is used:

(Multiple Choice)
4.7/5
(32)

If a member function of a class already provides all or part of the functionality required by a constructor or another member function then:

(Multiple Choice)
4.9/5
(33)

Member access specifiers (public and private) can appear:

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

Which of the following statements is false (assume we're referring to class Time)?

(Multiple Choice)
4.8/5
(39)
Showing 21 - 35 of 35
close modal

Filters

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