GkSeries.com

Linked Lists MCQs - C Programming Questions and Answers

(1) In linked list representation, a node contains at least
[A] node address field, data field
[B] node number, data field
[C] next address field, information field
[D] none of the above

Comment

Answer: Option [C]
(2) Underflow condition in linked list may occur when attempting to
[A] insert a new node when there is no free space for it
[B] delete a non-existent node in the list
[C] delete a node in empty list
[D] insert a new node in the empty list

Comment

Answer: Option [C]

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

(3) Which of the following is true in case of a null pointer?
[A] Marks the end of a node
[B] Is equal to '\0' in C
[C] Is the address of some node
[D] Is also called the void pointer in C

Comment

Answer: Option [A]
(4) To find out maximum element in a list of n numbers, one needs at least
[A] n comparisons
[B] n-1 comparisons
[C] n(n-1) comparisons
[D] 2n-1 comparisons

Comment

Answer: Option [B]
(5) An array A[15][20] is stored in memory. Each element is of integer type. If ther base address is 600 determine the address of A[8][13] when the array is stored as row major wise
[A] 746
[B] 946
[C] 1146
[D] None of the above

Comment

Answer: Option [B]

Please share this page

Chapters

Click Here to Read more questions

Teacher Eligibility Test