Exam 23: Other Topics

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

Which symbol is used to access class members via pointers to class members?

Free
(Multiple Choice)
5.0/5
(24)
Correct Answer:
Verified

B

If a derived class inherits from two base classes that both define a certain member function, then an ambiguity problem will arise when:

Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
Verified

B

The const_cast operator can be used to cast away ___________ or ____________ qualifications.

Free
(Multiple Choice)
4.8/5
(29)
Correct Answer:
Verified

A

Namespace definitions are different from class definitions because:

(Multiple Choice)
4.8/5
(38)

Which operator corresponds to operator keyword and_eq?

(Multiple Choice)
4.7/5
(40)

Individual namespace members can be accessed without a namespace qualifier:

(Multiple Choice)
4.9/5
(41)

Duplicate __________ could result from ___________.

(Multiple Choice)
4.8/5
(45)

Assuming that ptr is a pointer to a class data member of class Check and obj is a pointer to a Check object, which of the following statements would be used to output that data member?

(Multiple Choice)
4.9/5
(43)

Which operator keyword corresponds to ^?

(Multiple Choice)
4.7/5
(30)

Without the statement __________, all __________ statements must be written as std::cout.

(Multiple Choice)
4.8/5
(25)

Which of the following is not true of static local variables?

(Multiple Choice)
4.9/5
(33)

Multiple inheritance means that a derived class inherits the members of several:

(Multiple Choice)
4.8/5
(33)

If a certain object's data members need to be frequently modified by const functions, it is best to:

(Multiple Choice)
4.8/5
(35)

Which of the following declares a pointer ptr to a class member function in class Check that takes an int argument and returns a bool?

(Multiple Choice)
4.9/5
(33)

__________ inheritance solves the problem of duplicate subobjects.

(Multiple Choice)
4.8/5
(36)

___________ is/are used to solve the problem of variables with the same name and overlapping scopes.

(Multiple Choice)
4.7/5
(34)

An identifier's storage class:

(Multiple Choice)
4.8/5
(36)

The const_cast operator is needed when __________ data must be treated as ___________ data.

(Multiple Choice)
4.7/5
(37)

____________ namespace members appear to occupy the ___________ namespace and do not have to be qualified with a namespace name.

(Multiple Choice)
4.8/5
(29)

Namespaces cannot contain:

(Multiple Choice)
4.8/5
(39)
Showing 1 - 20 of 22
close modal

Filters

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