Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes

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

In ____ binding, the necessary code to call a specific function is generated by the compiler.

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

A

The seqSearch function returns true if an item in the list equals the searchItem.

Free
(True/False)
4.9/5
(31)
Correct Answer:
Verified

True

Which of the following operations is allowed on pointer variables?

Free
(Multiple Choice)
4.7/5
(37)
Correct Answer:
Verified

C

Given the statement double *p;, the statement p++; will increment the value of p by ____ byte(s).

(Multiple Choice)
4.8/5
(39)

The ____ operator can be used to return the address of a private data member of a class.

(Multiple Choice)
4.9/5
(43)

A(n) ____________________ is a collection of distinct elements of the same type.

(Short Answer)
4.8/5
(36)

The ____________________ of a base class automatically makes the destructor of a derived class virtual.

(Short Answer)
4.9/5
(37)

The C++ operator ____ is used to destroy dynamic variables.

(Multiple Choice)
4.8/5
(36)

Which of the following arithmetic operations is allowed on pointer variables?

(Multiple Choice)
4.7/5
(30)

The copy constructor automatically executes when, as a parameter, an object is passed by ____________________.

(Short Answer)
4.9/5
(45)

In C++, the member access operator arrow is >>.

(True/False)
4.9/5
(43)

In a ____ copy, two or more pointers have their own data.

(Multiple Choice)
4.8/5
(40)

Run-time binding is also known as ____ binding.

(Multiple Choice)
4.8/5
(44)

Consider the following declaration of a struct:The statement (*studentPtr).gpa = 2.5; is equivalent to ___________________ = 2.5;. Consider the following declaration of a struct:The statement (*studentPtr).gpa = 2.5; is equivalent to ___________________ = 2.5;.

(Short Answer)
4.7/5
(40)

The statement int *p; is equivalent to int * p;, which is also equivalent to the statement ____________________.

(Short Answer)
4.7/5
(32)

What is the output of the following code? What is the output of the following code?

(Multiple Choice)
4.7/5
(40)

The code int *p; declares p to be a(n) ____ variable.

(Multiple Choice)
4.8/5
(45)

Consider the following statements:In the function pointerParameters, the parameter p is a(n) ____________________ parameter. Consider the following statements:In the function pointerParameters, the parameter p is a(n) ____________________ parameter.

(Short Answer)
4.8/5
(41)

A pointer variable is a variable whose content is a memory address.

(True/False)
4.9/5
(41)

The dereferencing operator is also known as the indirection operator and refers to the object to which its operand points.

(True/False)
4.8/5
(47)
Showing 1 - 20 of 44
close modal

Filters

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