Exam 10: Pointers

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

There is a direct relationship between array names and ____________________data types.

Free
(Short Answer)
4.9/5
(34)
Correct Answer:
Verified

pointers

If the integer s address is stored in a pointer, typically only ____ bytes of storage are retrieved when the address is used.

Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
Verified

C

A(n) ____ error is produced when an attempt is made to equate a reference to a constant.

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

B

The advantage of using references over using pointers is that the notation is ____.

(Multiple Choice)
4.9/5
(41)

For each array created, the array name becomes the name of the pointer constant the compiler creates for the array.

(True/False)
4.9/5
(38)

____________________ allocation of memory is useful when dealing with lists because it allows expanding the list as new items are added and contracting the list as items are deleted.

(Short Answer)
4.7/5
(44)

Explicitly passing addresses with the address operator is referred to as a pass by ____.

(Multiple Choice)
4.7/5
(43)

Technically, references are said to be ____.

(Multiple Choice)
4.7/5
(35)

A pointer reference can always be replaced with a ____ reference.

(Multiple Choice)
5.0/5
(45)

Essentially, a(n) ____ is a named constant for an address.

(Multiple Choice)
4.7/5
(34)

Multiple references cannot be declared in a single statement.

(True/False)
4.8/5
(42)

When constructing references, the reference should be of the same data type as the ____________________ to which it refers.

(Short Answer)
4.9/5
(36)

Reference variables are available in C++.

(True/False)
4.7/5
(40)

The 1 in the expression *(gPtr + 1) is a(n) ____.

(Multiple Choice)
4.8/5
(21)

Addresses cannot be incremented or decremented.

(True/False)
4.9/5
(38)

When used in a nondeclarative statement, the operator placed in front of a variable s name refers to the ____________________ of the variable.

(Short Answer)
4.9/5
(36)

Any address returned by ____ can be used subsequently by ____ to restore reserved memory back to the computer

(Multiple Choice)
4.8/5
(33)

To use a stored address, C++ provides us with an indirection operator, ____.

(Multiple Choice)
4.9/5
(32)

The use of a pointer requires the computer to do a double lookup.

(True/False)
4.9/5
(43)

When used in declaring reference arguments, the ampersand refers to the data type preceding it.

(True/False)
4.8/5
(35)
Showing 1 - 20 of 50
close modal

Filters

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