BCA3CC14 - Data Structure Using C
BCA3CC14 - Data Structure Using C
(3rd Semester)
BACHELOR OF COMPUTER APPLICATIONS Paper
No.: BCA/3/CC/14
(Data Structure using C)
Full Marks: 75
Time: 3 hours
(PART: A-OBJECTIVE)
(Marks: 25)
The figures in the margin indicate full marks for the questions
SECTION-A
(Marks: 15)
II. State whether the following statements are True(T) or False (F) by putting a Tick (√) mark
in the brackets provided: 1x5=5
(Marks: 10)
(Marks: 50)
The figures in the margin indicate full marks for the questions
1. (a) What are different types of data structure? Explain by giving a suitable example. (5)
(b) Explain the operations that can be performed on various data structures. (5)
OR
(c) Write any five advantages of pointers. (6)
(d) Explain the format for declaration and initialization of pointer variable. (4)
4. (a) Consider a singly linked list with four items. Write the steps for inserting a new node at
the front-end. (5)
(b) Write a C function to insert a node in a doubly linked list from the rear-end. (5)
OR
(c) Consider a circular linked list with four items. Write the steps for inserting an item at
the front-end. (5)
(d) Write a C function to delete a node in a singly linked list from the front-end. (5)
5. (a) Traverse the following graph by breadth-first search and print all the vertices
reachable from start vertex 0. Resolve ties by the vertex ascending order. (7)
(b) Traverse the following tree using In-order traversal methods. (3)
OR
OR
(c) Traverse the following graph by depth-first search and print all the vertices reachable
from start vertex 0. Resolve ties by the vertex ascending order. (7)
(d) Traverse the following tree using post-order traversal methods. (3)
(4)