0% found this document useful (0 votes)
134 views

Data Structure Using C NCS301 PDF

1) The document contains a theory examination question paper for a Data Structures using C course. It has 7 sections with multiple choice and long answer questions. 2) The questions cover topics like asymptotic notations, stack and queue implementations, tree traversals, linked lists, hashing, sorting algorithms and minimum spanning trees. 3) Students have to attempt questions from each section, with choices given for some longer answer questions. The paper tests the students' understanding of fundamental data structures concepts.

Uploaded by

avinas_3mar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
134 views

Data Structure Using C NCS301 PDF

1) The document contains a theory examination question paper for a Data Structures using C course. It has 7 sections with multiple choice and long answer questions. 2) The questions cover topics like asymptotic notations, stack and queue implementations, tree traversals, linked lists, hashing, sorting algorithms and minimum spanning trees. 3) Students have to attempt questions from each section, with choices given for some longer answer questions. The paper tests the students' understanding of fundamental data structures concepts.

Uploaded by

avinas_3mar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Printed Page: 1 of 2 

Subject Code: NCS301


0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0

BTECH
(SEM III) THEORY EXAMINATION 2021-22
DATA STRUCTURE USING C
 
Time: 3 Hours Total Marks: 100
Note: Attempt all Sections. If require any missing data; then choose suitably.
SECTION A
1. Attempt all questions in brief. 2 x 10 = 20
a. Define Data Structures and also the need of data structure.
b. What do you mean by time space trade off?
c. Differentiate between linked list and array.
d. What do you mean by collision in hashing?
e. What is the advantage of using Circular Queue over linear Queue?
f. Define priority queue and its uses?
g. List any two difference between graph and tree.
h. What are the disadvantages of representing binary tree using array?
i. What do you mean by in place sorting algorithm?
j. List any two difference between stack and queue?
SECTION B
2. Attempt any three of the following: 10x3=30

2
2
a. Explain asymptotic notations? Show relationship between f(n) and g(n) in each notation.

1.
03

b. Write the push and pop functions in C simulating push and pop operations of stack

24
implemented using an array.
2_

c. Explain tree traversal techniques and also write algorithm of various tree traversal

5.
2P

techniques.

.5
d. Write algorithm of DFS.
P2

e. 17
Construct AVL tree with the following keys 35, 44, 80, 85, 67,89,25,16,10,14.
Q

|1

SECTION C
12

3. Attempt any one part of the following: 10x1=10


6:
:4

a. Write C functions to insert a node at the beginning and delete the last node from a doubly
linked list. Also state the advantages and disadvantages of doubly linked list.
13

b. An array ARR[30][20] is stored in the memory with each element occupying 4 bytes and
2

base address is 1000. Find out the address of the index ARR [22][15] using row major order
02

(0 indexing is used).
-2

4. Attempt any one part of the following: 10x1=10


ar
M

a. Convert the following infix expression into postfix expression using stack
9-

X + (Y * Z ^ D) + E / W *(F /H)
b. Explain circular queue and write program of enqueue and dequeue operations of circular
|2

queue?

5. Attempt any one part of the following: 10x1=10


a. Describe Huffman algorithm with the help of example.
b. Construct binary tree with following traversals:
Inorder: B C A E G D H F I J
Preorder: A B C D E G F H I J
Also find Post order traversal of it.

Page 1 of 2 
 
QP22P2_032 | 29-Mar-2022 13:46:12 | 117.55.241.2
Printed Page: 2 of 2 
Subject Code: NCS301
0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0

BTECH
(SEM III) THEORY EXAMINATION 2021-22
DATA STRUCTURE USING C
 
6. Attempt any one part of the following: 10x1=10
a. Apply Kruskal algorithm to calculate the cost of the minimum spanning tree for below
graph.

b. Write Dijkstra algorithm for single source shortest path.

7. Attempt any one part of the following: 10x1=10


a. Write algorithm of quick sort? Trace your algorithm on the following data elements to sort
the list in ascending order:
2, 16, 5, 21, 7, 57, 52, 85, 69, 1, 9, 10.

2
b. Explain hashing and various collision resolution techniques with example?
2

1.
03

24
2_

5.
2P

.5
P2

17
Q

|1
12
6:
:4
13
2
02
-2
ar
M
9-
|2

Page 2 of 2 
 
QP22P2_032 | 29-Mar-2022 13:46:12 | 117.55.241.2

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy