Algorithm MCQs:-
- What is a linked list? a) A linear data structure where elements are stored contiguously b) A linear data structure where elements are linked using pointers c) A nonlinear data structure where elements are linked using pointers d) A nonlinear data structure where elements are stored contiguously
Answer: b) A linear data structure where elements are linked using pointers
- What is the advantage of linked list over arrays? a) Fixed size b) Ease of random access c) Dynamic size d) No extra memory space required
Answer: c) Dynamic size
- What is the drawback of linked list compared to arrays? a) Ease of insertion/deletion b) Fixed size c) Random access is not allowed d) No extra memory space required
Answer: c) Random access is not allowed
- How is a linked list represented in C? a) As an array b) As a pointer to the last node of the linked list c) As a pointer to the first node of the linked list d) As a binary tree
Answer: c) As a pointer to the first node of the linked list
- What is the name given to the first node of a linked list? a) Tail b) Root c) Head d) Trunk
Answer: c) Head
- What is stored in each node of a linked list? a) The position of the next node b) The value of the previous node c) The value of the current node and the position of the next node d) The value of the current node and a pointer to the next node
Answer: d) The value of the current node and a pointer to the next node
- What is the name given to the pointer that points to the next node in a linked list node? a) Prev b) Next c) Current d) Tail
Answer: b) Next
- Which of the following operations are supported by linked lists? a) Random access b) Insertion c) Deletion d) All of the above
Answer: d) All of the above
- What is the memory requirement for each element in a linked list? a) Only the size of the data element b) Only the size of the pointer element c) Both the size of the data element and the size of the pointer element d) None of the above
Answer: c) Both the size of the data element and the size of the pointer element
- Which of the following data structures is best suited for implementing a stack? a) Linked list b) Array c) Binary tree d) Queue
Answer: a) Linked list
Similar posts:-
- C-programming MCQs part-1
- C-programming MCQs part-2
- C-programming MCQs part-3
- C-programming MCQs part-4
- C-programming MCQs part-5
- C-programming MCQs part-6
- COA MCQs part-1
- COA MCQs part-2
- COA MCQs part-3
- COA MCQs part-4
Must check this :-
- Microprocessor 8085 MCQs part-1
- Microprocessor 8085 MCQs part-2
- Microprocessor 8085 MCQs part-3
- CSS MCQs part-1
- CSS MCQs part-2
- CSS MCQs part-3
- CSS MCQs part-4
- CSS MCQs part-5
- Engineering Mathematics -II MCQs part-1
- Engineering Mathematics -II MCQs part-2
- Engineering Mathematics -II MCQs part-3
- Engineering Mathematics -II MCQs part-4
- Engineering Mathematics -II MCQs part-5
- Operating system MCQs part-1
- Operating system MCQs part-2
- Operating system MCQs part-3
- Operating system MCQs part-4
- Operating system MCQs part-5
0 Comments