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

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

In a ____ copy,two or more pointers of the same type point to the same memory.

(Multiple Choice)
4.8/5
(33)

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

(Multiple Choice)
4.7/5
(43)

The ____________________ of a list is the number of elements in the list.

(Short Answer)
5.0/5
(28)

The ____ constructor is executed when an object is declared and initialized by using the value of another object.

(Multiple Choice)
4.9/5
(35)

A class ____ automatically executes whenever a class object goes out of scope.

(Multiple Choice)
4.9/5
(29)

The binding of virtual functions occurs at program ____________________ time.

(Short Answer)
4.7/5
(44)

Consider the following statements: class shape { public: virtual void draw()= 0; virtual void move(double x,double y)= 0; . . . }; The code above is an example of a(n)____________________ class definition.

(Short Answer)
4.7/5
(33)

The statement that declares board to be an array of six pointers wherein each pointer is of type int is: int ____________________;

(Short Answer)
4.7/5
(47)

What is the output of the following statements? int x = 33; int *q; q = &x; cout << *q << endl;

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.9/5
(39)
Showing 41 - 50 of 50
close modal

Filters

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