Cs Papers
Cs Papers
Cs Papers
SECTION - A
Answer any ten questions. Each question carries two marks. (10x2-20)
1. What are non-linear data structures ? List any two non-linear data structures.
SECTION- B
Answer any five questions. Each question carries ten marks. (5x10-50)
algorithm.
b) Write the C' functions for the following string operations
i) Length of a string.
i) String concatenation.
sort technique. 5
15. a) Write a 'C' program for sorting an array using Bubble
collection. 5
b) Write a note on dynamic memory allocation and garbage
linked
16. a) What is a linked list ? Describe the node of a single linked list and the
5
list operations.
b) Write algorithms for the foliowing single linked list operations 5
SECTION _ A
1. Define data structure. List out any two operations of data structure.
SECTION _ B
I
NP - 315 iillllllt1ilil fi iltil ililtliliiilt
SECTION _ C
t3. What is stack ? Explain PUSH and POP operation algorithm with example. I
16. a) Write an algorithm for bubble sort. 3
b) Sort the following elements using bubble sort. 5
38 47 24 42 17
56 3B 10 65 72 44 50
,*;
10261 0
GS-636 8
II'"*it# :,t.itt'ii1lf t H?#*l e 20 Le
DATA STRUCTURES
BCA 2O3 : Data Structures
Time : 3 Hours Max Marks : 7O
SECTION - A
Answer any 1O questions. 1Ox'2=2O
1. Define data structures.
P.T.O.
I
cs-636 2
Illlfitillllilt]lllililllilttilt
SECTION - B
Answer any 5 questions. 5x1O=5O
13. (a) Explain the classification of data structures in detail. 5
(b) Explain asymptotic notations with an example. o
1s. (a) Define Linked list. Explain various types of Linked list. o
(b) Write an algorithm to insert a node at the beginning of Linked list. o
16. (a) Write an algorithm for Push & Pop Operation of a Stack. 6
(b) Write a C-Program to find GCD of two numbers using recursion. 4
SECTION _ A
3. What is recursion ?
5. Define stack.
P.T.O.
us - 638 Ilillrliltililrtiltilillliltil
SECTION _ B
Max. Marks : 70
Time : 3 Hours
SECTION _ A
(10x2=20)
Answer anY 10 questions.
1. Define data structure'
2. What are linear data structures ? Name any two linear data structure'
3. Define the terms :
i) SPace comPlexitY.
ii) Time comPlexitY.
4. Mention the disadvantages of an array'
i) Graph
ii) Tree.
I SECTION - B
Answer any 5 questions :
(10x5=50)
13' a) Explain various operations performed
on data structures.
5
b) lllustrate asymptotic notations with examples.
5
14' a) write an argor*hm for inserting
an erement into a rinear array.
5
b) write a c program to sofi N elements
using bubble sort. 5
15' a) Explain the node structure
of a singly linked list. Mention the advantages
of linked list over arrays.
5
b) write an atgorithm to insert a node
at the end of the rinked rsit. 5
16. write a menu driven c program to imprement
stack operations. 10
17. a) Explain serection sort argorithm with
an exampre.
5
b) Evaluate the foilowing postfix expression *
65 7g + * gz _ 4s* ++. 5
18. a) Exptain BST.
5
b) write recursive functions for tree traversats.
5
19' a) Explain adjacency matrix
and adjacency list with suitable examples.
5
b) write Depth First search argorithm to
traverse a graph.
5
20. a) Explain any four mathematicat
functions.
4
b) write c functions to implement following
string handling functions.
i) String tength 6
ii) String concatenation.
without using built in functions.
rllililil lril lil ililtililtilil tilt
L6
I Semester B.C.A. Degree Examination, May 2022
(NEP - 2021-22 and Onwards)
COMPUTER SCIENCE
Paper - 1.3 : Data Structures
Time :2Tz Hours Max. Marks : 60
lnstruction : Answer all Sections.
PART -A
l. Answer any 4 of the following : (4x2=8)
1) How to measure the complexity of an algorithm ?
2) What is an Abstract Data type ? Give an example.
3) Explain overflow and underftow conditions in stack. '
4) What is a Binary Search Tree ? Give an example.
, 5) Mention any two types of Graphs.
6) What do you mean by Chaining in Collision Resolution ?
. PART_B
P.T.O.
NP - 164 ilililril ililtil ltfl ililIilil lil
11) Write an Algorithm for lnsertion sort. Give the analysis for lnsertion sort.
12) Write a note on.
a) Adjacency Matrix
b) Adjacency list.
PART _ C
16) Explain heap sort method for the given set of elements. 8
18 32 14 I 45 06 55 16
17) a) Define Hashing. Explain Hash Table and Hash function with
an example. 6
b) List any two Probing Methods. 2
'lB) Construct birlgry tree. Given inorder and Post order traversals. I
lnorder :6 + 2. 319 "/" 2
Post order : 62 + 392 o/" I *