Exam 13: Pointers and Linked Lists

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

If you write a linked list class,then you should implement the destructor,copy constructor,and the assignment operator

(True/False)
4.8/5
(40)

If you push the following numbers onto an integer stack,what item is on the top of the stack? 1,4,8,16)

(Multiple Choice)
4.9/5
(45)

The function used to put data into a stack is typically called _______.

(Short Answer)
4.8/5
(35)

There is no need for error checking when pushing a stack.

(True/False)
4.8/5
(47)

Dynamically allocated memory that is no longer pointed to by any pointer variable causes a ______________.

(Short Answer)
4.7/5
(31)

The pointer in a node points to

(Multiple Choice)
4.9/5
(39)

To add an item to a stack,we call the ______ function

(Multiple Choice)
4.8/5
(40)

Most applications that use a stack will store a struct or class object on the stack.

(True/False)
4.9/5
(32)

If you need to insert an element in the front of a list with N nodes and move the other elements back one place),how many nodes do you have to move?

(Multiple Choice)
4.9/5
(43)

When would you use a linked list over an array or a dynamic array?

(Multiple Choice)
4.7/5
(38)

In a linked list as defined in the text,the pointer in the last node in the list should always point to _________.

(Short Answer)
4.7/5
(32)

The arrow operator ->)specifies

(Multiple Choice)
4.9/5
(44)

The arrow operator ->)combines the actions of which two operators?

(Short Answer)
5.0/5
(49)

A stack is a first-in-first-out data structure.

(True/False)
5.0/5
(51)

There is no need for error checking when popping a stack.

(True/False)
4.8/5
(37)

Apart from constructors,the operations for a stack listed in the text are ____________,_____________,and _______________,

(Short Answer)
4.7/5
(32)

Which of the following loops correctly uses iter as an iterator to move through the nodes of the linked list? NodePtr iter; //a pointer to a node

(Multiple Choice)
4.8/5
(38)

The number of possible nodes in a linked list is __________

(Short Answer)
4.8/5
(43)

Data is removed at the back of the queue.

(True/False)
4.8/5
(40)

A queue is first-in-first-out data structure.

(True/False)
4.8/5
(28)
Showing 21 - 40 of 51
close modal

Filters

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