Linked List:: A. Underflow
Linked List:: A. Underflow
14.The function that allocates requested size of bytes and returns a pointer to the first
byte of the allocated space is -
(A) realloc(B) malloc
(C) calloc(D) none of the above
Ans: B
malloc allocates requested size of bytes and returns a pointer to the first byte of the
allocated space
17.Suppose cursor refers to a node in a linked list, what statement changes cursor so that
it refers to the next node?
a. Cursor++ b. Cursor=link
c. Cursor+=link d. Cursor=Cursor->link
18. Consider the following the two statement and choose the correct option:
i. According to access strategies linked list is a linear one
ii. According to storage linked list is a non-linear one
a. (i) is true but(ii) is false
b.(i) is false but (ii) is true
c. Both (i) and(ii) are true
d. Both (i) and(ii) are false
20.When we organize our data as an ordered list, what is the time complexity of
inserting/deleting a data item to/from the list?
a.O(length_of_list*length_of_list)
b. O(length_of_list)
c. O(log(length_of_list * length_of_list))
d. O(1)
21.For the ease of searching in a linked list, the linked list be created in
a. Descending order b. Ascending order
c. Without underflow condition
d. Any order
22.What is the linked list that contains a variablewhose value is the address of the
location of the other node in the list?
a. Integer b. Float
c. char d.Pointer
26. A technique which collects all deleted spaces onto free storage list is called
a. Static memory allocation b. Garbage collection
c. Calloc d. Dynamic memory aloocation
a. Yes b. No
a. Yes b. No
c. Insertion d. Searching
41. Can we delete the head node from single Linked List
a. True b.False
a. Head=NULL b. Head=p
a. True b.False
b. Data elements in linked list need not be stored in adjacent space in memory
d. Linked lists are a collection of the nodes that contain information part and next pointer
53. A linear collection of data elements where the linear node is given by means of
pointer is Called.
a.Linked List
b.node list
c.Primitive list
d.none of these
54. Which of the following operations is performed more efficiently by doubly linked list
than
55. The time required to delete a node x from a doubly linked list having n nodes is
a.O(n) b.O(log n)
c.O(1)d.O(n log n)
57. To delete a node at the beginning of the list, the location of the list is modified as the
address of the.
a. Second element in the list
b. first element in the list
c. last element in the list
d. Middle element in the list
58. in the linked list representation of the stacks, the top of the stack is represented by,
a.the last node
b. any of the nodes
c.first nodes
64.In comparison with sequential representation ,the computing time required for
manipulating the lists is,
a.Lessb.Morec.Equal
65. Having the address of the node to be deleted in doubly linked list,the node can be
deleted.
a. Without traversing the list
b. Only after traversing the list from the head
c. Only after traversing the list from the tail
d. (b) or (c) above
66 .A linked list in which the last node points to the first is called a
a.Doubly linked list
b.Circular linked list
c.Single linked list
d.Generalized linked list
72. ……………… data structure can be implemented using Circular linked list
a. Stack b. Queue
c. Tree d. Graph
81.How many fields are required by a node to represent the polynomials in computer
memory using linked list?
a. Two field b. Three field
c. More than three field
d. One is enough
82 .Consider a linked list of n element which is pointed by an external pointer. What is the
time taken to delete the element which is successorof the element pointed to by a given
pointer ?
a. O(1) b. O(log2n)
c. O(n) d.O(nlog2n)
82. A linear collection of data element the linear node is given by mean of pointer is
called
84. Given 2 sorted list of size'm' and 'n' respectively.Number of comparison needed in the
worst case by the merge sort alogrithm will be
a. mn b. Max(m,n)
c. Min(m,n) d. m+n-1