Step-by-Step Textbook Solutions for Class 12 Computer Science Chapter 03 Data Structures and Operations
Review structured textbook solutions for Class 12 Computer Science Chapter 03 Data Structures and Operations. Built according to Kerala Board guidelines for the 2026-27 academic year, these downloadable answers support daily revision and problem-solving accuracy.
Download Chapter 03 Data Structures and Operations Textbook Solutions PDF
View or download the dedicated Chapter 03 Data Structures and Operations solution resource below. Engaging with these textbook answers under focused study conditions ensures continuous academic progress and mastery of the 2026-27 curriculum for Computer Science.
One Mark Questions and Answers
Question 1: Write down the full form of FIFO.
Answer:
First In First Out
Exam Tips:
a) FIFO is the working principle of a queue; LIFO (Last In First Out) is that of a stack. Do not mix them up.
Question 2: A queue is implemented in a ………… manner.
(a) FIFO
(b) FILO
(c) LIFE
(d) LILO
Answer:
(a) FIFO
Exam Tips:
a) In a queue the element that enters first leaves first, just like people in a ticket line.
Question 3: People waiting at a cinema theatre counter to take tickets is an example of …………
(a) stack
(b) queue
(c) array
(d) none of these
Answer:
(b) queue
Exam Tips:
a) Any real-life line where the first person is served first is an example of a queue.
Question 4: A linked list is a linear collection of data elements called ………….
Answer:
Nodes
Exam Tips:
a) Each node has two parts: the data and a link (pointer) to the next node.
Question 5: A stack can grow or shrink, so it can be considered a ……………… data structure.
Answer:
Dynamic
Exam Tips:
a) A data structure whose size can change during program execution is called dynamic; one with a fixed size is static.
Question 6: A data structure in which elements are not arranged in a sequence is called a ………… data structure.
(a) Heterogeneous data structure
(b) Synthetic data structure
(c) Linear data structure
(d) Non-linear data structure
Answer:
(d) Non-linear data structure
Exam Tips:
a) Linear: elements in a sequence (array, stack, queue, linked list). Non-linear: no sequence (tree, graph).
Question 7: Consider the following two statements.
(i) The memory size of dynamic data structures can be changed during execution.
(ii) Static data structures are associated with primary memory.
(a) Statement (i) and statement (ii) are not true
(b) Statement (i) is true and statement (ii) is false
(c) Statement (i) is false and statement (ii) is true
(d) Statement (i) and statement (ii) are false
Answer:
(b) Statement (i) is true and statement (ii) is false
Exam Tips:
a) Check each statement separately before reading the options; options (a) and (d) mean the same thing, so neither can be the single correct answer.
b) Arrays and files are static data structures; files are kept in secondary memory.
Question 8: ……………… is a data structure in which items are added at one end and removed from the other.
(a) Stack
(b) Queue
(c) List
(d) None of the above
Answer:
(b) Queue
Exam Tips:
a) In a queue, insertion is at the rear and deletion is at the front; a stack uses only one end (top).
Question 9: …………………. is very useful in situations where data have to be stored and then retrieved in reverse order.
(a) Stack
(b) Queue
(c) List
(d) Linked list
Answer:
(a) Stack
Exam Tips:
a) "Reverse order" is the key phrase for a stack, because the last item pushed is the first popped.
Question 10: Which of the following data structures is linear?
(a) Graph
(b) Trees
(c) Binary tree
(d) Stack
Answer:
(d) Stack
Exam Tips:
a) Trees, binary trees and graphs are all non-linear; stack, queue and linked list are linear.
Question 11: Combining the elements of two sorted data structures to form a new one is referred to as
(a) Merging
(b) Sorting
(c) Traversal
(d) Searching
Answer:
(a) Merging
Exam Tips:
a) Remember the six operations on data structures: traversing, searching, inserting, deleting, sorting and merging.
Question 12: Which term is applicable to the stack data structure?
(a) LILO
(b) FILO
(c) LIFO
(d) FIFO
Answer:
(c) LIFO
Exam Tips:
a) LIFO (Last In First Out) is the standard term for a stack; FILO means the same, but textbooks use LIFO, so choose it when both appear.
Question 13: Placing glasses one above another can be considered similar to the ……….. data structure.
(a) Queue
(b) Stack
(c) Record
(d) Graph
Answer:
(b) Stack
Exam Tips:
a) Things piled one on top of another (glasses, plates, books) are taken from the top, so they model a stack.
Question 14: Each node containing data and a pointer to the next node is a feature of the …………. data structure.
(a) Array
(b) Linked List
(c) Stack
(d) Queue
Answer:
(b) Linked List
Exam Tips:
a) A linked list uses pointers to connect nodes, so its elements need not be in consecutive memory locations.
Question 15: Identify and correct the mistake in the following stack PUSH algorithm:
start
if stack is full
return null
endif
top = top - 1
stack[top] = data
stop
Answer:
The statement top = top - 1 is wrong. It should be replaced by top = top + 1, because top must move up before the new data is stored.
Exam Tips:
a) In PUSH, top is increased (top + 1); in POP, top is decreased (top - 1).
Question 16: People waiting at a cinema theatre counter to take tickets is an example of ………………
(a) stack
(b) queue
(c) array
(d) none of these
Answer:
(b) queue
Exam Tips:
a) The person who comes first gets the ticket first, which is the FIFO principle of a queue.
Two Mark Questions and Answers
Question 17: A word, say "computer", is stored in an array. Another array is to be created by storing the reverse of the word. How can a stack help you perform this task? Explain the algorithm.
Answer:
Read the word "computer" character by character and push each character onto a stack. When the whole word has been pushed, pop the characters one by one and store them in the new array. Since a stack works on the LIFO principle, the characters come out in reverse order, giving "retupmoc".
Exam Tips:
a) Mention both operations clearly: push every character, then pop every character.
b) Show the final output "retupmoc" to prove the reversal.
Question 18: Name the principle by which tickets are issued at a cinema ticket counter. Which data structure supports this principle?
Answer:
Tickets are issued on the FIFO (First In First Out) principle, which is supported by the queue data structure. New persons join at the rear end and tickets are issued at the front end.
Exam Tips:
a) Write both parts of the answer: the principle (FIFO) and the data structure (queue).
b) Mention the two ends, rear (insertion) and front (deletion).
Question 19: Define stack. Write a short note on stack.
Answer:
A stack is a linear data structure in which items can be added or removed only at one end, called the top. Adding an item to the stack is called push and removing an item from the stack is called pop. It follows the LIFO (Last In First Out) principle.
Exam Tips:
a) Use the key terms top, push, pop and LIFO in the answer.
b) A simple example like a pile of plates makes the note complete.
Question 20: Write a short note on queue.
Answer:
A queue is a linear data structure in which items are added at one end, called the rear, and removed from the other end, called the front. It has two operations: insertion (adding an item at the rear) and deletion (removing an item from the front). It follows the FIFO principle.
Exam Tips:
a) Name both ends (front and rear) and both operations (insertion and deletion).
b) Contrast it with a stack, which uses only one end.
Question 21: Write an algorithm for the PUSH operation on a stack.
Answer:
Step 1: If top = N, then print "OVERFLOW" and return
Step 2: Set top = top + 1
Step 3: Set Stack[top] = item
Step 4: Stop
Exam Tips:
a) Always check for overflow (stack full) first; this step carries marks.
b) Increase top before storing the item.
Question 22: Write an algorithm for the POP operation on a stack.
Answer:
Step 1: If top = Null, then print "UNDERFLOW" and return
Step 2: Set item = Stack[top]
Step 3: Set top = top - 1
Step 4: Stop
Exam Tips:
a) Check for underflow (stack empty) before removing.
b) Take the item out first, then decrease top.
Question 23: A linked list containing the names of all students in your class is to be created. Write the C++ structure to define the node.
Answer:
struct node
{
char name[15];
node *link;
};
Exam Tips:
a) A self-referential structure has a pointer (node *link) to its own type; this is what makes the linked list.
b) Do not forget the semicolon after the closing brace of a structure.
Question 24: Write a short note on circular queue.
Answer:
A circular queue is a linear data structure in which operations are performed on the FIFO (First In First Out) principle, and the last position is connected back to the first position to form a circle. This allows the empty positions at the front to be reused.
Exam Tips:
a) Mention that the last position is linked back to the first, which solves the problem of unused space in a linear queue.
Question 25: With a suitable diagram and notes, explain the different classifications of data structures.
Answer:
Data structures are classified as follows:
1. Simple data structures: these are built from primitive data types. Examples: array and structure.
2. Compound data structures: these are formed by combining simple data structures. They are of two types:
a) Linear: elements are arranged in a sequence. Examples: stack, queue and linked list.
b) Non-linear: elements are not arranged in a sequence. Examples: tree and graph.
Data structures can also be classified as static (memory size fixed before execution, e.g. arrays) and dynamic (memory size can change during execution, e.g. linked lists).
Exam Tips:
a) Draw the tree diagram neatly; it carries most of the marks.
b) Give at least one example under each category.
c) Mention static and dynamic data structures as an additional classification.
Three Mark Questions and Answers
Question 26: Write an algorithm for inserting an element into a queue.
Answer:
Step 1: If front = 1 and rear = N, or front = rear + 1, then print "OVERFLOW" and return
Step 2: If front = Null, then set front = 1 and rear = 1
Else if rear = N, then set rear = 1
Else set rear = rear + 1
End if
Step 3: Set Queue[rear] = item
Step 4: Stop
Exam Tips:
a) This algorithm is for a circular queue, so when rear reaches N it goes back to 1.
b) Write the overflow check as the first step.
Question 27: Write an algorithm for deleting an element from a queue.
Answer:
Step 1: If front = Null, then print "UNDERFLOW" and return
Step 2: Set item = Queue[front]
Step 3: If front = rear, then set front = Null and rear = Null
Else if front = N, then set front = 1
Else set front = front + 1
End if
Step 4: Stop
Exam Tips:
a) When front = rear, the queue had only one element, so after deleting it both pointers become Null.
b) Check for underflow first.
Question 28: Write the steps for inserting a new element into a queue.
Answer:
Step 1: If front = 1 and rear = N, or front = rear + 1, then print "OVERFLOW" and return
Step 2: If front = Null, then set front = 1 and rear = 1
Else if rear = N, then set rear = 1
Else set rear = rear + 1
End if
Step 3: Set Queue[rear] = item
Step 4: Stop
Exam Tips:
a) New elements are always added at the rear end.
b) Do not forget the case of an empty queue (front = Null), where both front and rear become 1.
Question 29: Write the steps for deleting an element from a queue.
Answer:
Deletion is the process of removing a data item from the front of the queue. If the queue is empty and we try to delete an item, it causes queue underflow. The algorithm is:
Step 1: If front = Null, then print "UNDERFLOW" and return
Step 2: Set item = Queue[front]
Step 3: If front = rear, then set front = Null and rear = Null
Else if front = N, then set front = 1
Else set front = front + 1
End if
Step 4: Stop
Exam Tips:
a) Begin with a one-line definition of deletion and underflow before the steps.
b) Elements are always removed from the front end.
Question 30: Write the steps for deleting a node from a linked list.
Answer:
Deletion is the removal of a node from the linked list. To delete the node at position POS:
Step 1: Get the addresses of the previous node (POS - 1) and the next node (POS + 1) in the pointers PreNode and PostNode respectively.
Step 2: Copy the contents of PostNode into the link part of the node at position (POS - 1).
Step 3: Free the node at position POS.
Exam Tips:
a) The key step is linking the previous node directly to the next node so the list is not broken.
b) Always free the memory of the deleted node.
Five Mark Questions and Answers
Question 31: Prepare a short note on all the operations associated with data structures.
Answer:
Operations on data structures:
1. Traversing - accessing, visiting or reading all the elements of a data structure.
2. Searching - finding a particular element in a data structure.
3. Inserting - adding new data at a particular location.
4. Deleting - removing a particular element from the data structure.
5. Sorting - arranging the elements in a particular order (ascending or descending). Examples are bubble sort and selection sort.
6. Merging - combining two sorted data structures to form a new one.
Exam Tips:
a) List all six operations with a one-line definition each.
b) Give an example where possible, such as bubble sort for sorting.
Question 32: You are given a queue of 50 students. Who will get the first chance and who will be in the last position if the queue is in linear form?
1. At which position do you add a new student?
2. From which position do you remove a student?
3. Which operations are performed for this purpose?
4. Write all the steps for adding a new student to the queue.
5. Write all the steps for removing a student from the queue.
Answer:
The student at the front (the one who joined first) gets the first chance, and the student who joined last is in the last (rear) position.
1. At the back, that is, the rear position.
2. From the front position.
3. Adding a new student to the queue is insertion, and removing a student from the queue is deletion.
4. Step 1: If front = 1 and rear = N, or front = rear + 1, then print "OVERFLOW" and return
Step 2: If front = Null, then set front = 1 and rear = 1
Else if rear = N, then set rear = 1
Else set rear = rear + 1
End if
Step 3: Set Queue[rear] = item
Step 4: Stop
5. Step 1: If front = Null, then print "UNDERFLOW" and return
Step 2: Set item = Queue[front]
Step 3: If front = rear, then set front = Null and rear = Null
Else if front = N, then set front = 1
Else set front = front + 1
End if
Step 4: Stop
Exam Tips:
a) Answer each sub-part with its number so none is missed.
b) Insertion happens at the rear and deletion at the front; this is the FIFO principle.
Question 33: The class teacher asked the class leader to collect the observation books and place them on a table one by one. The teacher will take the books one by one, always from the top. Suppose the books are arranged in linear form from bottom to top.
1. At which position can a new book be placed?
2. How can a book be taken from this pile?
3. Which operations are performed for this purpose?
4. Write all the steps for adding new books to this pile.
5. Write all the steps for removing books one by one from this pile.
Answer:
1. At the top.
2. From the top.
3. Placing a new book is the push operation and taking a book from the pile is the pop operation (the pile works as a stack).
4. Push:
Step 1: If top = N, then print "OVERFLOW" and return
Step 2: Set top = top + 1
Step 3: Set Stack[top] = item
Step 4: Stop
5. Pop:
Step 1: If top = Null, then print "UNDERFLOW" and return
Step 2: Set item = Stack[top]
Step 3: Set top = top - 1
Step 4: Stop
Exam Tips:
a) Recognise that a pile of books is a stack (LIFO), not a queue.
b) Use overflow in push and underflow in pop; mixing them up is a common mistake.
Free study material for Computer Science
Computer Science Class 12 Curriculum Solutions: Chapter 03 Data Structures and Operations
Textbook Solutions for Class 12 Computer Science Chapter 03 Data Structures and Operations
Access structured Kerala Board textbook solutions for Chapter 03 Data Structures and Operations. Designed in alignment with the latest academic curriculum for Class 12 Computer Science, these answers cover all end-of-chapter exercises to support daily learning and homework completion.
Mastering Theoretical and Practical Questions
Clear, methodical explanations accompany every challenging problem within the Class 12 Computer Science text. Engaging with these detailed answers lays a solid foundation for advanced learning and improves foundational clarity for upcoming assessments.
Effective Self-Study and Homework Assistance
Consistent practice with these solution guides cultivates faster problem-solving habits and clearer logical structuring. For a complete preparation experience, pair these textbook answers with our dedicated revision notes and sample papers for Class 12 Computer Science.
FAQs
The complete and updated Kerala Plus Two Computer Science Chapter 3 Data Structures and Operations Questions and Answers is available for free on StudiesToday.com. These solutions for Class 12 Computer Science are as per latest Kerala Board curriculum.
Yes, our experts have revised the Kerala Plus Two Computer Science Chapter 3 Data Structures and Operations Questions and Answers as per 2026 exam pattern. All textbook exercises have been solved and have added explanation about how the Computer Science concepts are applied in case-study and assertion-reasoning questions.
Toppers recommend using Kerala Board language because Kerala Board marking schemes are strictly based on textbook definitions. Our Kerala Plus Two Computer Science Chapter 3 Data Structures and Operations Questions and Answers will help students to get full marks in the theory paper.
Yes, we provide bilingual support for Class 12 Computer Science. You can access Kerala Plus Two Computer Science Chapter 3 Data Structures and Operations Questions and Answers in both English and Hindi medium.
Yes, you can download the entire Kerala Plus Two Computer Science Chapter 3 Data Structures and Operations Questions and Answers in printable PDF format for offline study on any device.