Unit 3: Introduction to Linked Lists - Subjective Questions

INT322 — Computing System And Technologies • Practice Questions with Detailed Answers

20 questions

1

Define a linked list. Explain the structure of a node in a singly linked list and the role of the head pointer.

2

Describe how a singly linked list can be implemented using a self-referential structure. Include the steps required to create the first node.

3

Explain the traversal of a singly linked list. Write an algorithm and state its time and space complexity.

4

Describe the procedure for inserting a new node at the beginning of a singly linked list. Illustrate the pointer changes.

5

Explain how a node is inserted at the end of a singly linked list. Discuss the cases of an empty and a non-empty list.

6

Describe an algorithm to insert a node at a specified position in a singly linked list. Explain how invalid positions should be handled.

7

Explain how the first node is deleted from a singly linked list. Why must the removed node be released?

8

Describe the deletion of the last node from a singly linked list. Explain the special cases that must be considered.

9

Develop an algorithm to delete the first node containing a specified key from a singly linked list. Explain all possible outcomes.

10

What are linked list underflow and overflow conditions? Explain when each condition occurs and how it should be handled.

11

Compare a singly linked list with an array in terms of memory organization, size, access, insertion, and deletion.

12

Define a tree as a data structure. How does a tree differ conceptually from a linear data structure such as a linked list?

13

Explain the tree terms root, edge, parent, child, siblings, and leaf with the help of a suitable example.

14

Define degree, level, depth, and height in a tree. Clearly distinguish the height of a node from the height of a tree.

15

What are a path and a subtree in a tree? Explain how path length is measured and how a subtree is formed.

16

Explain the concept of a binary tree. State important properties of binary trees and distinguish a binary tree from a general tree.

17

Define a binary search tree. Explain its ordering property and describe how searching, insertion, and deletion are conceptually performed.

18

Explain preorder traversal of a binary tree. Give its recursive algorithm and determine the preorder sequence for a tree with root A, children B and C, children D and E under B, and right child F under C.

19

Explain inorder traversal of a binary tree. Give its recursive algorithm and state its special significance for a binary search tree.

20

Explain postorder traversal and compare preorder, inorder, and postorder traversals. Mention one practical use of each traversal.