Exam 9: Pointers

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

The statement: The statement:   Has the same meaning as ________. Has the same meaning as ________.

(Multiple Choice)
4.9/5
(79)

A pointer variable may be initialized with ________.

(Multiple Choice)
4.9/5
(88)

A pointer variable is designed to store ________.

(Multiple Choice)
4.9/5
(80)

The following statement: The following statement:

(Multiple Choice)
4.9/5
(77)

When you pass a pointer as an argument to a function, you must ________.

(Multiple Choice)
4.8/5
(82)

To help prevent memory leaks from occurring in C++ 11, a ________ automatically deletes a chunk of dynamically allocated memory when the memory is no longer being used.

(Multiple Choice)
4.9/5
(82)

When you work with a dereferenced pointer, you are actually working with ________.

(Multiple Choice)
4.8/5
(77)

When the less than ( < )operator is used between two pointer variables, the expression is testing whether ________.

(Multiple Choice)
4.8/5
(94)

With pointer variables you can access, but you cannot modify, data in other variables.

(True/False)
4.8/5
(76)

In C++ 11, the nullptr key word was introduced to represent the address 0.

(True/False)
4.8/5
(85)

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

(Multiple Choice)
4.9/5
(77)

What does the following statement do? What does the following statement do?

(Multiple Choice)
4.9/5
(94)

Dynamic memory allocation occurs ________.

(Multiple Choice)
4.9/5
(74)

The ________, also known as the address operator, returns the memory address of a variable.

(Multiple Choice)
5.0/5
(82)

Use the delete operator only on pointers that were ________.

(Multiple Choice)
4.7/5
(78)

A pointer can be used as a function argument, giving the function access to the original argument.

(True/False)
4.7/5
(90)

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

(Multiple Choice)
4.8/5
(82)

An array name is a pointer constant because the address stored in it cannot be changed during runtime.

(True/False)
4.8/5
(78)

If a variable uses more than one byte of memory, for pointer purposes its address is ________.

(Multiple Choice)
4.8/5
(77)

Which of the following statements is not valid C++ code?

(Multiple Choice)
4.8/5
(73)
Showing 21 - 40 of 45
close modal

Filters

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