Bca Bca 302 Data Structure With C 2011
Bca Bca 302 Data Structure With C 2011
com
Name : …………………………………………….………………
Roll No. : …………………………………………...……………..
Invigilator’s Signature : ………………………………………..
CS/BCA/SEM-3/BCA-302/2011-12
2011
DATA STRUCTURE WITH C
Time Allotted : 3 Hours Full Marks : 70
GROUP – A
( Multiple Choice Type Questions )
1. Choose the correct alternatives for any ten of the following :
10 × 1 = 10
i) Let q be the queue of integers defined as follows :
#define MAX10
struct queue
{ int data [MAX];
int rear, front;
} q;
To insert an element into the queue, we may write operation
a) ++q.data[q.rear]=x;
b) q.data[q.rear]++=x;
c) q.data[++q.rear]=x;
d) none of these.
ii) The tree traversal technique in which the root is
traversed after its children is known as
a) post-order traversal b) pre-order traversal
c) in-order traversal d) none of these.
c) 2k – 1 d) none of these.
v) The best case complexity of insertion sort is
a) O ( n2 ) b) O ( log n )
c) O(n) d) O ( n log n ).
vi) Graph is a
a) linear data structure
b) non-linear data structure
c) either (a) or (b) depending on situation
d) none of these.
vii) Stack works on
a) LIFO b) FIFO
c) both (a) and (b) d) none of these.
viii) A linked list follows
a) random access mechanism
b) sequential access mechanism
c) no access mechanism
d) none of these.
ix) The best data structure to see whether an arithmetic
expression has balanced parenthesis is a
a) stack b) queue
c) tree d) list.
x) The total number of comparisons in bubble sort is
a) O ( n log 2n ) b) O ( 2n )
n
c) O ( n2 ) d) O ( 2 ).
3131 2
CS/BCA/SEM-3/BCA-302/2011-12
3131 4