Linked Lists MCQs - C Programming Questions and Answers

Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

Questions
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

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

Answer: Option [C]
Advertisement
Article and Schedule Quiz Start Test!
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

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

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

Answer: Option [B]

Chapters

Assam Direct Recruitment Test Series

Computer Science Topics