B.C.A. (Sem-II)
END SEMESTER EXAMINATION - 2020
DATA STRUCTURE
2BCA-2
TIME: 3 HOURS MAXIMUM MARKS: 70
NOTE: Candidates are required to give answer in their own words as far as practicable.
The questions are of equal value
The questions are of equal value
Answer any five questions.
Q-1 Choose the correct alternative from the following
(i) Which of these best describe an array?
- A data structure that shows a hierarchical behaviour
- Container of objects of similar types
- Arrays are immutable once intialised
- Array is not a data structure
(ii) Which of the following concepts make extensive use of arrays?
- Binary trees
- Scheduling of processes
- Caching
- Spatial locality
(iii) What are the disadvantages of arrays?
- Data structure like queue or stack cannot be implemented
- There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size
- Index value of an array can be negative
- Elements are sequentially accessed
(iv) Process of inserting an element in stack is called
- Create
- Push
- Evaluation
- Pop
(v) Pushing an element into stack already having five elements and stack size of 5, then stack becomes
- Overflow
- Crash
- Underflow
- Userflow
(vi) The postfix from of the expression (A + B) (CD-E)*F/G is
- AB + CD*E - FG/**
- AB + CD*E - F**G/
- AB + CD*E -*F*G/
- AB + CDE* - F*G/
(vii) What data structure would you mostly likely see in a non recursive Implementation of a recursive algorithm?
- Linked List
- Stack
- Queue
- Tree
(viii) The data structure required for Breadth First Traversal on a graph is?
- Stack
- Array
- Queue
- Tree
(ix) Circular Queue is also known as
- Ring Buffer
- Square Buffer
- Reactangle Buffer
- Curve Buffer
(x) A Linear collection of data elements where the linear node is given by means of pointer is called?
- Linked List
- Node list
- Primitive list
- Unordered list
(xi) Linked lists are not suitable to for the implemetation of?
- Insertion sort
- Radix sort
- Polynomial manipulation
- Binary search
(xii) How many children does a binary tree have?
- 2
- any number of children
- 0 or 1 or 2
- 0 or 1
(xiii) The number of edges from the root to the note is called of the tree
- Height
- Depth
- Length
- Width
(xiv) What is an AVL tree?
- a tree which is balanced and is a height balanced tree
- a tree which is unbalanced and is a height balanced tree
- a tree with three children
- a tree with atmost 3 children
Q-2 Write the algorithm to convert given infix expression to prefix expression.
Q-3 Write a function to remove last node of singly linked list and add it at the begining.
Q-4 What is the double circular linked list? Explain its node structure.
Q-5 What is the graph? Explain its representation techniques.
Q-6 What is an algorithm? How to measure its perfomance?
Q-7 Write a program to perform quick sort
Q-8 Discuss the preorder, in order and post order traversing with suitable example.
Q-9 Write a C program for the addition of two polynomials.
Q10 Write the short notes in the following
- Weighted Graph
- Spanning Tree
- B and B Tree
- Circular Linked List
--x--