Exam 10: Pointers

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

A pointer variable is designed to store

(Multiple Choice)
4.8/5
(40)

Any arithmetic operation may be performed on pointers.

(True/False)
4.9/5
(39)

A pointer with the value 0 (zero) is called the NULL pointer.

(True/False)
4.8/5
(42)

It is legal to subtract a pointer variable from another pointer variable.

(True/False)
4.9/5
(41)

When the ________ is placed in front of a variable name, it returns the address of that variable.

(Multiple Choice)
4.9/5
(34)

________ can be used as pointers.

(Multiple Choice)
4.9/5
(41)

If arr is an array identifier and k is an integer, the expression arr[k] is equivalent to

(Multiple Choice)
4.8/5
(38)

If dynamically allocated memory is not freed,

(Multiple Choice)
4.9/5
(30)

Every byte in the computer's memory is assigned a unique

(Multiple Choice)
4.9/5
(30)

You may use the type pointer to a structure as the type of a

(Multiple Choice)
4.8/5
(36)

If Circle is a structure type, the statement Circle *pcirc;

(Multiple Choice)
4.9/5
(34)

Memory cannot be allocated after a program is already running.

(True/False)
4.8/5
(36)

An array name is a pointer constant because the address it represents cannot be changed during run-time.

(True/False)
4.9/5
(31)

With pointer variables, you can ________ manipulate data stored in other variables.

(Multiple Choice)
4.9/5
(37)

A ________________ keeps track of dynamically-allocated memory and automatically deletes when it is no longer in use.

(Multiple Choice)
4.9/5
(42)

Any time you use the new operator, it is good practice to

(Multiple Choice)
4.8/5
(23)

The statement double *num;

(Multiple Choice)
4.7/5
(27)

A function may return a pointer, but the programmer must ensure that the pointer

(Multiple Choice)
4.9/5
(42)

The statement cout << *ptr; will output

(Multiple Choice)
4.9/5
(44)

The statement int *ptr = new int; acquires memory to hold an integer and then

(Multiple Choice)
4.9/5
(37)
Showing 41 - 60 of 62
close modal

Filters

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