Question: C++ 3. In a linked list, every node (except the last node) contains the address of the next node. a. True b. False 19. A
C++
3. In a linked list, every node (except the last node) contains the address of the next node.
a. True
b. False
19. A friend function is a ____ function of the class.
a. member
b. static
c. nonmember
d. private
33. To find a node in a linked list, the list must be searched sequentially.
a. True
b. False
35. You cannot traverse a single linked list backward starting from the last node using recursion.
a. True
b. False
36. The definition of the class defining the ordered linked list as an ADT can be derived from the class ____.
a. linkedType
b. sequentialList
c. linkedListType
d. listType
37. Which of the following operators is not overloaded in the linkedListIterator class?
a. ++
b. ==
c. ->
d. *
38. The function ____ of the class linkedListType returns the last element of the list.
a. lastNode
b. back
c. last
d. tail
39. What is the access modifier of the variable count in the linkedListType class?
a. public
b. private
c. protected
d. friend
40. The ____ deallocates the memory occupied by the nodes of a list when the class object goes out of scope.
a. head pointer
b. destructor
c. tail pointer
d. constructor
42. The default constructor initializes the stack to an empty state when a stack object is declared.
a. True
b. False
43. In postfix notation, operators are written after the operands.
a. True
b. False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
