CC 12 Finals Flashcards
PAG STUDY DIHA (41 cards)
The solution to the problem of sparsity of data of arrays.
A. Queue
B. Stack
C. Linked List
C. Linked List
The node that points to the next Node in the Linked List.
A. Node
B. Next
C. Data
B. Next
The instance variable that contains the value.
A. Data
B. Next
C. Node
A. Data
The Node that serves as a temporary storage for the Linked List.
A. Data
B. Temp
C. Node
B. Temp
The argument that tells the position of the Node adjacent to the Node that will be deleted.
A. Data
B. Position
C. Node
B. Position
The method that deletes a Node in the tail of the Linked List.
A. Push
B. deleteNode
C. insertAfter
B. deleteNode
The Linked List that only has one pointer to its adjacent Node.
A. Doubly Linked List
B. Circular Linked List
C. Singular Linked List
C. Singular Linked List
The object that contains the value and pointer.
A. Linked List
B. Node
C. Data
C. Data
The method that inserts a Node after another Node.
A. Push
B. deleteNode
C. insertAfter
C. insertAfter
The method that adds a Node in the beginning of the Linked List.
A. Node
B. Data
C. Push
C. Push
A first-in-first-out (FIFO) structure.
A. Queue
B. Doubly Linked List
C. Tail
D. Head
A. Queue
Contains an extra pointer, typically called previous pointer, together with next pointer and data which are there in singly linked list.
A. Queue
B. Doubly Linked List
C. Tail
D. Head
B. Doubly Linked List
A part of the Queue where entries are added.
A. Queue
B. Doubly Linked List
C. Tail
D. Head
C. Tail
The first Node in a Linked List.
A. Queue
B. Doubly Linked List
C. Tail
D. Head
D. Head
A part of the Queue where entries are deleted.
A. Queue
B. Doubly Linked List
C. Tail
D. Head
D. Head
A Linked List method that connects a new Node after the last Node in the Linked List.
A. append()
B. d
C. Node
D. InsertAfter()
E. new_Node
A. append()
The parameter for the initial value of the variable data in a Linked List.
A. append()
B. d
C. Node
D. InsertAfter()
E. new_Node
B. d
The constructor method that makes an instance of a Node.
A. append()
B. d
C. Node
D. InsertAfter()
E. new_Node
C. Node()
A linked list method that places a Node after the previous Node.
A. append()
B. d
C. Node
D. InsertAfter()
E. new_Node
D. InsertAfter()
The instance of a newly made Node.
A. append()
B. d
C. Node
D. InsertAfter()
E. new_Node
E. new_Node
A Linked List Method that discards a Node at a given location.
A. deleteNodeAtGivenPos()
B. del
C. return
D. deleteNode()
E. last
A. deleteNodeAtGivenPos()
The Linked List Node to be deleted.
A. deleteNodeAtGivenPos()
B. del
C. return
D. deleteNode()
E. last
B. del
The program statement that gives back the flow of the control to the calling method.
A. deleteNodeAtGivenPos()
B. del
C. return
D. deleteNode()
E. last
C. return
The Linked List Method that discards a Node.
A. deleteNodeAtGivenPos()
B. del
C. return
D. deleteNode()
E. last
D. deleteNode()