Degree Exit Exam Sample Questions
Degree Exit Exam Sample Questions
Degree Exit Exam Sample Questions
[A] p = &A[0]; t = B;
[B] p = A; t = B;
[C] p = A; t = &B[0][0];
[D] None of the above
2. The initial configuration of the queue is a,b,c,d (a is the front end). To get the
configuration d,c,b,a one needs a minimum of ?
3. Which of the following algorithm design technique is used in the quick sort algorithm?
[A] Dynamic programming
[B] Backtracking
[C] Divide and conquer
[D] Greedy method
4. Given two sorted lists of size m and n respectively. The number of comparisons needed
in the worst case by the merge sort algorithm will be?
[A] mn
[B] max(m,n)
[C] min(m,n)
[D] m+n-1
A.((((a+i)+j)+k)+l) B.*(*(*(*(a+i)+j)+k)+l)
C.(((a+i)+j)+k+l) D.((a+i)+j+k+l)
9. A pointer is
A.A keyword used to create variables
B.A variable that stores address of an instruction
C.A variable that stores address of other variable
D.All of the above
10. The operator used to get value at address stored in a pointer variable is
A.* B.&
C.&& D.||
11. Which of the following is not the required condition for binary search algorithm?
a. The list must be sorted
b. there should be the direct access to the middle element in any sublist
c. There must be mechanism to delete and/or insert elements in list
d. none of above
12. When inorder traversing a tree resulted E A C K F H D B G; the preorder traversal would
return
a. FAEKCDBHG
b. FAEKCDHGB
c. EAFKHDCBG
d. FEAKDCHBG
13. Inserting an item into the stack when stack is not full is called …………. Operation and
deletion of item from the stack, when stack is not empty is called ………..operation.
A) push, pop
B) pop, push
C) insert, delete
D) delete, insert
14. Given the following fragmented C++ program
18. The number of possible ordered trees with three nodes A, B, C is?
[A] 16
[B] 12
[C] 6
[D] 10