Exam 3: Pointers and Array-Based Lists

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

In an array list the time complexity of the remove function is identical to the time complexity of the ____ function.

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

A

The statement ____ stores the address of x in p.

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

A

Pointer variables must be initialized if you want them to point to something.

Free
(True/False)
4.8/5
(38)
Correct Answer:
Verified

False

The statement ____ declares list to be an array of five integers.

(Multiple Choice)
4.8/5
(38)

The ampersand, &, is called the ____.

(Multiple Choice)
4.9/5
(44)

When an integer is added to a pointer variable, the value of the pointer variable is incremented by the integer times the size of the memory to which the pointer is pointing.

(True/False)
4.9/5
(38)

The ampersand, &, is a binary operator that returns the address of its operand.

(True/False)
4.9/5
(36)

The length of a list is the number of elements in the list.

(True/False)
4.8/5
(38)

You can initialize a pointer variable by setting it to ____.

(Multiple Choice)
4.9/5
(39)

In a deep copy, two or more pointers have their own data.

(True/False)
4.8/5
(43)

To determine whether the item to be inserted is already in the list, the insert function calls the _____ member function.

(Multiple Choice)
4.8/5
(35)

The * is commonly referred to as the ____ operator.

(Multiple Choice)
4.8/5
(47)

When a dynamic variable is no longer needed, it can be ____.

(Multiple Choice)
4.7/5
(36)

When * is used as a unary operator, * refers to the object to which the operand of the * (that is, the pointer) points.

(True/False)
4.9/5
(38)

Variables that are created during program execution are called ____ variables.

(Multiple Choice)
4.8/5
(34)

An array created during the execution of a program is called a dynamic array.

(True/False)
4.9/5
(33)

The operator new has two forms: one to allocate a single variable, and another to allocate an array of variables.

(True/False)
4.9/5
(34)

The syntax for accessing a class (struct) member using the operator -> is ____.

(Multiple Choice)
4.9/5
(37)

In the line of code int* p,q, p and q are both pointer variables of type int.

(True/False)
4.9/5
(44)

The correct syntax for the destructor of the class tempClass is ____.

(Multiple Choice)
4.8/5
(40)
Showing 1 - 20 of 45
close modal

Filters

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