Exam 10: Pointers

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

A pointer variable is designed to store

(Multiple Choice)
4.9/5
(83)

Any arithmetic operation may be performed on pointers.

(True/False)
4.9/5
(80)

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

(True/False)
4.8/5
(91)

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

(True/False)
5.0/5
(86)

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

(Multiple Choice)
4.9/5
(81)

________ can be used as pointers.

(Multiple Choice)
4.9/5
(88)

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

(Multiple Choice)
4.8/5
(95)

If dynamically allocated memory is not freed,

(Multiple Choice)
4.9/5
(63)

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

(Multiple Choice)
4.8/5
(80)

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

(Multiple Choice)
4.9/5
(88)

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

(Multiple Choice)
4.8/5
(78)

Memory cannot be allocated after a program is already running.

(True/False)
4.9/5
(87)

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

(True/False)
4.9/5
(79)

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

(Multiple Choice)
4.9/5
(84)

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

(Multiple Choice)
4.9/5
(85)

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

(Multiple Choice)
4.7/5
(68)

The statement double *num;

(Multiple Choice)
4.8/5
(73)

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

(Multiple Choice)
4.9/5
(81)

The statement cout << *ptr; will output

(Multiple Choice)
4.9/5
(87)

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

(Multiple Choice)
5.0/5
(76)
Showing 41 - 60 of 62
close modal

Filters

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