Exam 10: Pointers

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

The advantage of using pointers rather than references is that the function call specifies that ____________________ are being used.

(Short Answer)
4.7/5
(27)

Pointers to functions are possible because function ____ are themselves pointer constants.

(Multiple Choice)
4.9/5
(38)

The C++ operator * means the address of .

(True/False)
4.7/5
(45)

As each variable is defined in a program, sufficient storage for it is assigned from a pool of computer memory locations made available to the compiler.

(True/False)
4.9/5
(44)

The ____________________ statement restores an allocated block of storage back to the free storage area (the heap) while a program is running.

(Short Answer)
4.9/5
(47)

References are used almost exclusively as formal function parameters and ____ types.

(Multiple Choice)
4.7/5
(29)

The ____ consists of unallocated memory that can be allocated to a program, as requested, while the program is running.

(Multiple Choice)
4.9/5
(27)

When an array is created, the compiler creates an internal point constant for it automatically and stores the array s ____ in this pointer.

(Multiple Choice)
4.8/5
(40)

The C++ ____ operator releases a block of bytes reserved previously.

(Multiple Choice)
4.8/5
(31)

If a character s address is stored in a pointer, only ____ byte(s) of storage would be retrieved when the address is used.

(Multiple Choice)
4.9/5
(31)

Access to multidimensional ____________________ can be made using pointer notation.

(Short Answer)
4.9/5
(34)

Like all variables, pointers can be initialized when they are ____________________.

(Short Answer)
4.9/5
(30)

Pointers must be ____________________ before they can be used to store an address.

(Short Answer)
4.8/5
(33)

The asterisk ( * ) symbol is also called the ____ operator.

(Multiple Choice)
4.9/5
(31)

In contrast to implicitly passing addresses with ____, addresses can be explicitly passed using pointers.

(Multiple Choice)
4.8/5
(38)

The addresses in pointers can be compared by using any of the C++ ____________________ operators.

(Short Answer)
5.0/5
(28)

To display the address of a variable, you can use C++ s address operator, ____.

(Multiple Choice)
4.8/5
(43)

Expressions taking the address of an array name are invalid because the pointer the compiler creates is ____________________ to the computer.

(Short Answer)
4.8/5
(34)

A double typically requires the retrieval of ____________________ bytes of storage.

(Short Answer)
4.8/5
(31)

A computer uses an array s ____ to calculate the array element s address based on both the array s starting address and the amount of storage each element uses.

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

Filters

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