DAA With Ans Wheebox
DAA With Ans Wheebox
testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Seat No -
Total number of questions : 60
1) All questions are Multiple Choice Questions having single correct option.
7) Use only black/blue ball point pen to darken the appropriate circle.
A : O(N)
B : O(N*log(N))
C : O(N * Sqrt(N))
D : O(N*N)
Q.no 2. The best suited algorithm could be decided using proof technique
A : false
B : true
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 1/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:
A : true
B : false
C:
D:
Q.no 4. Running time of algorithm varies with the size of the input called____
A : Growth of Function
B : Order of growth
C : Growth Rate
A : roots
B : leaves
Q.no 6. Which is the process of executing a correct program on data sets and
measuring the time and space it takes tocompute the results.
A : Debugging
B : Profiling
C : Conquer
D : Combining
Q.no 7. Which of the following problems should be solved using dynamic programming?
A : Mergesort
B : Binary search
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 2/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Quicksort
A : O(1)
B : O(log n)
C : O(n)
D : O(n^2)
Q.no 10. What is order of resultant heap after merging two trees of order k in binomial heap?
A : 2*k
B : k+1
C : k*k
D : k + log k
Q.no 11. Fibonacci heap has better amortized running time compared to a binomial heap.
A : true
B : false
C:
D:
A : Greedy Technique
B : Dynamic Programming
C : Linear Programming
D : Backtracking
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 3/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 13. With minimal weighted external path length obtained by an optimal set Huffman codes
are the applications of?
A : BST
B : MST
C : Binary Tree
D : Weighted Graph
Q.no 16. The algorithm that do NOT have O(1) time complexity is____
D : Addition of n numbers
C : A recursive function where the function doesn’t return anything and just prints the values
D : A function where the recursive call is the last thing executed by the function
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 4/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Switch Case
B : Loop
C : If else
D : if elif else
Q.no 20. Which of the following methods can be used to solve the longest common subsequence
problem?
A : Not Recursion
B : Dynamic Programming
D : Greedy Algorithm
A : All problems in P
D : Halting problem
Q.no 22. Mathematical induction allows us to prove the correctness and efficiency of algorithm
both
A : true
B : false
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 5/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 23. What will be the position of 6, when a max heap is constructed on the input elements 6,
71, 46, 8, 13, 16, 14, 66, 31, 27?
Q.no 24. Which of the following is/are property/properties of a dynamic programming problem?
A : Evolutionary Approach
C : Greedy Approach
A : Process
B : Work
C : Thread
D : Span
Q.no 26. The main time taking step in fractional knapsack problem is
C : Sorting
Q.no 27. If txt[] = "THIS IS A TEST TEXT" and pat[] = "TEST", what will be the index of
pattern?
A:9
B : 13
C : 11
D : 10
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 6/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 28. Loop invariant is inert assertion and not useful in analysis of program.
A : true
B : false
C:
D:
B : Recursive functions usually take more memory space than non-recursive function
Q.no 30. Which of the following problems is equivalent to the 0-1 Knapsack problem?
A : You are given a bag that can carry a maximum weight of W. You are given N items which have a
weight of {w1, w2, w3,…., wn} and a value of {v1, v2, v3,…., vn}. You can break the items into
smaller pieces. Choose the items in such a way that you get the maximum value
B : You are studying for an exam and you have to study N questions. The questions take {t1, t2, t3,….,
tn} time(in hours) and carry {m1, m2, m3,…., mn} marks. You can study for a maximum of T hours.
You can either study a question or leave it. Choose the questions in such a way that your score is
maximized
C : You are given infinite coins of denominations {v1, v2, v3,….., vn} and a sum S. You have to find
the minimum number of coins required to get the sum S
D : You are given a suitcase that can carry a maximum weight of 15kg. You are given 4 items which
have a weight of {10, 20, 15,40} and a value of {1, 2, 3,4}. You can break the items into smaller
pieces. Choose the items in such a way that you get the maximum value
D : Easy Network
A : log n
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 7/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B:n
C : n log n
D : n/2
Q.no 33. Which of the following statement about 0/1 knapsack and fractional knapsack problem
is correct?
A : In 0/1 Knapsack Problem Items Are Divisible And In Fractional Knapsack Items Are Indivisible
C : 0/1 Knapsack Is Solved Using A Greedy Algorithm And Fractional Knapsack Is Solved Using
Dynamic Programming
D : In 0/1 Knapsack Problem Items Are Indivisible And In Fractional Knapsack Items Are Divisible
Q.no 34. The Knapsack problem where the objective function is to minimize the profit is______
A : Greedy
B : Dynamic Programming
C : Back Tracking
Q.no 35. Choose the correct steps required to prove that a problem is NP complete?
A : 1. prove that problem is in P 2. Prove that every problem in P is reducible to the problem in
question in polynomial time.
B : 1.prove that problem is in P 2. Prove that the problem in question is reducible to any problem in P
in polynomial time.
C : 1.prove that problem is in NP 2. Prove that every problem in NP is reducible to the problem in
question in polynomial time.
D : 1.prove that problem is P 2. Prove that the problem in question is reducible to any problem in P in
polynomial time.
Q.no 36. To prove the statement " There are infinitely many prime numbers" by contradiction
what is the assumption for P?
A : P is infinite set
B : P is finite set
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 8/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Parallel Programming
B : Dynamic Programming
C : Serial Programming
D : Multiprogramming
Q.no 38. Arrange following from highest to lowest order by complexity wise A log n B n! C nlogn
A : A,B, C
B : B, C, A
C : C, B ,A
D : B,A, C
Q.no 39. What are desirable characteristics of Algorithm with efficiency 1)Generality 2)
Availability 3) Simplicity
A : 1 and 2
B : 2 and 3
C : 1 and 3
D:
Q.no 40. What is the pre-processing time of Rabin and Karp Algorithm?
A : Theta(m2)
B : Theta(mlogn)
C : Theta(m)
D : Big-Oh(n)
Q.no 41. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 9/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 42. How many times is the recursive function called, when the following code is executed?
A:7
B:9
C : 11
D : 13
C : C) Non Associative
A : 10080
B : 11070
C : 130110
D : 11080
A : 38
B : 40
C : 38.3
D : 45
Q.no 46. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 10/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : 20*30
C : 10*30
D : 10*20*30
Q.no 47. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
Q.no 48. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
C : 290
D : 130
Q.no 49. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 11/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
Q.no 52. Basic operations like insertion, look-up and removal in splay trees are performed in
……. time.
A : O(1)
B : O(n)
C : O(log n)
D : O(n log n)
Q.no 53. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 12/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 56. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
Q.no 57. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
Q.no 58. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
A : O(n log n)
B : O(n)
C : O(nlogn)
D : O(nW)
A : 400
B : 420
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 13/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : 500
D : 440
Q.no 1. When an algorithm is written in the form of a specific programming language, it becomes
a _________
A : Pseudocode
B : Programme
C:
D:
A : insertion sort
B : binary search
C : linear search
D : merge sort
A : Fibers Of Nerves
B : nuclear projections
D : Twisted Network
C : Simulated Annealing
D : Adaptive Linear
Q.no 5. _________ is the class of decision problems that can be solved by non-deterministic
polynomial algorithms?
A : NP
B:P
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 14/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Hard
D : Complete
Q.no 6. state whether True or false.. The solid base of algorithmic knowledge and technique is
one characteristic that separates the truly skilled programmers from the novices
A : true
B : false
C:
D:
A : Dynamic Programming
C : Backtracking
D : Greedy Method
Q.no 10. In a computational complexity theory, a problem with decision making is said to be NP-
complete when it is both in NP and NP-hard. What does NP mean?
B : Non-deterministic Probabilistic
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 15/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 11. State whether True or False An algorithm is said to be correct if, for every input
instance, it halts with the correct output
A : true
B : false
C:
D:
Q.no 12. _____is the minimum number of steps that can be executed for given input
A : Average case
B : Best case
C : Worst case
D : Time complexity
Q.no 13. Which of the following standard algorithms is not a Greedy algorithm?
B : Prim's algorithm
C : Kruskal algorithm
Q.no 14. To which of the following class does a CNF-satisfiability problem belong?
A : NP class
B : P class
C : NP Complete
D : NP Hard
A : Pseudocode
B : Programme
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 16/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Grammar
D : flowchart
Q.no 16. Which element of an input array is chosen as pivot in Randomized Quicksort?
A : First
B : Last
C : Median
D : Random number
Q.no 17. Which of the following is incorrect for the given phrase: ’solvable by non deterministic
algorithms in polynomial time’
A : NP problems
B : P problem
C : NP complete problem
D : NP hard problem
Q.no 18. In recursion, the condition for which the function will stop calling itself is
A : Best case
B : Worst case
C : Base case
Q.no 19. Two main measures for the efficiency of an algorithm are 1)time 2) space 3) lines of code
A : 1 and 2
B : 2 and 3
C : 1 and 3
D:
Q.no 20. Which design strategy stops the execution when it finds the solution otherwise starts the
problem from top again?
A : Back Tracking
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 17/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Dynamic Programming
Q.no 21. Which of the following method is used for sorting in merge sort?
A : Merging
B : Partitioning
C : Selection
D : Exchanging
A : O(n)
B : O(NlogN)
C:
D:
A : Correctness of algorithm
B : Efficiency of algorithm
C : both
D:
Q.no 24. Given items as {value,weight} pairs {{60,20},{50,25},{20,5}}. The capacity of knapsack is
40. Find the maximum value output assuming items to be divisible and nondivisible respectively.
A : 100, 80
B : 110, 70
C : 130, 110
D : 110, 80
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 18/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Both B and C
Q.no 26. Which of the following problems is similar to that of a Hamiltonian path problem?
A : knapsack problem
D : assignment problem
B : Branch And Bound Is Not Suitable Where A Greedy Algorithm Is Not Applicable
C : Branch And Bound Divides A Problem Into At Least 2 New Restricted Sub Problems
Q.no 28. Choose the option with function having same complexity for a Fibonacci heap.
A : Insertion, Merge
B : Insertion, Deletion
C : ExtractMin, Insertion
D : Merge, Deletion
A : T1 / T∞
B : T1 / Tp
C : Tp / T1
D : T∞/T1
A : greedy method
C : dynamic programming
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 19/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : O(1)
B : O(log n)
C : O(n)
D : O(n^2)
Q.no 32. A binomial heap with n nodes contains not more than ………. binomial trees.
A : O(n)
B : O(log n)
C : O(n+1)
D : O(n-1)
Q.no 33. A Fibonacci heap uses ………… memory than a binary heap.
A : less
B : equal
C : more
D : cannot say
A : O(nlog n)
B : O(n^2 )
C : O(n)
D : O(log n )
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 20/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Join Operator
C : Selection
D : Multiplication
Q.no 36. Running the program many times is sufficient to prove the correctness of program
A : true
B : false
C:
D:
Q.no 37. Which of the following is false in the case of a spanning tree of a graph G?
B : It is a subgraph of the G
A : inverse proof
B : indirect proof
C : reverse proof
D:
Q.no 39. When the proof of a statement is started by assuming the statement is false the type of
proof is called _________.
A : proof by induction
B : proof by deduction
C : proof by contradiction
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 21/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : D.H.Lehmer
B : L.Baumert
C : R.J.Walker
D : S. Golomb
Q.no 42. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
Q.no 43. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
Q.no 44. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 22/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 45. For any integer m>=3, the series 2+4+6+…+(4m) can be equivalent to ________
A : m^2 + 3
B : m^m
C:m
D : m+1
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
A : O(nlog n)
B : O(n^2 )
C : O( n)
D : O(log n)
Q.no 48. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
C : built in function
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 23/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 49. In a proof by mathematical induction that for all positive integers n, is the "Summation
of numbers from 1 to n is equal to n(n + 1)/2" , inductive hypothesis would be to assume that
A : n=1
B : k=1
C : 1=1(1+1)/2
D : 1+2+3+…+k = k(k+1)/2
Q.no 50. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
C : backtracking
Q.no 51. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
Q.no 52. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
Q.no 53. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 24/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Monte-Carlo Algorithm
Q.no 54. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers cube" is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n^2(n+1)^2/4
D : n^2(n+1)^2/6
D : Not Flexible
A : Not Flexible
B : Robust
C : Inappropriate
Q.no 58. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 25/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : m divided by P
D : P divided by m
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
Q.no 60. The main time taking step in fractional knapsack problem is?
C : Sorting
A : Greedy strategy
C : Dynamic programming
A : true
B : false
C:
D:
Q.no 3. If f(n) = ______, then there exists positive constants c1, c2, n0 such that 0 ≤ c1.g(n) ≤ f(n)
≤ c2.g(n), for all n ≥ n0
A : Θ(g(n))
B : O(g(n))
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 26/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Ω(g(n))
D : little Ω(g(n))
C : Unweighted graphs
C : Network flow
D : Sorting
Q.no 6. waiting for the hardware advancements are always fruitful than finding the better
algorithm
A : true
B : false
C:
D:
A : Definiteness
B : finiteness
C : scalability
D : effectiveness
A : Contradiction
B : Approximation
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 27/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Mathematical induction
D:
Q.no 9. In an amortized analysis, the time required to perform a sequence of data structure
operations is summed over all the operations performed. This statement is true or false.
A : true
B : false
C:
D:
A : O(n)
B : O(Logn)
C : O(n^2)
D : O(n^2Logn)
Q.no 11. A Greedy Algorithm can be used to solve all the Dynamic Programming problems.
A : True
B : FALSE
C:
D:
Q.no 12. What is the average case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
Q.no 13. In the absence of a exit condition in a recursive function, the following error is given by?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 28/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Logical error
D : No error
Q.no 14. In computer science, algorithm refers to a special method usable by a computer for the
solution to a problem.
A : true
B : false
C:
D:
Q.no 15. parallel algorithms that can run on a ____________ that permits multiple instructions to
execute concurrently
A : Uniprocessor
B : Serial Computer
C : Mainframe Computer
D : Multiprocessor computer
A : Brain
B : Nucleus
C : Neuron
D : Axon
Q.no 17. Two main measures for the efficiency of an algorithm are
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 29/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : greedy method
C : dynamic programming
Q.no 19. What is the best case time complexity of binary search?
A : O(n)
B : O(1)
C : O(log n)
D : O(n^2)
Q.no 20. In a binomial heap the root value is greater than left child and less than right child.
A : true
B : false
C:
D:
Q.no 21. Many multithreaded algorithms involving nested parallelism follow naturally from
A : Dynamic Programming
C : Greedy Method
Q.no 22. Which of the following problems can’t be solved using recursion?
A : Factorial of a number
C : Length of a string
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 30/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
2. 2n + 1 = O(2n)
3. 22n + 1 = O(2n)
Which of these claims are correct ?
A : 1 and 2
B : 1 and 3
C : 2 and 3
D : 1, 2, and 3
Q.no 24. What is the time, space complexity of following code: int a = 0, b = 0;
for (i = 0; i < N; i++) {
a = a + rand();
}
for (j = 0; j < M; j++) {
b = b + rand();
}
Q.no 25. Which of the following options match the given statement:
The algorithms that use the random input to reduce the expected running time or memory usage,
but always terminate with a correct result in a bounded amount of time.
D : Approximation algorithm
Q.no 26. From the following which is not return optimal solution
A : Dynamic programming
B : Backtracking
D : Greedy method
Q.no 27. In amortized analysis, which method overcharges for operations early to compensate for
under-charges later?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 31/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Aggregate method
B : Accounting method
C : Potential method
D : Easy Network
Q.no 29. Which of the following statement about 0 1 knapsack and fractional knapsack problem
is correct?
A : In 0 1 knapsack problem items are divisible and in fractional knapsack items are indivisible
C : 0 1 knapsack is solved using a greedy algorithm and fractional knapsack is solved using dynamic
programming
D : In 0 1 knapsack problem items are indivisible and in fractional knapsack items are divisible
Q.no 30. Given an array of elements 5, 7, 9, 1, 3, 10, 8, 4. Which of the following is the correct
sequences of elements after inserting all the elements in a min-heap?
A : 1,3,4,5,7,8,9,10
B : 1,4,3,9,8,5,7,10
C : 1,3,4,5,8,7,9,10
D : 1,3,7,4,8,5,9,10
Q.no 31. Mathematical induction allows us to prove the correctness and efficiency of algorithm
both
A : true
B : false
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 32/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Sorting
B : Hashing
C : Augmenting
D : Dynamic Programming
Q.no 33. Let X be a problem that belongs to the class NP. Then which one of the following is
TRUE?
D : X may be undecidable.
A : O(n log n)
B : O(n)
C : O(1)
D : O(nW)
B : Dynamic programming
C : Greedy method
A : greedy method
C : dynamic programming
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 33/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 37. The procedure FindMin() to find the minimum element and the procedure DeleteMin()
to delete the minimum element in min heap take ……….
Q.no 38. Problems that can be solved in polynomial time are known as ……… problems.
A : Intractable
B : Tractable
C : Undecidable
D : Decidable
Q.no 39. loop termination condition along with what makes loop correct
A : loop condition
C : loop invariant
D : none of these
Q.no 40. If an optimal solution can be created for a problem by constructing optimal solutions
for its subproblems, the problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 34/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 42. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
Q.no 43. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
Q.no 44. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
Q.no 45. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 35/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : B1,B2,B3
Q.no 47. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
B : 20*30
C : 10*30
D : 10*20*30
Q.no 48. How many times is the recursive function called, when the following code is executed?
A:7
B:9
C : 11
D : 13
A : size of a computation
A : O(n log n)
B : O(n)
C : O(nlogn)
D : O(nW)
Q.no 51. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 36/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Π is NP-complete
Q.no 52. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
C : 290
D : 130
Q.no 53. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
C : C) Non Associative
Q.no 55. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 37/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 38
B : 40
C : 38.3
D : 45
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
Q.no 59. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
A : Not Flexible
B : Robust
C : Inappropriate
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 38/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 1. What will be the best case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
Q.no 2. The choice of polynomial class has led to the development of an extensive theory called
________
A : computational complexity
B : time complexity
C : problem complexity
D : decision complexity
Q.no 3. If f(n) = ______, then there exists positive constants c, n0 such that 0 ≤ f(n) ≤ c.g(n), for all
n ≥ n0
A : Θ(g(n))
B : O(g(n))
C : Ω(g(n))
D : Little o(g(n))
Q.no 4. The space factor when determining the efficiency of algorithm is measured by
A : true
B : false
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 39/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : NP problem
B : N class problem
C : P class problem
D : NP complete problem
A : The number of arithmetic and the operations that are required to run the program
Q.no 8. Which data structure is used for implementing a LIFO branch and bound strategy?
A : Stack
B : Queue
C : Array
D : Linked List
A : tractable problems
B : intractable problems
C : undecidable problems
D : decidable problems
A : 111
B : 101
C : 110
D : 11
A:n
B : n^2
C : nlogn
D:
A : greedy method
C : dynamic programming
A : Hamiltonian circuit
B : Bin packing
C : Partition problem
D : Halting problem
B : Dynamic Programming
C : Backtracking
D : Greedy Approach
A : Pseudocode
B : Flowchart
D : both 1and 2
A : Constant
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 41/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : logarithmic
D : linear
Q.no 18. The Data structure used in standard implementation of Breadth First search
is___________
A : Stack
B : Queue
C : Linked List
D : Tree
Q.no 20. Problems that can be solved in polynomial time are known as?
A : intractable
B : tractable
C : decision
D : complete
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 42/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 21.
A : 10
B:1
C : 10 9 8 ……1 0
D : 10 9 8 ……1
Q.no 22. Consider the strings “PQRSTPQRS” and “PRATPBRQRPS”. What is the length of the
longest common subsequence?
A:9
B:8
C:7
D:6
Q.no 23. From the following choose the one which belongs to the algorithm paradigm other than
to which others from the following belongs to.
B : Knapsack problem
C : Selection problem
D : Merge sort
Q.no 24. The Knapsack problem where the objective function is to minimize the profit is
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 43/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Greedy
B : Dynamic 0 / 1
C : Back tracking
Q.no 26. The main time taking step in fractional knapsack problem is
C : Sorting
A : precise
B : Ambigous
Q.no 28. In the principle of mathematical induction, which of the following steps is mandatory?
A : induction hypothesis
B : induction reference
D:
A : Initial condition
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 44/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : nested loop
C : invariant relation
D : termination
A : No Population
B : Chromosomes
C : Not Gene,
D : Not Allele
Q.no 31. Arrange following from lowest to highest order by complexity wise A log n B n! C nlogn
A : A,B, C
B : B, C, A
C : A, C, B
D : B,A, C
A : true
B : false
C:
D:
Q.no 33. we can refere to the common sense/ intution while specifing the algorithm
A : true
B : false
C:
D:
Q.no 34. In analysis of algorithm, approximate relationship between the size of the job and the
amount of work required to do is expressed by using
A : Central tendency
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 45/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Differential equation
C : Order of execution
D : Order of Storage
A : Fn(10)
B : return
C : if (n==0)
D : Fn(n-1)
Q.no 36. Which of the following method is used for sorting in merge sort?
A : Merging
B : Partitioning
C : Selection
D : Exchanging
Q.no 37. When the proof of a statement is started by assuming the statement is false the type of
proof is called _________.
A : proof by induction
B : proof by deduction
C : proof by contradiction
D:
Q.no 38. If T= abcabaabc & P= abaa then what will be the value of s?
A:4
B:2
C:3
D:1
Q.no 39. ____________ is an algorithm design method that can be used when the solution to a
problem can be viewed as the result of a sequence of decisions
A : Dynamic Programming
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 46/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Backtracking
D : Greedy Method
Q.no 40. Which of the following branch and bound strategy leads to breadth first search?
Q.no 41. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
A : 400
B : 420
C : 500
D : 440
Q.no 43. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 47/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 45. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers cube" is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n^2(n+1)^2/4
D : n^2(n+1)^2/6
Q.no 46. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
Q.no 47. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
A : 10080
B : 11070
C : 130110
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 48/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : 11080
Q.no 49. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
C : backtracking
Q.no 50. Basic operations like insertion, look-up and removal in splay trees are performed in
……. time.
A : O(1)
B : O(n)
C : O(log n)
D : O(n log n)
Q.no 51. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
D:
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
Q.no 54. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
Q.no 55. In a proof by mathematical induction that for all positive integers n, is the "Summation
of numbers from 1 to n is equal to n(n + 1)/2" , inductive hypothesis would be to assume that
A : n=1
B : k=1
C : 1=1(1+1)/2
D : 1+2+3+…+k = k(k+1)/2
Q.no 56. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
C : Monte-Carlo Algorithm
D : Not Flexible
Q.no 58. The main time taking step in fractional knapsack problem is?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 50/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Sorting
Q.no 59. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
A : O(nlog n)
B : O(n^2 )
C : O( n)
D : O(log n)
A : stack underflow
B : stack overflow
C : both
D:
A : Nodes Or Neurons
B : Weights
C : Axons
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 51/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Soma
Q.no 3. Master theorem applies to recurrences of the form (a=1 and b>1) are two constants.
Select one:
A : T(N)=A.T(N/B)+F(N)
B : T(n)=n.T(n/2)+b.f(n)
C : T(N)=A.T(N-1)+B
D : T(N)=N.T(N-3)+B
A : Language dependent
B : Language independent
C:
D:
B : linear search
Q.no 6. What is the type of the algorithm used in solving the 8 Queens problem?
A : Backtracking
B : Dynamic Programming
Q.no 7. _____is the average number of steps that can be executed for given input
A : Average case
B : Best case
C : Worst case
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 52/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Time complexity
Q.no 8. Operations in the neural networks can perform what kind of operations?
A : Not In Serial
B : Not In Parallel
C : Serial Or Parallel
D : Partial
A : switch -case
B : exit condition
C : loop
D:
Q.no 10. With minimal weighted external path length obtained by an optimal set Huffman codes
are the applications of?
A : BST
B : MST
C : Binary Tree
D : Weighted Graph
Q.no 11. Which of the following standard algorithms is not a Greedy algorithm?
B : Prim’s algorithm
C : Huffman Coding
Q.no 12. If f(n) = ______, then there exists positive constants c, n0 such that 0 ≤ c.g(n) ≤ f(n), for
all n ≥ n0
A : Θ(g(n))
B : O(g(n))
C : Ω(g(n))
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 53/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : little Ω(g(n))
Q.no 13. If a problem X is in NP and a polynomial time algorithm for X could also be used to
solve problem Y in polynomial time, then Y is also in NP
A : true
B : false
C:
D:
Q.no 16. All the iterations in the parallel loop should be __________
A : Independent
B : Dependent
C:
D:
Q.no 17. Which of the following is the most commonly used data structure for implementing
Dijkstra’s Algorithm?
B : Stack
C : Circular queue
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 54/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Ɵ(n^2)
B : Ɵ(8)
C : Ɵ(log n)
D : Ɵ(n)
Q.no 19. The time factor when determining the efficiency of algorithm is measured by
A : Counting microseconds
D:
Q.no 20. There are four algorithms A1, A2, A3, A4 to solve the given problem with the order
log(n), nlog(n), log(log(n)), n^2, Which is the best algorithm.
A : A1
B : A2
C : A3
D : A4
Q.no 21. Which algorithm startegy builds up a solution by choosing the option that looks the best
at every step.
A : greedy method
C : dynamic programming
Q.no 22. Which of the following methods can be used to solve the matrix chain multiplication
problem?
B : Greedy
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 55/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Backtracking
A : Mathematical Induction
B : Proof by cases
C : proof by contradiction
D : direct proof
Q.no 24. An algorithm that always runs in polynomial time but possibly returns erroneous
answers is called a …………
D : Approximation algorithm
Q.no 25. Which of the following statement about 0/1 knapsack and fractional knapsack problem
is correct?
A : In 0/1 Knapsack Problem Items Are Divisible And In Fractional Knapsack Items Are Indivisible
C : 0/1 Knapsack Is Solved Using A Greedy Algorithm And Fractional Knapsack Is Solved Using
Dynamic Programming
D : In 0/1 Knapsack Problem Items Are Indivisible And In Fractional Knapsack Items Are Divisible
Q.no 26. In the development of dynamic programming the value of an optimal solution is
computed in Select one:
A : Top Up Fashion
B : Bottom Up Fashion
C : In Any Way
D : Random
Q.no 27. Which of the following is false in the case of a spanning tree of a graph G?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 56/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : It is a subgraph of the G
Q.no 28. Which data structure is most suitable for implementing best first branch and bound
strategy?
A : Stack
B : Queue
C : Priority Queue
D : Linked List
A : Sorting
B : Hashing
C : Augmenting
D : Dynamic Programming
Q.no 30. You are given a knapsack that can carry a maximum weight of 60. There are 4 items
with weights {20, 30, 40, 70} and values {70, 80, 90, 200}. What is the maximum value of the items
you can carry using the knapsack?
A : 160
B : 200
C : 170
D : 90
B : Branch And Bound Is Not Suitable Where A Greedy Algorithm Is Not Applicable
C : Branch And Bound Divides A Problem Into At Least 2 New Restricted Sub Problems
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 57/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : F1()
B : return
C : both
D : neither 1 nor 2
Q.no 33. What will be the position of 6, when a max heap is constructed on the input elements 6,
71, 46, 8, 13, 16, 14, 66, 31, 27?
Q.no 34. When a thread u spawns a new thread v, then (u,v) is called a
A : Simple edge
B : Return edge
C : Continuation edge
D : spawn edge
Q.no 37. To prove the statement " There are infinitely many prime numbers" by contradiction
what is the assumption for P?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 58/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : P is infinite set
B : P is finite set
C:
D:
Q.no 38. How many stages(steps) of procedure does a non-deterministic algorithm consist of?
A:1
B:2
C:3
D:4
Q.no 39. Which of the following statement about 0 1 knapsack and fractional knapsack problem
is correct?
A : In 0 1 knapsack problem items are divisible and in fractional knapsack items are indivisible
C : 0 1 knapsack is solved using a greedy algorithm and fractional knapsack is solved using dynamic
programming
D : In 0 1 knapsack problem items are indivisible and in fractional knapsack items are divisible
B : Dynamic programming
C : Greedy method
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 59/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 42. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
A : D.H.Lehmer
B : L.Baumert
C : R.J.Walker
D : S. Golomb
Q.no 44. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
Q.no 46. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 60/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Minimize Functions
Q.no 47. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
Q.no 48. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
A : size of a computation
Q.no 50. For any integer m>=3, the series 2+4+6+…+(4m) can be equivalent to ________
A : m^2 + 3
B : m^m
C:m
D : m+1
A : O(n log n)
B : O(n)
C : O(nlogn)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 61/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : O(nW)
A : 38
B : 40
C : 38.3
D : 45
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
Q.no 54. How many times is the recursive function called, when the following code is executed?
A:7
B:9
C : 11
D : 13
Q.no 55. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 62/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : B1,B2,B3
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
Q.no 58. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
Q.no 59. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
C : built in function
D:
Q.no 60. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
B : 20*30
C : 10*30
D : 10*20*30
A : insertion sort
B : binary search
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 63/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : linear search
D : merge sort
Q.no 2. Fibonacci heap has better amortized running time compared to a binomial heap.
A : true
B : false
C:
D:
A : Structural
B : C programming
C : Procedural
D : Fine
Q.no 4. One can have __________, where each processor can directly access any location of
memory
A : Shared Memory
B : Cache Memory
C : Distributed Memory
D : Private Memory
A : Priority queue
B : Stack
D : Normal Array
A : O(n)
B : O(log n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 64/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : O( n^2)
D : O(n log n)
B : Dynamic Programming
C : Backtracking
D : Greedy Approach
A : Greedy strategy
C : Backtracking
D : Dynamic programming
Q.no 9. If the children of the root,from left to right, are the roots of Bk−1, Bk−2, . . . , B1, B0,
then root has degree .........
A : K-1
B:K
C : K+1
D : K+2
Q.no 10. In a max-heap, element with the greatest key is always in the which node?
A : Leaf node
C : Root node
Q.no 11. In recursion, the condition for which the function will stop calling itself is
A : Best case
B : Worst case
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 65/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Base case
Q.no 12. What will be the best case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
Q.no 13. For the improvement of efficiency of quick sort the pivot can be____
B : Data Structure
C : Sorting Algorithm
D : Type Of Tree
Q.no 16. The best suited algorithm could be decided using proof technique
A : false
B : true
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 66/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:
Q.no 18. Keywords________indicates that iteration of the loop may run concurrently.
A : Parallel loop
B : Thread
C : Parallel for
D : Multithreading
Q.no 19. In recursion, the condition for which the function will stop calling itself is?
A : Best case
B : Worst case
C : Base case
A : Many
B : Two
C : One
D : Three
}
What is the asymptotic complexity in terms of n? (Pick the smallest correct answer)
A : O(nlog n)
B : O(n^2 )
C : O(n)
D : O(log n )
Q.no 22. Which of the following can be used to define NP complete class? I) polynomial time
Verifier II) Polynomial time reducibility of the known NP complete problem
A : only I
B : only II
C : both I and II
D : neither I nor II
Q.no 23. The Knapsack problem where the objective function is to minimize the profit is______
A : Greedy
B : Dynamic Programming
C : Back Tracking
A : O(n)
B : O(nLogn)
C : O(n^2)
D : O(n^2Logn)
Q.no 25. Which of the given options provides the increasing order of asymptotic complexity of
functions f1, f2, f3 and f4?
f1(n) = 2^n
f2(n) = n^(3/2)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 68/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
f3(n) = nLogn
f4(n) = n^(Logn)
D : None of these
Q.no 26. Parallel loops are like an ordinary_______________except that the iterations of the loop
can execute concurrently.
A : While loop
B : For Loop
C : Do while loop
D : If statement
A : No Population
B : Chromosomes
C : Not Gene,
D : Not Allele
Q.no 28. A Fibonacci heap uses ………… memory than a binary heap.
A : less
B : equal
C : more
D : cannot say
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 69/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 30. If txt[] = "THIS IS A TEST TEXT" and pat[] = "TEST", what will be the index of
pattern?
A:9
B : 13
C : 11
D : 10
Q.no 31. Choose the correct steps to prove if the 3 SAT CNF problem is NP-Complete. I-- SAT
problem is in NP II--3 SAT CNF problem is in NP III--Prove that SAT ≤ 3 SAT CNF Problem in
polynomial time IV---Prove that 3 SAT CNF problem ≤ SAT Problem in polynomial time
A : I and III
B : I and IV
C : II and III
D : II and IV
A : Iterative
B : Recursive
C : Both A and B
D : Neither A Nor B
A : T1 / Tp
B : T1 / T∞
C : T∞/T1
D : Tp / T1
Q.no 34. A binomial heap with n nodes contains not more than ………. binomial trees.
A : O(n)
B : O(log n)
C : O(n+1)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 70/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : O(n-1)
Q.no 35. For a good loop invariant, following property is not important
A : Initialization
B : Maintenance
C : Termination:
D : loop condition
D : Simulated Annealing
Q.no 37. Which of the following statements about loop invariants is false?
A : Loop invariants are used to show that algorithms produce the correct results.
B : A loop invariant is the opposite, that is the negation, of the condition of the loop.
Q.no 38. In amortized analysis, which method overcharges for operations early to compensate for
under-charges later?
A : Aggregate method
B : Accounting method
C : Potential method
Q.no 39. The term ________ refers to all state space search methods in which all children of the –
nodes are generated before any other live node can become the E-node.
A : Backtacking
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 71/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:
Q.no 42. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
A : 10080
B : 11070
C : 130110
D : 11080
A : 400
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 72/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : 420
C : 500
D : 440
Q.no 45. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
Q.no 46. Basic operations like insertion, look-up and removal in splay trees are performed in
……. time.
A : O(1)
B : O(n)
C : O(log n)
D : O(n log n)
Q.no 47. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
C : Π is NP-complete
A : Not Flexible
B : Robust
C : Inappropriate
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 73/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 49. In a proof by mathematical induction that for all positive integers n, is the "Summation
of numbers from 1 to n is equal to n(n + 1)/2" , inductive hypothesis would be to assume that
A : n=1
B : k=1
C : 1=1(1+1)/2
D : 1+2+3+…+k = k(k+1)/2
D : Not Flexible
Q.no 51. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
C : Monte-Carlo Algorithm
Q.no 52. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 74/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : C) Non Associative
Q.no 55. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
Q.no 56. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
C : 290
D : 130
A : O(nlog n)
B : O(n^2 )
C : O( n)
D : O(log n)
Q.no 58. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 75/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
Q.no 60. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
A : Linear
B : polynomial
C : quadratic
D : exponential
Q.no 2. Which data structure is used for implementing a FIFO branch and bound strategy?
A : Stack
B : Queue
C : Array
D : Linked List
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 76/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 3. state whether True or false.. The solid base of algorithmic knowledge and technique is
one characteristic that separates the truly skilled programmers from the novices
A : true
B : false
C:
D:
Q.no 4. If a problem X is in NP and a polynomial time algorithm for X could also be used to solve
problem Y in polynomial time, then Y is also in NP
A : true
B : false
C:
D:
A : Greedy Algorithm
D : Backtracking Algorithm
Q.no 6. Which of the following algorithms is the best approach for solving Huffman codes?
A : Exhaustive Search
B : Greedy Algorithm
A : First
B : Last
C : Median
D : Random number
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 77/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 8. Which design strategy stops the execution when it finds the solution otherwise starts the
problem from top again?
A : Back Tracking
D : Dynamic Programming
A : Contradiction
B : Approximation
C : Mathematical induction
D:
A : O(f(n))
B : O(g(n))
C : O(f(n)g(n))
D : O(f(n)+ g(n))
Q.no 11. Fractional knapsack problem is solved most efficiently by which of the following
algorithm?
B : Dynamic Programming
C : Greedy Algorithm
D : Backtracking
Q.no 12. In an amortized analysis, the time required to perform a sequence of data structure
operations is summed over all the operations performed. This statement is true or false.
A : true
B : false
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 78/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:
A : decidable problem
B : undecidable problem
C : complete problem
D : trackable problem
Q.no 14. Recursion is a method in which the solution of a problem depends on?
A:n
B : n^2
C : nlogn
D:
A : true
B : false
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 79/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 18. Which of the following algorithms has better time complexity?
A : insertion sort
B : binary search
C : linear search
D : merge sort
Q.no 19. _____is the average number of steps that can be executed for given input
A : Average case
B : Best case
C : Worst case
D : Time complexity
A : O(n)
B : O(nlogn)
C : O(n^2)
D : O(n^3)
Q.no 21. we can refere to the common sense/ intution while specifing the algorithm
A : true
B : false
C:
D:
Q.no 22. Which data structure has a better amortized running time than others?
A : Queue
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 80/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Stack
C : Priority Queue
D : List
Q.no 23. Choose the correct steps required to prove that a problem is NP complete?
A : 1. prove that problem is in P 2. Prove that every problem in P is reducible to the problem in
question in polynomial time.
B : 1.prove that problem is in P 2. Prove that the problem in question is reducible to any problem in P
in polynomial time.
C : 1.prove that problem is in NP 2. Prove that every problem in NP is reducible to the problem in
question in polynomial time.
D : 1.prove that problem is P 2. Prove that the problem in question is reducible to any problem in P in
polynomial time.
Q.no 24. The type of encoding where no character code is the prefix of another character code is
called?
A : optimal encoding
B : prefix encoding
C : Fequency encoding
D : Trie encoding
Q.no 25. loop termination condition along with what makes loop correct
A : loop condition
C : loop invariant
D : none of these
Q.no 26. Which of the following branch and bound strategy leads to depth first search?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 81/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : greedy method
C : dynamic programming
B : Dynamic programming
C : Greedy method
Q.no 30. Given items as {value,weight} pairs {{60,20},{50,25},{20,5}}. The capacity of knapsack is
40. Find the maximum value output assuming items to be divisible and nondivisible respectively.
A : 100, 80
B : 110, 70
C : 130, 110
D : 110, 80
Q.no 31. Power saving is an important job in embedded systm and sensor network.
A : true
B : false
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 82/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : All problems in P
D : Halting problem
Q.no 33. From the following which is not return optimal solution
A : Dynamic programming
B : Backtracking
D : Greedy method
A : greedy method
C : dynamic programming
Q.no 35. Which of the following problems is similar to that of a Hamiltonian path problem?
A : knapsack problem
D : assignment problem
Q.no 36. Suppose SAT reduces to a problem C. To claim that C is NP-complete, we additionally
need to show that:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 83/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Parallel Programming
B : Dynamic Programming
C : Serial Programming
D : Multiprogramming
Q.no 38. Which of the following branch and bound strategy leads to breadth first search?
Q.no 39. What is the time, space complexity of following code: int a = 0, b = 0;
for (i = 0; i < N; i++) {
a = a + rand();
}
for (j = 0; j < M; j++) {
b = b + rand();
}
Q.no 40. Which one of the following is true about Binary search?
A : the best-case occurs when the target item is in the beginning of the search list
B : the best-case occurs when the target is at the end of the search list
C : the worst-case is when the target item is not in the search list
D : the worst-case is when the target is found in the middle of the search list
Q.no 41. For any integer m>=3, the series 2+4+6+…+(4m) can be equivalent to ________
A : m^2 + 3
B : m^m
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 84/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C:m
D : m+1
Q.no 42. The main time taking step in fractional knapsack problem is?
C : Sorting
Q.no 43. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
A : size of a computation
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 85/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 47. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
A : O(n log n)
B : O(n)
C : O(nlogn)
D : O(nW)
Q.no 49. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
Q.no 51. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 86/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Tail Recursion
C : Exponential Recursion
D : Recursion
Q.no 52. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
C : backtracking
Q.no 53. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers cube" is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n^2(n+1)^2/4
D : n^2(n+1)^2/6
Q.no 54. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
B : 20*30
C : 10*30
D : 10*20*30
Q.no 55. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 87/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 38
B : 40
C : 38.3
D : 45
Q.no 57. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
Q.no 59. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
Q.no 60. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 88/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : built in function
D:
A : Linear
B : polynomial
C : quadratic
D : exponential
Q.no 2. What is the type of the algorithm used in solving the 8 Queens problem?
A : Backtracking
B : Dynamic Programming
Q.no 3. The best data structure to check whether an arithmetic expression has balanced
parentheses is a
A : queue
B : stack
C : tree
D : list
A : Pseudocode
B : Programme
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 89/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Grammar
D : flowchart
A : NP class
B : P class
C : NP Complete
D : NP Hard
A : Greedy strategy
C : Dynamic programming
Q.no 8. The problem of finding a path in a graph that visits every vertex exactly once is called?
A:n
B : n^2
C : nlogn
D:
Q.no 10. The choice of polynomial class has led to the development of an extensive theory called
………
A : time complexity
B : space complexity
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 90/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : computational complexity
D : problem complexity
C : A recursive function where the function doesn’t return anything and just prints the values
D : A function where the recursive call is the last thing executed by the function
Q.no 12. With minimal weighted external path length obtained by an optimal set Huffman codes
are the applications of?
A : BST
B : MST
C : Binary Tree
D : Weighted Graph
A : Array
B : queue
C : stack
D : linked list
Q.no 14. What is the best case time complexity of binary search?
A : O(n)
B : O(1)
C : O(log n)
D : O(n^2)
Q.no 15. Fibonacci heap has better amortized running time compared to a binomial heap.
A : true
B : false
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 91/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C:
D:
A : Hamiltonian circuit
B : Bin packing
C : Partition problem
D : Halting problem
Q.no 17. _____is the maximum number of steps that can be executed for given input
A : Average case
B : Best case
C : Worst case
D : Time complexity
Q.no 18. Which of the following case does not exist in complexity theory?
A : Best case
B : Average case
C : Null case
D : Worst case
D:
Q.no 20. Amortized analysis is a technique that, given a sequence of operations, permits sharing
the cost of a single expensive operation with many other cheaper ones.
A : true
B : false
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 92/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C:
D:
Q.no 21. Which of the following is not a branch and bound strategy to generate branches?
A : Sorting
B : Hashing
C : Augmenting
D : Dynamic Programming
Q.no 23. What is the purpose of using randomized quick sort over standard quick sort?
D : To improve accuracy
A : Process
B : Work
C : Thread
D : Span
D : Both B and C
A : O(nlog n)
B : O(n^2 )
C : O(n)
D : O(log n )
A : Member Function
B : Principle Of Optimality
C : Fitness Function
A : 60
B : 80
C : 100
D : 40
Q.no 29. Which of the following is false in the case of a spanning tree of a graph G?
B : It is a subgraph of the G
Q.no 30. Which of the following options match the given statement:
The algorithms that use the random input to reduce the expected running time or memory usage,
but always terminate with a correct result in a bounded amount of time.
D : Approximation algorithm
Q.no 31. Mathematical induction allows us to prove the correctness and efficiency of algorithm
both
A : true
B : false
C:
D:
Q.no 32. The procedure FindMin() to find the minimum element and the procedure DeleteMin()
to delete the minimum element in min heap take ……….
Q.no 33. Choose the correct steps to prove if the vertex cover problem is NP-Complete. I-- Vertex
Cover problem is in NP II--Clique problem is in NP III--Prove that Clique problem ≤ Vertex
Cover Problem in polynomial time IV---Prove that Vertex Cover problem ≤ Clique Problem in
polynomial time
A : I and III
B : I and IV
C : II and III
D : II and IV
Q.no 34. In dynamic programming, the technique of storing the previously calculated values is
called ___________
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 95/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Memoization
D : Mapping
B : Recursive functions usually take more memory space than non-recursive function
A : the process
B : the decision
C : the loop
D : the sequential
Q.no 37. Time taken in decreasing the node value in a binomial heap is
A : O(n)
B : O(1)
C : O(log n)
D : O(n log n)
A : O(1)
B : O(log n)
C : O(n)
D : O(n^2)
Q.no 39. Loop invariant is inert assertion and not useful in analysis of program.
A : true
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 96/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : false
C:
D:
Q.no 40. Which of the following problems can’t be solved using recursion?
A : Factorial of a number
C : Length of a string
Q.no 41. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
A : O(nlog n)
B : O(n^2 )
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 97/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : O( n)
D : O(log n)
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
C : C) Non Associative
Q.no 46. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
Q.no 47. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
C : 290
D : 130
Q.no 48. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 98/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
A : 400
B : 420
C : 500
D : 440
Q.no 50. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
A : Not Flexible
B : Robust
C : Inappropriate
Q.no 52. In a proof by mathematical induction that for all positive integers n, is the "Summation
of numbers from 1 to n is equal to n(n + 1)/2" , inductive hypothesis would be to assume that
A : n=1
B : k=1
C : 1=1(1+1)/2
D : 1+2+3+…+k = k(k+1)/2
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 99/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 53. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
C : Π is NP-complete
Q.no 54. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
Q.no 56. Basic operations like insertion, look-up and removal in splay trees are performed in
……. time.
A : O(1)
B : O(n)
C : O(log n)
D : O(n log n)
Q.no 57. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 100/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Memoization
D : Greedy
Q.no 58. How many times is the recursive function called, when the following code is executed?
A:7
B:9
C : 11
D : 13
D : Not Flexible
D:
Q.no 1. If a problem X is in NP and a polynomial time algorithm for X could also be used to solve
problem Y in polynomial time, then Y is also in NP
A : true
B : false
C:
D:
A : Definiteness
B : finiteness
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 101/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : scalability
D : effectiveness
Q.no 3. Which is a condition about the relationship between the variables of our program which
is definitely true immediately before and immediately after each iteration of the loop?
A : For condition
C : Both a and b
D : If condition
A : Roots
B : Leafs
Q.no 5. Which of the following is incorrect for the given phrase: ’solvable by non deterministic
algorithms in polynomial time’
A : NP problems
B : P problem
C : NP complete problem
D : NP hard problem
Q.no 6. Running time of algorithm varies with the size of the input called____
A : Growth of Function
B : Order of growth
C : Growth Rate
Q.no 7. There are four algorithms A1, A2, A3, A4 to solve the given problem with the order
log(n), nlog(n), log(log(n)), n^2, Which is the best algorithm.
A : A1
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 102/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : A2
C : A3
D : A4
Q.no 8. Which of the following problems should be solved using dynamic programming?
A : Mergesort
B : Binary search
D : Quicksort
Q.no 9. Fill in the blank. The notion of correctness for approximation algorithms is
…………...straightforward
than it is for exact algorithms
A : More
B : Less
C:
D:
Q.no 11. Which of the following standard algorithms is not a Greedy algorithm?
B : Prim's algorithm
C : Kruskal algorithm
A : O(n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 103/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : O(n^3)
C : O(n^2)
D : O(log n)
Q.no 13. waiting for the hardware advancements are always fruitful than finding the better
algorithm
A : true
B : false
C:
D:
Q.no 14. What is the worst case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
A : Rational
B : Irrational
C:
D:
A : Greedy Technique
B : Dynamic Programming
C : Linear Programming
D : Backtracking
A : true
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 104/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : false
C:
D:
Q.no 18. In artificial Neural Network interconnected processing elements are called
A : Nodes Or Neurons
B : Weights
C : Axons
D : Soma
Q.no 19. What is the average case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
Q.no 20. In a computational complexity theory, a problem with decision making is said to be NP-
complete when it is both in NP and NP-hard. What does NP mean?
B : Non-deterministic Probabilistic
Q.no 22. The Worst case occur in linear search algorithm when
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 105/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 23. A binomial heap with n nodes contains not more than ………. binomial trees.
A : O(n)
B : O(log n)
C : O(n+1)
D : O(n-1)
A : Mathematical Induction
B : Proof by cases
C : proof by contradiction
D : direct proof
Q.no 26. To prove the statement " There are infinitely many prime numbers" by contradiction
what is the assumption for P?
A : P is infinite set
B : P is finite set
C:
D:
Q.no 27. Which of the following statements about loop invariants is false?
A : Loop invariants are used to show that algorithms produce the correct results.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 106/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : A loop invariant is the opposite, that is the negation, of the condition of the loop.
Q.no 28. If an optimal solution can be created for a problem by constructing optimal solutions
for its subproblems, the problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
Q.no 29. In analysis of algorithm, approximate relationship between the size of the job and the
amount of work required to do is expressed by using
A : Central tendency
B : Differential equation
C : Order of execution
D : Order of Storage
Q.no 30. For a good loop invariant, following property is not important
A : Initialization
B : Maintenance
C : Termination:
D : loop condition
Q.no 31. Which of the following branch and bound strategy leads to breadth first search?
Q.no 32. Power saving is an important job in embedded systm and sensor network.
A : true
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 107/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : false
C:
D:
A : Fn(10)
B : return
C : if (n==0)
D : Fn(n-1)
Q.no 34. Which of the following can be used to define NP complete class? I) polynomial time
Verifier II) Polynomial time reducibility of the known NP complete problem
A : only I
B : only II
C : both I and II
D : neither I nor II
B : Branch And Bound Is Not Suitable Where A Greedy Algorithm Is Not Applicable
C : Branch And Bound Divides A Problem Into At Least 2 New Restricted Sub Problems
Q.no 36. From the following which is not return optimal solution
A : Dynamic programming
B : Backtracking
D : Greedy method
Q.no 37. Which algorithm startegy builds up a solution by choosing the option that looks the best
at every step.
A : greedy method
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 108/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : dynamic programming
Q.no 38. From the following choose the one which belongs to the algorithm paradigm other than
to which others from the following belongs to.
B : Knapsack problem
C : Selection problem
D : Merge sort
Q.no 39. If txt[] = "THIS IS A TEST TEXT" and pat[] = "TEST", what will be the index of
pattern?
A:9
B : 13
C : 11
D : 10
Q.no 40. Arrange following from lowest to highest order by complexity wise A log n B n! C nlogn
A : A,B, C
B : B, C, A
C : A, C, B
D : B,A, C
Q.no 41. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers cube" is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n^2(n+1)^2/4
D : n^2(n+1)^2/6
Q.no 42. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 109/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 10*20
B : 20*30
C : 10*30
D : 10*20*30
Q.no 43. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
Q.no 44. For any integer m>=3, the series 2+4+6+…+(4m) can be equivalent to ________
A : m^2 + 3
B : m^m
C:m
D : m+1
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
Q.no 46. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 110/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 47. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
Q.no 48. The main time taking step in fractional knapsack problem is?
C : Sorting
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
A : O(n log n)
B : O(n)
C : O(nlogn)
D : O(nW)
Q.no 51. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 111/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : backtracking
Q.no 52. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
A : size of a computation
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
A : 10080
B : 11070
C : 130110
D : 11080
Q.no 56. What are the issues on which biological networks proves to be superior than AI
networks?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 112/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Inflexibility
C : Single Computation
D : No Computation
A : D.H.Lehmer
B : L.Baumert
C : R.J.Walker
D : S. Golomb
Q.no 58. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
A : 38
B : 40
C : 38.3
D : 45
Q.no 60. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 113/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Structural
B : C programming
C : Procedural
D : Fine
A : First
B : Last
C : Median
D : Random number
B : linear search
Q.no 5. Master theorem applies to recurrences of the form (a=1 and b>1) are two constants.
Select one:
A : T(N)=A.T(N/B)+F(N)
B : T(n)=n.T(n/2)+b.f(n)
C : T(N)=A.T(N-1)+B
D : T(N)=N.T(N-3)+B
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 114/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 6. The best suited algorithm could be decided using proof technique
A : false
B : true
C:
D:
A : Fibers Of Nerves
B : nuclear projections
D : Twisted Network
A : true
B : false
C:
D:
Q.no 9. If f(n) = ______, then there exists positive constants c1, c2, n0 such that 0 ≤ c1.g(n) ≤ f(n)
≤ c2.g(n), for all n ≥ n0
A : Θ(g(n))
B : O(g(n))
C : Ω(g(n))
D : little Ω(g(n))
Q.no 10. Which of the following methods can be used to solve the Knapsack problem?
B : Recursion
C : Dynamic programming
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 115/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 11. Which is the process of executing a correct program on data sets and
measuring the time and space it takes tocompute the results.
A : Debugging
B : Profiling
C : Conquer
D : Combining
A : O(n)
B : O(log n)
C : O( n^2)
D : O(n log n)
Q.no 13. A Greedy Algorithm can be used to solve all the Dynamic Programming problems.
A : True
B : FALSE
C:
D:
A : 1 Node
B : 2 Nodes
C : 3 Nodes
D : 4 Nodes
Q.no 15. In recursion, the condition for which the function will stop calling itself is
A : Best case
B : Worst case
C : Base case
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 116/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 16. Merge sort uses which of the following technique to implement sorting?
A : Backtracking
B : Greedy Algorithm
D : Dynamic Programming
A : greedy method
C : dynamic programming
Q.no 18. Floyd-Warshall algorithm, which finds shortest paths between all pairs of vertices, is a
A : Greedy Algorithm
D : Backtracking Algorithm
A : Operators Of Genetic
B : Functions of Genetic
C : Population Of Genetic
D : Member Function
A : Ɵ(n^2)
B : Ɵ(8)
C : Ɵ(log n)
D : Ɵ(n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 117/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 60
B : 80
C : 100
D : 40
Q.no 22. Multithreaded computation can be better understood with the help of a
D : Easy Network
A : T1 / T∞
B : T1 / Tp
C : Tp / T1
D : T∞/T1
A : O(n)
B : O(nLogn)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 118/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : O(n^2)
D : O(n^2Logn)
A : Member Function
B : Principle Of Optimality
C : Fitness Function
A : Parallel Programming
B : Dynamic Programming
C : Serial Programming
D : Multiprogramming
Q.no 28. You are given a knapsack that can carry a maximum weight of 60. There are 4 items
with weights {20, 30, 40, 70} and values {70, 80, 90, 200}. What is the maximum value of the items
you can carry using the knapsack?
A : 160
B : 200
C : 170
D : 90
A : precise
B : Ambigous
A : log n
B:n
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 119/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : n log n
D : n/2
Q.no 31. Choose the option with function having same complexity for a Fibonacci heap.
A : Insertion, Merge
B : Insertion, Deletion
C : ExtractMin, Insertion
D : Merge, Deletion
Q.no 32. Which of the given options provides the increasing order of asymptotic complexity of
functions f1, f2, f3 and f4?
f1(n) = 2^n
f2(n) = n^(3/2)
f3(n) = nLogn
f4(n) = n^(Logn)
D : None of these
A : true
B : false
C:
D:
Q.no 34. Choose the correct steps required to prove that a problem is NP complete?
A : 1. prove that problem is in P 2. Prove that every problem in P is reducible to the problem in
question in polynomial time.
B : 1.prove that problem is in P 2. Prove that the problem in question is reducible to any problem in P
in polynomial time.
C : 1.prove that problem is in NP 2. Prove that every problem in NP is reducible to the problem in
question in polynomial time.
D : 1.prove that problem is P 2. Prove that the problem in question is reducible to any problem in P in
polynomial time.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 120/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 35. Many multithreaded algorithms involving nested parallelism follow naturally from
A : Dynamic Programming
C : Greedy Method
Q.no 36. Suppose SAT reduces to a problem C. To claim that C is NP-complete, we additionally
need to show that:
Q.no 37. ____________ is an algorithm design method that can be used when the solution to a
problem can be viewed as the result of a sequence of decisions
A : Dynamic Programming
B : Backtracking
D : Greedy Method
Q.no 38. What are desirable characteristics of Algorithm with efficiency 1)Generality 2)
Availability 3) Simplicity
A : 1 and 2
B : 2 and 3
C : 1 and 3
D:
Q.no 39. In the development of dynamic programming the value of an optimal solution is
computed in Select one:
A : Top Up Fashion
B : Bottom Up Fashion
C : In Any Way
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 121/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Random
Q.no 40. we can refere to the common sense/ intution while specifing the algorithm
A : true
B : false
C:
D:
Q.no 41. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
C : built in function
D:
Q.no 42. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
C : Monte-Carlo Algorithm
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
Q.no 44. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 122/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
D:
Q.no 48. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
C : 290
D : 130
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 123/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
Q.no 50. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
Q.no 51. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
C : C) Non Associative
Q.no 53. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 124/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Not Flexible
B : Robust
C : Inappropriate
A : 400
B : 420
C : 500
D : 440
Q.no 56. How many times is the recursive function called, when the following code is executed?
A:7
B:9
C : 11
D : 13
Q.no 57. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
D : Not Flexible
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 125/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 59. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
Q.no 60. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
Q.no 1. steps followed in mathematical induction are 1)basis 2)Induction step 3) Induction
hypothesis
C : steps 1,2, 3
A : O(N)
B : O(N*log(N))
C : O(N * Sqrt(N))
D : O(N*N)
Q.no 3. In a max-heap, element with the greatest key is always in the which node?
A : Leaf node
C : Root node
Q.no 4. With minimal weighted external path length obtained by an optimal set Huffman codes
are the applications of?
A : BST
B : MST
C : Binary Tree
D : Weighted Graph
A : Independent
B : Dependent
C:
D:
A : one
B : two
C : several
D:
Q.no 7. What will be the best case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
Q.no 8. q29.jpeg
A : 111
B : 101
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 127/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : 110
D : 11
Q.no 9. Which is an essential tool for proving the statement that proves an algorithm's
correctness.
A : Mathematical induction
B : Flow chart
C : Pseudo code
D : Recursion
D : Approximation Algorithm
C : Network flow
D : Sorting
Q.no 12. What is the worst case time complexity of merge sort?
A : O(n log n)
B : O(n^2)
C : O(n^2 log n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 128/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 14. Which design strategy stops the execution when it finds the solution otherwise starts the
problem from top again?
A : Back Tracking
D : Dynamic Programming
A : switch -case
B : exit condition
C : loop
D:
Q.no 16. In the absence of a exit condition in a recursive function, the following error is given by?
C : Logical error
D : No error
Q.no 17. Which of the following can traverse the state space tree only in DFS manner?
B : Dynamic Programming
C : Greedy Algorithm
D : Backtracking
Q.no 18. _____is the minimum number of steps that can be executed for given input
A : Average case
B : Best case
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 129/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Worst case
D : Time complexity
Q.no 19. Which of the following algorithms is the best approach for solving Huffman codes?
A : Exhaustive Search
B : Greedy Algorithm
Q.no 20. The Data structure used in standard implementation of Breadth First search
is___________
A : Stack
B : Queue
C : Linked List
D : Tree
Q.no 21. Which of the following problems is NOT solved using dynamic programming?
A : Join Operator
C : Selection
D : Multiplication
Q.no 23. In amortized analysis, which method overcharges for operations early to compensate for
under-charges later?
A : Aggregate method
B : Accounting method
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 130/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Potential method
Q.no 24.
A : 10
B:1
C : 10 9 8 ……1 0
D : 10 9 8 ……1
Q.no 25. Which of the following is false in the case of a spanning tree of a graph G?
B : It is a subgraph of the G
Q.no 26. What is the pre-processing time of Rabin and Karp Algorithm?
A : Theta(m2)
B : Theta(mlogn)
C : Theta(m)
D : Big-Oh(n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 131/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 27. Which of the following can be used to define NP complete class? I) polynomial time
Verifier II) Polynomial time reducibility of the known NP complete problem
A : only I
B : only II
C : both I and II
D : neither I nor II
A : Initial condition
B : nested loop
C : invariant relation
D : termination
Q.no 29. Running the program many times is sufficient to prove the correctness of program
A : true
B : false
C:
D:
Q.no 30. The main time taking step in fractional knapsack problem is
C : Sorting
A : Mathematical Induction
B : Proof by cases
C : proof by contradiction
D : direct proof
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 132/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 32. Choose the correct steps to prove if the vertex cover problem is NP-Complete. I-- Vertex
Cover problem is in NP II--Clique problem is in NP III--Prove that Clique problem ≤ Vertex
Cover Problem in polynomial time IV---Prove that Vertex Cover problem ≤ Clique Problem in
polynomial time
A : I and III
B : I and IV
C : II and III
D : II and IV
Q.no 33. Which of the following branch and bound strategy leads to breadth first search?
Q.no 34. When the proof of a statement is started by assuming the statement is false the type of
proof is called _________.
A : proof by induction
B : proof by deduction
C : proof by contradiction
D:
A : greedy method
C : dynamic programming
A : O(n log n)
B : O(n)
C : O(1)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 133/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : O(nW)
Q.no 37. When a thread u spawns a new thread v, then (u,v) is called a
A : Simple edge
B : Return edge
C : Continuation edge
D : spawn edge
Q.no 38. A Fibonacci heap uses ………… memory than a binary heap.
A : less
B : equal
C : more
D : cannot say
Q.no 39. Which of the following statement about 0/1 knapsack and fractional knapsack problem
is correct?
A : In 0/1 Knapsack Problem Items Are Divisible And In Fractional Knapsack Items Are Indivisible
C : 0/1 Knapsack Is Solved Using A Greedy Algorithm And Fractional Knapsack Is Solved Using
Dynamic Programming
D : In 0/1 Knapsack Problem Items Are Indivisible And In Fractional Knapsack Items Are Divisible
A : the process
B : the decision
C : the loop
D : the sequential
Q.no 41. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 134/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Greedy method
C : backtracking
Q.no 42. In a proof by mathematical induction that for all positive integers n, is the "Summation
of numbers from 1 to n is equal to n(n + 1)/2" , inductive hypothesis would be to assume that
A : n=1
B : k=1
C : 1=1(1+1)/2
D : 1+2+3+…+k = k(k+1)/2
Q.no 43. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers cube" is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n^2(n+1)^2/4
D : n^2(n+1)^2/6
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
A : size of a computation
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 135/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 10080
B : 11070
C : 130110
D : 11080
A : O(n log n)
B : O(n)
C : O(nlogn)
D : O(nW)
Q.no 48. For any integer m>=3, the series 2+4+6+…+(4m) can be equivalent to ________
A : m^2 + 3
B : m^m
C:m
D : m+1
Q.no 49. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
Q.no 50. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
Q.no 51. The main time taking step in fractional knapsack problem is?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 136/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Sorting
Q.no 52. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
A : O(nlog n)
B : O(n^2 )
C : O( n)
D : O(log n)
A : D.H.Lehmer
B : L.Baumert
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 137/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : R.J.Walker
D : S. Golomb
Q.no 56. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
Q.no 57. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
Q.no 58. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
Q.no 59. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
B : 20*30
C : 10*30
D : 10*20*30
Q.no 60. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 138/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Π is NP-complete
Q.no 1. If the children of the root,from left to right, are the roots of Bk−1, Bk−2, . . . , B1, B0,
then root has degree .........
A : K-1
B:K
C : K+1
D : K+2
Q.no 2. In a computational complexity theory, a problem with decision making is said to be NP-
complete when it is both in NP and NP-hard. What does NP mean?
B : Non-deterministic Probabilistic
A : Natural Functions
B : Fitness Functions
D : Member Function
Q.no 4. The best suited algorithm could be decided using proof technique
A : false
B : true
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 139/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Unweighted graphs
Q.no 6. state whether True or false.. The solid base of algorithmic knowledge and technique is
one characteristic that separates the truly skilled programmers from the novices
A : true
B : false
C:
D:
A : O(1)
B : O(log n)
C : O(n)
D : O(n^2)
A : Pseudocode
B : Flowchart
D : both 1and 2
Q.no 10. If f(n) = ______, then there exists positive constants c, n0 such that 0 ≤ f(n) ≤ c.g(n), for
all n ≥ n0
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 140/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Θ(g(n))
B : O(g(n))
C : Ω(g(n))
D : Little o(g(n))
Q.no 11. In Algorithm Specification the blockes are indicated with matching
A : Braces
B : Parenthesis
C : Square Brackets
D : Slashes
Q.no 13. Which of the following algorithm can be used to solve the Hamiltonian path problem
efficiently?
B : iterative improvement
D : greedy algorithm
A : stack underflow
B : stack overflow
C : both
D:
Q.no 15. Which of the following algorithms has better time complexity?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 141/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : insertion sort
B : binary search
C : linear search
D : merge sort
Q.no 16. When an algorithm is written in the form of a specific programming language, it
becomes a _________
A : Pseudocode
B : Programme
C:
D:
Q.no 17. Amortized analysis is a technique that, given a sequence of operations, permits sharing
the cost of a single expensive operation with many other cheaper ones.
A : true
B : false
C:
D:
A : Rational
B : Irrational
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 142/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : true
B : false
C:
D:
Q.no 21. Which of the given options provides the increasing order of asymptotic complexity of
functions f1, f2, f3 and f4?
f1(n) = 2^n
f2(n) = n^(3/2)
f3(n) = nLogn
f4(n) = n^(Logn)
D : None of these
Q.no 22. The type of encoding where no character code is the prefix of another character code is
called?
A : optimal encoding
B : prefix encoding
C : Fequency encoding
D : Trie encoding
Q.no 24. Which of the following is/are property/properties of a dynamic programming problem?
A : Evolutionary Approach
C : Greedy Approach
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 143/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 25. Arrange following from highest to lowest order by complexity wise A log n B n! C nlogn
A : A,B, C
B : B, C, A
C : C, B ,A
D : B,A, C
A : log n
B:n
C : n log n
D : n/2
Q.no 27. A binomial heap with n nodes contains not more than ………. binomial trees.
A : O(n)
B : O(log n)
C : O(n+1)
D : O(n-1)
Q.no 29. In dynamic programming, the technique of storing the previously calculated values is
called ___________
C : Memoization
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 144/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Mapping
A : inverse proof
B : indirect proof
C : reverse proof
D:
Q.no 31. In analysis of algorithm, approximate relationship between the size of the job and the
amount of work required to do is expressed by using
A : Central tendency
B : Differential equation
C : Order of execution
D : Order of Storage
Q.no 32. How many stages(steps) of procedure does a non-deterministic algorithm consist of?
A:1
B:2
C:3
D:4
A : F1()
B : return
C : both
D : neither 1 nor 2
Q.no 34. If T= abcabaabc & P= abaa then what will be the value of s?
A:4
B:2
C:3
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 145/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:1
A : greedy method
C : dynamic programming
Q.no 36. Given an array of elements 5, 7, 9, 1, 3, 10, 8, 4. Which of the following is the correct
sequences of elements after inserting all the elements in a min-heap?
A : 1,3,4,5,7,8,9,10
B : 1,4,3,9,8,5,7,10
C : 1,3,4,5,8,7,9,10
D : 1,3,7,4,8,5,9,10
B : Dynamic programming
C : Greedy method
A : Correctness of algorithm
B : Efficiency of algorithm
C : both
D:
Q.no 39. Which of the following problems is equivalent to the 0-1 Knapsack problem?
A : You are given a bag that can carry a maximum weight of W. You are given N items which have a
weight of {w1, w2, w3,…., wn} and a value of {v1, v2, v3,…., vn}. You can break the items into
smaller pieces. Choose the items in such a way that you get the maximum value
B : You are studying for an exam and you have to study N questions. The questions take {t1, t2, t3,….,
tn} time(in hours) and carry {m1, m2, m3,…., mn} marks. You can study for a maximum of T hours.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 146/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
You can either study a question or leave it. Choose the questions in such a way that your score is
maximized
C : You are given infinite coins of denominations {v1, v2, v3,….., vn} and a sum S. You have to find
the minimum number of coins required to get the sum S
D : You are given a suitcase that can carry a maximum weight of 15kg. You are given 4 items which
have a weight of {10, 20, 15,40} and a value of {1, 2, 3,4}. You can break the items into smaller
pieces. Choose the items in such a way that you get the maximum value
Q.no 40. What will be the position of 6, when a max heap is constructed on the input elements 6,
71, 46, 8, 13, 16, 14, 66, 31, 27?
Q.no 41. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
C : built in function
D:
A : 400
B : 420
C : 500
D : 440
Q.no 43. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
Q.no 44. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
Q.no 45. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
C : 290
D : 130
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
A : 38
B : 40
C : 38.3
D : 45
Q.no 50. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
C : Monte-Carlo Algorithm
Q.no 51. How many times is the recursive function called, when the following code is executed?
A:7
B:9
C : 11
D : 13
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
Q.no 53. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 149/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
Q.no 54. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
Q.no 55. Basic operations like insertion, look-up and removal in splay trees are performed in
……. time.
A : O(1)
B : O(n)
C : O(log n)
D : O(n log n)
Q.no 56. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
Q.no 57. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 150/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : D.H.Lehmer
B : L.Baumert
C : R.J.Walker
D : S. Golomb
Q.no 59. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
Q.no 60. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
C : backtracking
A : The number of arithmetic and the operations that are required to run the program
A : insertion sort
B : binary search
C : linear search
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 151/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : merge sort
A : Fibers Of Nerves
B : nuclear projections
D : Twisted Network
A : greedy method
C : dynamic programming
B : Dynamic Programming
C : Backtracking
D : Greedy Approach
Q.no 7. Which is the process of executing a correct program on data sets and
measuring the time and space it takes tocompute the results.
A : Debugging
B : Profiling
C : Conquer
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 152/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Combining
Q.no 8. In computer science, algorithm refers to a special method usable by a computer for the
solution to a problem.
A : true
B : false
C:
D:
D : Approximation Algorithm
Q.no 11. A Greedy Algorithm can be used to solve all the Dynamic Programming problems.
A : True
B : FALSE
C:
D:
Q.no 12. If f(n) = ______, then there exists positive constants c, n0 such that 0 ≤ c.g(n) ≤ f(n), for
all n ≥ n0
A : Θ(g(n))
B : O(g(n))
C : Ω(g(n))
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 153/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : little Ω(g(n))
Q.no 13. State whether True or False An algorithm is said to be correct if, for every input
instance, it halts with the correct output
A : true
B : false
C:
D:
Q.no 14. Which of the following standard algorithms is not a Greedy algorithm?
B : Prim’s algorithm
C : Huffman Coding
Q.no 15. Which of the following case does not exist in complexity theory?
A : Best case
B : Average case
C : Null case
D : Worst case
Q.no 16. In a binomial heap the root value is greater than left child and less than right child.
A : true
B : false
C:
D:
Q.no 17. The problem of finding a path in a graph that visits every vertex exactly once is called?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 154/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Contradiction
B : Approximation
C : Mathematical induction
D:
Q.no 19. Problems that cannot be solved by any algorithm are called?
A : tractable problems
B : intractable problems
C : undecidable problems
D : decidable problems
Q.no 21. Which of the following is false in the case of a spanning tree of a graph G?
B : It is a subgraph of the G
D : Simulated Annealing
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 155/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Initial condition
B : nested loop
C : invariant relation
D : termination
Q.no 24. Which of the following statement about 0 1 knapsack and fractional knapsack problem
is correct?
A : In 0 1 knapsack problem items are divisible and in fractional knapsack items are indivisible
C : 0 1 knapsack is solved using a greedy algorithm and fractional knapsack is solved using dynamic
programming
D : In 0 1 knapsack problem items are indivisible and in fractional knapsack items are divisible
Q.no 25. Loop invariant is inert assertion and not useful in analysis of program.
A : true
B : false
C:
D:
Q.no 26. Consider the strings “PQRSTPQRS” and “PRATPBRQRPS”. What is the length of the
longest common subsequence?
A:9
B:8
C:7
D:6
Q.no 27. You are given a knapsack that can carry a maximum weight of 60. There are 4 items
with weights {20, 30, 40, 70} and values {70, 80, 90, 200}. What is the maximum value of the items
you can carry using the knapsack?
A : 160
B : 200
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 156/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : 170
D : 90
Q.no 28. From the following which is not return optimal solution
A : Dynamic programming
B : Backtracking
D : Greedy method
Q.no 29. Which of the following is not a branch and bound strategy to generate branches?
Q.no 30. What is the pre-processing time of Rabin and Karp Algorithm?
A : Theta(m2)
B : Theta(mlogn)
C : Theta(m)
D : Big-Oh(n)
Q.no 31. Which of the following problems is NOT solved using dynamic programming?
Q.no 32. From the following choose the one which belongs to the algorithm paradigm other than
to which others from the following belongs to.
B : Knapsack problem
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 157/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Selection problem
D : Merge sort
Q.no 33. Which of the following problems is similar to that of a Hamiltonian path problem?
A : knapsack problem
D : assignment problem
A : Process
B : Work
C : Thread
D : Span
Q.no 35. Choose the option with function having same complexity for a Fibonacci heap.
A : Insertion, Merge
B : Insertion, Deletion
C : ExtractMin, Insertion
D : Merge, Deletion
Q.no 36. Power saving is an important job in embedded systm and sensor network.
A : true
B : false
C:
D:
B : Dynamic programming
C : Greedy method
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 158/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 38. Many multithreaded algorithms involving nested parallelism follow naturally from
A : Dynamic Programming
C : Greedy Method
Q.no 39. Choose the correct steps to prove if the vertex cover problem is NP-Complete. I-- Vertex
Cover problem is in NP II--Clique problem is in NP III--Prove that Clique problem ≤ Vertex
Cover Problem in polynomial time IV---Prove that Vertex Cover problem ≤ Clique Problem in
polynomial time
A : I and III
B : I and IV
C : II and III
D : II and IV
B : Branch And Bound Is Not Suitable Where A Greedy Algorithm Is Not Applicable
C : Branch And Bound Divides A Problem Into At Least 2 New Restricted Sub Problems
Q.no 41. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
Q.no 42. For any integer m>=3, the series 2+4+6+…+(4m) can be equivalent to ________
A : m^2 + 3
B : m^m
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 159/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C:m
D : m+1
Q.no 43. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
B : 20*30
C : 10*30
D : 10*20*30
A : Not Flexible
B : Robust
C : Inappropriate
Q.no 45. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers cube" is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n^2(n+1)^2/4
D : n^2(n+1)^2/6
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
A : Optimal solution
B : Best solution
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 160/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Worst solution
D : All solutions
A : O(nlog n)
B : O(n^2 )
C : O( n)
D : O(log n)
D:
Q.no 50. The main time taking step in fractional knapsack problem is?
C : Sorting
Q.no 51. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
C : Π is NP-complete
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 161/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 10080
B : 11070
C : 130110
D : 11080
Q.no 54. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
Q.no 55. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
Q.no 56. Consider the following code snippet. What will happen when the above snippet is
executed?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 162/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
Q.no 57. In a proof by mathematical induction that for all positive integers n, is the "Summation
of numbers from 1 to n is equal to n(n + 1)/2" , inductive hypothesis would be to assume that
A : n=1
B : k=1
C : 1=1(1+1)/2
D : 1+2+3+…+k = k(k+1)/2
Q.no 58. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
Q.no 59. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
C : built in function
D:
C : C) Non Associative
Q.no 1. Which data structure is used for implementing a FIFO branch and bound strategy?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 163/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Stack
B : Queue
C : Array
D : Linked List
Q.no 2. What will be the best case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
A:n
B : n^2
C : nlogn
D:
A : true
B : false
C:
D:
A : Roots
B : Leafs
Q.no 7. _________ is the class of decision problems that can be solved by non-deterministic
polynomial algorithms?
A : NP
B:P
C : Hard
D : Complete
A : Array
B : queue
C : stack
D : linked list
Q.no 9. Fibonacci heap has better amortized running time compared to a binomial heap.
A : true
B : false
C:
D:
Q.no 10. What is the worst case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
Q.no 11. steps followed in mathematical induction are 1)basis 2)Induction step 3) Induction
hypothesis
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 165/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : steps 1,2, 3
A : Priority queue
B : Stack
D : Normal Array
Q.no 13. Recursion is a method in which the solution of a problem depends on?
Q.no 14. Keywords________indicates that iteration of the loop may run concurrently.
A : Parallel loop
B : Thread
C : Parallel for
D : Multithreading
Q.no 15. Which is a condition about the relationship between the variables of our program which
is definitely true immediately before and immediately after each iteration of the loop?
A : For condition
C : Both a and b
D : If condition
A : decidable problem
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 166/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : undecidable problem
C : complete problem
D : trackable problem
Q.no 17. Tractable Problem is a problem that is not solvable by a polynomial-time algorithm
A : true
B : false
C:
D:
Q.no 18. All the iterations in the parallel loop should be __________
A : Independent
B : Dependent
C:
D:
Q.no 19. In recursion, the condition for which the function will stop calling itself is?
A : Best case
B : Worst case
C : Base case
A : Constant
C : logarithmic
D : linear
Q.no 21. loop termination condition along with what makes loop correct
A : loop condition
C : loop invariant
D : none of these
Q.no 22. Which of the given options provides the increasing order of asymptotic complexity of
functions f1, f2, f3 and f4?
f1(n) = 2^n
f2(n) = n^(3/2)
f3(n) = nLogn
f4(n) = n^(Logn)
D : None of these
Q.no 23. Which data structure is most suitable for implementing best first branch and bound
strategy?
A : Stack
B : Queue
C : Priority Queue
D : Linked List
A : Join Operator
C : Selection
D : Multiplication
Q.no 26. When a thread u spawns a new thread v, then (u,v) is called a
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 168/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Simple edge
B : Return edge
C : Continuation edge
D : spawn edge
Q.no 28. Which of the following methods can be used to solve the matrix chain multiplication
problem?
B : Greedy
C : Backtracking
Q.no 29. Which of the following branch and bound strategy leads to depth first search?
Q.no 30. In the development of dynamic programming the value of an optimal solution is
computed in Select one:
A : Top Up Fashion
B : Bottom Up Fashion
C : In Any Way
D : Random
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 169/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : O(n log n)
B : O(n)
C : O(1)
D : O(nW)
D : Easy Network
Q.no 34. Which one of the following is true about Binary search?
A : the best-case occurs when the target item is in the beginning of the search list
B : the best-case occurs when the target is at the end of the search list
C : the worst-case is when the target item is not in the search list
D : the worst-case is when the target is found in the middle of the search list
Q.no 35. What is the purpose of using randomized quick sort over standard quick sort?
D : To improve accuracy
Q.no 36. How many stages(steps) of procedure does a non-deterministic algorithm consist of?
A:1
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 170/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B:2
C:3
D:4
Q.no 37. Which of the following branch and bound strategy leads to breadth first search?
Q.no 38. In amortized analysis, which method overcharges for operations early to compensate for
under-charges later?
A : Aggregate method
B : Accounting method
C : Potential method
Q.no 39. What is the time, space complexity of following code: int a = 0, b = 0;
for (i = 0; i < N; i++) {
a = a + rand();
}
for (j = 0; j < M; j++) {
b = b + rand();
}
Q.no 40. Which of the following problems can’t be solved using recursion?
A : Factorial of a number
C : Length of a string
Q.no 42. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
A : O(n log n)
B : O(n)
C : O(nlogn)
D : O(nW)
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
Q.no 45. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 172/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : backtracking
A : D.H.Lehmer
B : L.Baumert
C : R.J.Walker
D : S. Golomb
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
Q.no 48. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
C : 290
D : 130
Q.no 49. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 173/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Not Flexible
Q.no 51. Basic operations like insertion, look-up and removal in splay trees are performed in
……. time.
A : O(1)
B : O(n)
C : O(log n)
D : O(n log n)
Q.no 52. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
Q.no 53. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
Q.no 54. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 174/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : size of a computation
Q.no 56. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
Q.no 57. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
C : C) Non Associative
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 175/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 10080
B : 11070
C : 130110
D : 11080
A : O(n)
B : O(1)
C : O(log n)
D : O(n^2)
A : stack underflow
B : stack overflow
C : both
D:
C : A recursive function where the function doesn’t return anything and just prints the values
D : A function where the recursive call is the last thing executed by the function
Q.no 4. parallel algorithms that can run on a ____________ that permits multiple instructions to
execute concurrently
A : Uniprocessor
B : Serial Computer
C : Mainframe Computer
D : Multiprocessor computer
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 176/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 5. In a computational complexity theory, a problem with decision making is said to be NP-
complete when it is both in NP and NP-hard. What does NP mean?
B : Non-deterministic Probabilistic
Q.no 6. Fill in the blank. The notion of correctness for approximation algorithms is
…………...straightforward
than it is for exact algorithms
A : More
B : Less
C:
D:
A:n
B : n^2
C : nlogn
D:
Q.no 8. Two main measures for the efficiency of an algorithm are 1)time 2) space 3) lines of code
A : 1 and 2
B : 2 and 3
C : 1 and 3
D:
A : Brain
B : Nucleus
C : Neuron
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 177/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Axon
Q.no 10. Master theorem applies to recurrences of the form (a=1 and b>1) are two constants.
Select one:
A : T(N)=A.T(N/B)+F(N)
B : T(n)=n.T(n/2)+b.f(n)
C : T(N)=A.T(N-1)+B
D : T(N)=N.T(N-3)+B
Q.no 11. The algorithm that do NOT have O(1) time complexity is____
D : Addition of n numbers
Q.no 12. Two main measures for the efficiency of an algorithm are
Q.no 13. Which of the following algorithms has worst time complexity?
A : insertion sort
B : binary search
C : linear search
D : merge sort
Q.no 14. Which of the following algorithms is the best approach for solving Huffman codes?
A : Exhaustive Search
B : Greedy Algorithm
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 178/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Greedy Technique
B : Dynamic Programming
C : Linear Programming
D : Backtracking
Q.no 16. Problems that can be solved in polynomial time are known as?
A : intractable
B : tractable
C : decision
D : complete
A : Pseudocode
B : Flowchart
D : both 1and 2
A : Language dependent
B : Language independent
C:
D:
Q.no 19. Which of the following methods can be used to solve the Knapsack problem?
B : Recursion
C : Dynamic programming
Q.no 20. Running time of algorithm varies with the size of the input called____
A : Growth of Function
B : Order of growth
C : Growth Rate
Q.no 21. Suppose SAT reduces to a problem C. To claim that C is NP-complete, we additionally
need to show that:
A : greedy method
C : dynamic programming
Q.no 23. The procedure FindMin() to find the minimum element and the procedure DeleteMin()
to delete the minimum element in min heap take ……….
A : Member Function
B : Principle Of Optimality
C : Fitness Function
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 180/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 25. Given an array of elements 5, 7, 9, 1, 3, 10, 8, 4. Which of the following is the correct
sequences of elements after inserting all the elements in a min-heap?
A : 1,3,4,5,7,8,9,10
B : 1,4,3,9,8,5,7,10
C : 1,3,4,5,8,7,9,10
D : 1,3,7,4,8,5,9,10
Q.no 26. Which of the following method is used for sorting in merge sort?
A : Merging
B : Partitioning
C : Selection
D : Exchanging
Q.no 27. If an optimal solution can be created for a problem by constructing optimal solutions
for its subproblems, the problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
Q.no 28. Time taken in decreasing the node value in a binomial heap is
A : O(n)
B : O(1)
C : O(log n)
D : O(n log n)
Q.no 29. What is the pre-processing time of Rabin and Karp Algorithm?
A : Theta(m2)
B : Theta(mlogn)
C : Theta(m)
D : Big-Oh(n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 181/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 30. Let X be a problem that belongs to the class NP. Then which one of the following is
TRUE?
D : X may be undecidable.
Q.no 31. To prove the statement " There are infinitely many prime numbers" by contradiction
what is the assumption for P?
A : P is infinite set
B : P is finite set
C:
D:
Q.no 32. When the proof of a statement is started by assuming the statement is false the type of
proof is called _________.
A : proof by induction
B : proof by deduction
C : proof by contradiction
D:
Q.no 33. The term ________ refers to all state space search methods in which all children of the –
nodes are generated before any other live node can become the E-node.
A : Backtacking
A : O(n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 182/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : O(nLogn)
C : O(n^2)
D : O(n^2Logn)
Q.no 35. The main time taking step in fractional knapsack problem is
C : Sorting
Q.no 36. Given items as {value,weight} pairs {{60,20},{50,25},{20,5}}. The capacity of knapsack is
40. Find the maximum value output assuming items to be divisible and nondivisible respectively.
A : 100, 80
B : 110, 70
C : 130, 110
D : 110, 80
A : All problems in P
D : Halting problem
Q.no 38. Consider the strings “PQRSTPQRS” and “PRATPBRQRPS”. What is the length of the
longest common subsequence?
A:9
B:8
C:7
D:6
Q.no 39. Which of the following statement about 0 1 knapsack and fractional knapsack problem
is correct?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 183/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : In 0 1 knapsack problem items are divisible and in fractional knapsack items are indivisible
C : 0 1 knapsack is solved using a greedy algorithm and fractional knapsack is solved using dynamic
programming
D : In 0 1 knapsack problem items are indivisible and in fractional knapsack items are divisible
A : Each recursive call should be on a smaller instance of the same problem, that is, a smaller
subproblem
B : The recursive calls must eventually reach a base case, which is solved without further recursion.
C : both 1 and 2
D : Either 1 or 2
Q.no 42. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
Q.no 43. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
C : Monte-Carlo Algorithm
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 184/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : O(nlog n)
B : O(n^2 )
C : O( n)
D : O(log n)
Q.no 45. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
Q.no 46. How many times is the recursive function called, when the following code is executed?
A:7
B:9
C : 11
D : 13
Q.no 47. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
C : Π is NP-complete
D:
Q.no 49. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
B : 20*30
C : 10*30
D : 10*20*30
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
Q.no 52. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers cube" is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n^2(n+1)^2/4
D : n^2(n+1)^2/6
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 186/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 53. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
A : 400
B : 420
C : 500
D : 440
Q.no 55. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
Q.no 56. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
Q.no 57. The main time taking step in fractional knapsack problem is?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 187/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Sorting
Q.no 58. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
A : 38
B : 40
C : 38.3
D : 45
Q.no 1. One can have __________, where each processor can directly access any location of
memory
A : Shared Memory
B : Cache Memory
C : Distributed Memory
D : Private Memory
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 188/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : one
B : two
C : several
D:
Q.no 3. What is the type of the algorithm used in solving the 8 Queens problem?
A : Backtracking
B : Dynamic Programming
Q.no 4. Which of the following algorithm can be used to solve the Hamiltonian path problem
efficiently?
B : iterative improvement
D : greedy algorithm
Q.no 6. If f(n) = ______, then there exists positive constants c1, c2, n0 such that 0 ≤ c1.g(n) ≤ f(n)
≤ c2.g(n), for all n ≥ n0
A : Θ(g(n))
B : O(g(n))
C : Ω(g(n))
D : little Ω(g(n))
Q.no 7. q29.jpeg
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 189/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 111
B : 101
C : 110
D : 11
A : Many
B : Two
C : One
D : Three
A : NP class
B : P class
C : NP Complete
D : NP Hard
Q.no 10. There are four algorithms A1, A2, A3, A4 to solve the given problem with the order
log(n), nlog(n), log(log(n)), n^2, Which is the best algorithm.
A : A1
B : A2
C : A3
D : A4
Q.no 11. The space factor when determining the efficiency of algorithm is measured by
Q.no 12. For the improvement of efficiency of quick sort the pivot can be____
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 190/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 13. When an algorithm is written in the form of a specific programming language, it
becomes a _________
A : Pseudocode
B : Programme
C:
D:
Q.no 14. In a max-heap, element with the greatest key is always in the which node?
A : Leaf node
C : Root node
A : Fibers Of Nerves
B : nuclear projections
D : Twisted Network
Q.no 16. What is the average case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
Q.no 17. Which of the following methods can be used to solve the longest common subsequence
problem?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 191/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Not Recursion
B : Dynamic Programming
D : Greedy Algorithm
A : Definiteness
B : finiteness
C : scalability
D : effectiveness
C : Network flow
D : Sorting
Q.no 20. The main distinguishable characteristic of a binomial heap from a binary heap is that
B : It does not allow union operations that could easily be implemented in binary heap.
Q.no 21. Problems that can be solved in polynomial time are known as ……… problems.
A : Intractable
B : Tractable
C : Undecidable
D : Decidable
A : true
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 192/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : false
C:
D:
Q.no 23. we can refere to the common sense/ intution while specifing the algorithm
A : true
B : false
C:
D:
Q.no 24. Which of the following is not a branch and bound strategy to generate branches?
A : O(n)
B : O(NlogN)
C:
D:
Q.no 26. In the development of dynamic programming the value of an optimal solution is
computed in Select one:
A : Top Up Fashion
B : Bottom Up Fashion
C : In Any Way
D : Random
Q.no 27. An algorithm that always runs in polynomial time but possibly returns erroneous
answers is called a …………
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 193/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Approximation algorithm
Q.no 28. Parallel loops are like an ordinary_______________except that the iterations of the loop
can execute concurrently.
A : While loop
B : For Loop
C : Do while loop
D : If statement
Q.no 29. ____________ is an algorithm design method that can be used when the solution to a
problem can be viewed as the result of a sequence of decisions
A : Dynamic Programming
B : Backtracking
D : Greedy Method
Q.no 30. For a good loop invariant, following property is not important
A : Initialization
B : Maintenance
C : Termination:
D : loop condition
A : Initial condition
B : nested loop
C : invariant relation
D : termination
Q.no 32. Which of the following problems is NOT solved using dynamic programming?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 194/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 33. From the following which is not return optimal solution
A : Dynamic programming
B : Backtracking
D : Greedy method
A : Parallel Programming
B : Dynamic Programming
C : Serial Programming
D : Multiprogramming
Q.no 35. Mathematical induction allows us to prove the correctness and efficiency of algorithm
both
A : true
B : false
C:
D:
A : Mathematical Induction
B : Proof by cases
C : proof by contradiction
D : direct proof
Q.no 37. Running the program many times is sufficient to prove the correctness of program
A : true
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 195/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : false
C:
D:
A : No Population
B : Chromosomes
C : Not Gene,
D : Not Allele
Q.no 39. The Knapsack problem where the objective function is to minimize the profit is
A : Greedy
B : Dynamic 0 / 1
C : Back tracking
Q.no 40. Which of the given options provides the increasing order of asymptotic complexity of
functions f1, f2, f3 and f4?
f1(n) = 2^n
f2(n) = n^(3/2)
f3(n) = nLogn
f4(n) = n^(Logn)
D : None of these
A : 10080
B : 11070
C : 130110
D : 11080
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 196/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 42. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
C : backtracking
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
A : size of a computation
Q.no 45. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
C : 290
D : 130
A : Not Flexible
B : Robust
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 197/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Inappropriate
Q.no 47. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
Q.no 48. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
C : built in function
D:
Q.no 49. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
D : Not Flexible
Q.no 51. For any integer m>=3, the series 2+4+6+…+(4m) can be equivalent to ________
A : m^2 + 3
B : m^m
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 198/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C:m
D : m+1
Q.no 52. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
Q.no 53. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
A : D.H.Lehmer
B : L.Baumert
C : R.J.Walker
D : S. Golomb
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
Q.no 56. Basic operations like insertion, look-up and removal in splay trees are performed in
……. time.
A : O(1)
B : O(n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 199/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : O(log n)
D : O(n log n)
A : O(n log n)
B : O(n)
C : O(nlogn)
D : O(nW)
Q.no 58. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
C : C) Non Associative
Q.no 60. In a proof by mathematical induction that for all positive integers n, is the "Summation
of numbers from 1 to n is equal to n(n + 1)/2" , inductive hypothesis would be to assume that
A : n=1
B : k=1
C : 1=1(1+1)/2
D : 1+2+3+…+k = k(k+1)/2
A : O(N Log N)
B : O(n*n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 200/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : O(Log N)
D : O(Log Log N)
A : Independent
B : Dependent
C:
D:
Q.no 3. Floyd-Warshall algorithm, which finds shortest paths between all pairs of vertices, is a
A : Greedy Algorithm
D : Backtracking Algorithm
A : O(n)
B : O(n^3)
C : O(n^2)
D : O(log n)
Q.no 5. Two main measures for the efficiency of an algorithm are 1)time 2) space 3) lines of code
A : 1 and 2
B : 2 and 3
C : 1 and 3
D:
Q.no 6. State whether True or False An algorithm is said to be correct if, for every input instance,
it halts with the correct output
A : true
B : false
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 201/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C:
D:
A : Linear
B : polynomial
C : quadratic
D : exponential
Q.no 10. Which of the following standard algorithms is not a Greedy algorithm?
B : Prim’s algorithm
C : Huffman Coding
A : Ɵ(n^2)
B : Ɵ(8)
C : Ɵ(log n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 202/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Ɵ(n)
Q.no 12. Fibonacci heap has better amortized running time compared to a binomial heap.
A : true
B : false
C:
D:
Q.no 13. If the children of the root,from left to right, are the roots of Bk−1, Bk−2, . . . , B1, B0,
then root has degree .........
A : K-1
B:K
C : K+1
D : K+2
A:n
B : n^2
C : nlogn
D:
Q.no 15. Which data structure is used for implementing a FIFO branch and bound strategy?
A : Stack
B : Queue
C : Array
D : Linked List
Q.no 16. In recursion, the condition for which the function will stop calling itself is
A : Best case
B : Worst case
C : Base case
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 203/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Greedy strategy
C : Backtracking
D : Dynamic programming
Q.no 18. Which of the following is incorrect for the given phrase: ’solvable by non deterministic
algorithms in polynomial time’
A : NP problems
B : P problem
C : NP complete problem
D : NP hard problem
A:n
B : n^2
C : nlogn
D:
A : Rational
B : Irrational
C:
D:
A : Join Operator
C : Selection
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 204/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Multiplication
A : greedy method
C : dynamic programming
B : Dynamic programming
C : Greedy method
Q.no 24. Power saving is an important job in embedded systm and sensor network.
A : true
B : false
C:
D:
Q.no 25. Which of the following is false in the case of a spanning tree of a graph G?
B : It is a subgraph of the G
A : O(n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 205/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : O(nLogn)
C : O(n^2)
D : O(n^2Logn)
Q.no 27. The type of encoding where no character code is the prefix of another character code is
called?
A : optimal encoding
B : prefix encoding
C : Fequency encoding
D : Trie encoding
D : Simulated Annealing
Q.no 29. Which of the following is/are property/properties of a dynamic programming problem?
A : Evolutionary Approach
C : Greedy Approach
Q.no 31. When the proof of a statement is started by assuming the statement is false the type of
proof is called _________.
A : proof by induction
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 206/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : proof by deduction
C : proof by contradiction
D:
Q.no 32. Choose the correct steps to prove if the 3 SAT CNF problem is NP-Complete. I-- SAT
problem is in NP II--3 SAT CNF problem is in NP III--Prove that SAT ≤ 3 SAT CNF Problem in
polynomial time IV---Prove that 3 SAT CNF problem ≤ SAT Problem in polynomial time
A : I and III
B : I and IV
C : II and III
D : II and IV
Q.no 33. If txt[] = "THIS IS A TEST TEXT" and pat[] = "TEST", what will be the index of
pattern?
A:9
B : 13
C : 11
D : 10
Q.no 34. Which of the following branch and bound strategy leads to breadth first search?
Q.no 35. Which of the following options match the given statement:
The algorithms that use the random input to reduce the expected running time or memory usage,
but always terminate with a correct result in a bounded amount of time.
D : Approximation algorithm
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 207/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 36. What will be the position of 6, when a max heap is constructed on the input elements 6,
71, 46, 8, 13, 16, 14, 66, 31, 27?
Q.no 38. Consider the strings “PQRSTPQRS” and “PRATPBRQRPS”. What is the length of the
longest common subsequence?
A:9
B:8
C:7
D:6
A : inverse proof
B : indirect proof
C : reverse proof
D:
Q.no 40. Which data structure is most suitable for implementing best first branch and bound
strategy?
A : Stack
B : Queue
C : Priority Queue
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 208/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Linked List
Q.no 41. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
A : O(nlog n)
B : O(n^2 )
C : O( n)
D : O(log n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 209/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 45. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
D:
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
A : 400
B : 420
C : 500
D : 440
Q.no 49. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
C : Monte-Carlo Algorithm
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 210/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 50. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
C : Π is NP-complete
Q.no 51. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
Q.no 53. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers cube" is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n^2(n+1)^2/4
D : n^2(n+1)^2/6
Q.no 54. How many times is the recursive function called, when the following code is executed?
A:7
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 211/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B:9
C : 11
D : 13
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
Q.no 56. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
Q.no 57. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
Q.no 58. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 212/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 38
B : 40
C : 38.3
D : 45
Q.no 60. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
B : Prim's algorithm
C : Kruskal algorithm
Q.no 2. Which of the following algorithms is the best approach for solving Huffman codes?
A : Exhaustive Search
B : Greedy Algorithm
Q.no 3. The choice of polynomial class has led to the development of an extensive theory called
________
A : computational complexity
B : time complexity
C : problem complexity
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 213/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : decision complexity
A : 1 Node
B : 2 Nodes
C : 3 Nodes
D : 4 Nodes
Q.no 5. _____is the average number of steps that can be executed for given input
A : Average case
B : Best case
C : Worst case
D : Time complexity
A : NP problem
B : N class problem
C : P class problem
D : NP complete problem
Q.no 8. Which of the following can traverse the state space tree only in DFS manner?
B : Dynamic Programming
C : Greedy Algorithm
D : Backtracking
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 214/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : one
B : two
C : several
D:
A : Greedy strategy
C : Dynamic programming
A : The number of arithmetic and the operations that are required to run the program
A : Structural
B : C programming
C : Procedural
D : Fine
A : Switch Case
B : Loop
C : If else
D : if elif else
C : Simulated Annealing
D : Adaptive Linear
Q.no 17. Two main measures for the efficiency of an algorithm are
A : decidable problem
B : undecidable problem
C : complete problem
D : trackable problem
Q.no 19. Tractable Problem is a problem that is not solvable by a polynomial-time algorithm
A : true
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 216/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : false
C:
D:
Q.no 20. Amortized analysis is a technique that, given a sequence of operations, permits sharing
the cost of a single expensive operation with many other cheaper ones.
A : true
B : false
C:
D:
Q.no 21. Arrange following from lowest to highest order by complexity wise A log n B n! C nlogn
A : A,B, C
B : B, C, A
C : A, C, B
D : B,A, C
Q.no 22. From the following which is not return optimal solution
A : Dynamic programming
B : Backtracking
D : Greedy method
D : Easy Network
Q.no 24. What is the time, space complexity of following code: int a = 0, b = 0;
for (i = 0; i < N; i++) {
a = a + rand();
}
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 217/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 25. Given an array of elements 5, 7, 9, 1, 3, 10, 8, 4. Which of the following is the correct
sequences of elements after inserting all the elements in a min-heap?
A : 1,3,4,5,7,8,9,10
B : 1,4,3,9,8,5,7,10
C : 1,3,4,5,8,7,9,10
D : 1,3,7,4,8,5,9,10
A : greedy method
C : dynamic programming
A : Correctness of algorithm
B : Efficiency of algorithm
C : both
D:
A : Fn(10)
B : return
C : if (n==0)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 218/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Fn(n-1)
Q.no 29. Which of the following methods can be used to solve the matrix chain multiplication
problem?
B : Greedy
C : Backtracking
Q.no 30. Arrange following from highest to lowest order by complexity wise A log n B n! C nlogn
A : A,B, C
B : B, C, A
C : C, B ,A
D : B,A, C
Q.no 31. Which data structure has a better amortized running time than others?
A : Queue
B : Stack
C : Priority Queue
D : List
Q.no 32. Which of the following problems can’t be solved using recursion?
A : Factorial of a number
C : Length of a string
Q.no 33. Multithreaded computation can be better understood with the help of a
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 219/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : precise
B : Ambigous
Q.no 35. A Fibonacci heap uses ………… memory than a binary heap.
A : less
B : equal
C : more
D : cannot say
Q.no 36. Which of the following statement about 0/1 knapsack and fractional knapsack problem
is correct?
A : In 0/1 Knapsack Problem Items Are Divisible And In Fractional Knapsack Items Are Indivisible
C : 0/1 Knapsack Is Solved Using A Greedy Algorithm And Fractional Knapsack Is Solved Using
Dynamic Programming
D : In 0/1 Knapsack Problem Items Are Indivisible And In Fractional Knapsack Items Are Divisible
Q.no 37. Which of the following branch and bound strategy leads to depth first search?
Q.no 38. Many multithreaded algorithms involving nested parallelism follow naturally from
A : Dynamic Programming
C : Greedy Method
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 220/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 39. Time taken in decreasing the node value in a binomial heap is
A : O(n)
B : O(1)
C : O(log n)
D : O(n log n)
Q.no 40. What are desirable characteristics of Algorithm with efficiency 1)Generality 2)
Availability 3) Simplicity
A : 1 and 2
B : 2 and 3
C : 1 and 3
D:
Q.no 41. The main time taking step in fractional knapsack problem is?
C : Sorting
Q.no 42. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
Q.no 43. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 221/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : 290
D : 130
Q.no 44. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
Q.no 45. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
Q.no 46. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
Q.no 47. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 222/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 10080
B : 11070
C : 130110
D : 11080
A : Not Flexible
B : Robust
C : Inappropriate
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
Q.no 51. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
B : 20*30
C : 10*30
D : 10*20*30
Q.no 52. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 223/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : D.H.Lehmer
B : L.Baumert
C : R.J.Walker
D : S. Golomb
A : size of a computation
Q.no 55. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
C : backtracking
C : C) Non Associative
Q.no 57. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 224/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Not Flexible
Q.no 59. In a proof by mathematical induction that for all positive integers n, is the "Summation
of numbers from 1 to n is equal to n(n + 1)/2" , inductive hypothesis would be to assume that
A : n=1
B : k=1
C : 1=1(1+1)/2
D : 1+2+3+…+k = k(k+1)/2
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
Q.no 1. In recursion, the condition for which the function will stop calling itself is
A : Best case
B : Worst case
C : Base case
Q.no 2. When an algorithm is written in the form of a specific programming language, it becomes
a _________
A : Pseudocode
B : Programme
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 225/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 3. Fibonacci heap has better amortized running time compared to a binomial heap.
A : true
B : false
C:
D:
Q.no 4. Which data structure is used for implementing a LIFO branch and bound strategy?
A : Stack
B : Queue
C : Array
D : Linked List
A : O(n)
B : O(Logn)
C : O(n^2)
D : O(n^2Logn)
Q.no 6. Which design strategy stops the execution when it finds the solution otherwise starts the
problem from top again?
A : Back Tracking
D : Dynamic Programming
A : O(n)
B : O(log n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 226/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : O( n^2)
D : O(n log n)
Q.no 8. With minimal weighted external path length obtained by an optimal set Huffman codes
are the applications of?
A : BST
B : MST
C : Binary Tree
D : Weighted Graph
A : O(1)
B : O(log n)
C : O(n)
D : O(n^2)
A : Pseudocode
B : Programme
C : Grammar
D : flowchart
Q.no 11. From the following which is not return optimal solution
A : Dynamic Programming
C : Backtracking
D : Greedy Method
Q.no 12. _____is the maximum number of steps that can be executed for given input
A : Average case
B : Best case
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 227/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Worst case
D : Time complexity
Q.no 13. _________ is the class of decision problems that can be solved by non-deterministic
polynomial algorithms?
A : NP
B:P
C : Hard
D : Complete
Q.no 14. In computer science, algorithm refers to a special method usable by a computer for the
solution to a problem.
A : true
B : false
C:
D:
Q.no 15. Problems that can be solved in polynomial time are known as?
A : intractable
B : tractable
C : decision
D : complete
Q.no 16. Keywords________indicates that iteration of the loop may run concurrently.
A : Parallel loop
B : Thread
C : Parallel for
D : Multithreading
A : Linear
B : polynomial
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 228/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : quadratic
D : exponential
Q.no 19. For the improvement of efficiency of quick sort the pivot can be____
Q.no 20. There are four algorithms A1, A2, A3, A4 to solve the given problem with the order
log(n), nlog(n), log(log(n)), n^2, Which is the best algorithm.
A : A1
B : A2
C : A3
D : A4
Q.no 21. When a thread u spawns a new thread v, then (u,v) is called a
A : Simple edge
B : Return edge
C : Continuation edge
D : spawn edge
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 229/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 22.
A : 10
B:1
C : 10 9 8 ……1 0
D : 10 9 8 ……1
A : Member Function
B : Principle Of Optimality
C : Fitness Function
B : Dynamic programming
C : Greedy method
Q.no 25. When the proof of a statement is started by assuming the statement is false the type of
proof is called _________.
A : proof by induction
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 230/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : proof by deduction
C : proof by contradiction
D:
Q.no 26. To prove the statement " There are infinitely many prime numbers" by contradiction
what is the assumption for P?
A : P is infinite set
B : P is finite set
C:
D:
A : T1 / Tp
B : T1 / T∞
C : T∞/T1
D : Tp / T1
B : Recursive functions usually take more memory space than non-recursive function
Q.no 29. Choose the option with function having same complexity for a Fibonacci heap.
A : Insertion, Merge
B : Insertion, Deletion
C : ExtractMin, Insertion
D : Merge, Deletion
Q.no 30. In the development of dynamic programming the value of an optimal solution is
computed in Select one:
A : Top Up Fashion
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 231/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Bottom Up Fashion
C : In Any Way
D : Random
Q.no 32. Suppose SAT reduces to a problem C. To claim that C is NP-complete, we additionally
need to show that:
B : Branch And Bound Is Not Suitable Where A Greedy Algorithm Is Not Applicable
C : Branch And Bound Divides A Problem Into At Least 2 New Restricted Sub Problems
Q.no 34. From the following choose the one which belongs to the algorithm paradigm other than
to which others from the following belongs to.
B : Knapsack problem
C : Selection problem
D : Merge sort
A : O(n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 232/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : O(NlogN)
C:
D:
Q.no 36. How many stages(steps) of procedure does a non-deterministic algorithm consist of?
A:1
B:2
C:3
D:4
Q.no 37. ____________ is an algorithm design method that can be used when the solution to a
problem can be viewed as the result of a sequence of decisions
A : Dynamic Programming
B : Backtracking
D : Greedy Method
A : O(1)
B : O(log n)
C : O(n)
D : O(n^2)
Q.no 39. What is the pre-processing time of Rabin and Karp Algorithm?
A : Theta(m2)
B : Theta(mlogn)
C : Theta(m)
D : Big-Oh(n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 233/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:
A : 38
B : 40
C : 38.3
D : 45
Q.no 43. How many times is the recursive function called, when the following code is executed?
A:7
B:9
C : 11
D : 13
Q.no 44. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
C : Monte-Carlo Algorithm
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 234/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
Q.no 46. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
Q.no 47. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
C : built in function
D:
A : 400
B : 420
C : 500
D : 440
Q.no 49. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 235/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
A : O(n log n)
B : O(n)
C : O(nlogn)
D : O(nW)
Q.no 54. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
C : Π is NP-complete
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 236/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
Q.no 56. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
Q.no 57. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
Q.no 58. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
Q.no 59. For any integer m>=3, the series 2+4+6+…+(4m) can be equivalent to ________
A : m^2 + 3
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 237/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : m^m
C:m
D : m+1
A : O(nlog n)
B : O(n^2 )
C : O( n)
D : O(log n)
Q.no 1. state whether True or false. Algorithms are as impotant as advanced technologies
A : true
B : false
C:
D:
A : O(n)
B : O(1)
C : O(log n)
D : O(n^2)
Q.no 3. The choice of polynomial class has led to the development of an extensive theory called
………
A : time complexity
B : space complexity
C : computational complexity
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 238/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : problem complexity
Q.no 4. The best suited algorithm could be decided using proof technique
A : false
B : true
C:
D:
Q.no 5. waiting for the hardware advancements are always fruitful than finding the better
algorithm
A : true
B : false
C:
D:
Q.no 6. Which of the following case does not exist in complexity theory?
A : Best case
B : Average case
C : Null case
D : Worst case
Q.no 7. Running time of algorithm varies with the size of the input called____
A : Growth of Function
B : Order of growth
C : Growth Rate
Q.no 8. Floyd-Warshall algorithm, which finds shortest paths between all pairs of vertices, is a
A : Greedy Algorithm
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 239/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Backtracking Algorithm
Q.no 9. In a binomial heap the root value is greater than left child and less than right child.
A : true
B : false
C:
D:
Q.no 10. In an amortized analysis, the time required to perform a sequence of data structure
operations is summed over all the operations performed. This statement is true or false.
A : true
B : false
C:
D:
Q.no 11. state whether True or false.. The solid base of algorithmic knowledge and technique is
one characteristic that separates the truly skilled programmers from the novices
A : true
B : false
C:
D:
Q.no 12. What is the worst case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 240/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Contradiction
B : Approximation
C : Mathematical induction
D:
Q.no 15. The best data structure to check whether an arithmetic expression has balanced
parentheses is a
A : queue
B : stack
C : tree
D : list
A : switch -case
B : exit condition
C : loop
D:
Q.no 17. The time factor when determining the efficiency of algorithm is measured by
A : Counting microseconds
D:
B : linear search
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 241/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:
Q.no 20. Operations in the neural networks can perform what kind of operations?
A : Not In Serial
B : Not In Parallel
C : Serial Or Parallel
D : Partial
B : Dynamic programming
C : Greedy method
Q.no 22. Which of the following methods can be used to solve the matrix chain multiplication
problem?
B : Greedy
C : Backtracking
Q.no 23. For a good loop invariant, following property is not important
A : Initialization
B : Maintenance
C : Termination:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 242/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : loop condition
Q.no 24. Which algorithm startegy builds up a solution by choosing the option that looks the best
at every step.
A : greedy method
C : dynamic programming
Q.no 25. The procedure FindMin() to find the minimum element and the procedure DeleteMin()
to delete the minimum element in min heap take ……….
Q.no 26. Which of the following statement about 0/1 knapsack and fractional knapsack problem
is correct?
A : In 0/1 Knapsack Problem Items Are Divisible And In Fractional Knapsack Items Are Indivisible
C : 0/1 Knapsack Is Solved Using A Greedy Algorithm And Fractional Knapsack Is Solved Using
Dynamic Programming
D : In 0/1 Knapsack Problem Items Are Indivisible And In Fractional Knapsack Items Are Divisible
Q.no 27. Which of the following is not a branch and bound strategy to generate branches?
A : Mathematical Induction
B : Proof by cases
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 243/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : proof by contradiction
D : direct proof
Q.no 29. Which of the following problems is NOT solved using dynamic programming?
Q.no 30. Which of the following is false in the case of a spanning tree of a graph G?
B : It is a subgraph of the G
A : O(n)
B : O(nLogn)
C : O(n^2)
D : O(n^2Logn)
A : the process
B : the decision
C : the loop
D : the sequential
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 244/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 34. Which of the following can be used to define NP complete class? I) polynomial time
Verifier II) Polynomial time reducibility of the known NP complete problem
A : only I
B : only II
C : both I and II
D : neither I nor II
Q.no 35. Consider the strings “PQRSTPQRS” and “PRATPBRQRPS”. What is the length of the
longest common subsequence?
A:9
B:8
C:7
D:6
A : Iterative
B : Recursive
C : Both A and B
D : Neither A Nor B
D : Both B and C
Q.no 38. Running the program many times is sufficient to prove the correctness of program
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 245/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : true
B : false
C:
D:
Q.no 39. Choose the correct steps required to prove that a problem is NP complete?
A : 1. prove that problem is in P 2. Prove that every problem in P is reducible to the problem in
question in polynomial time.
B : 1.prove that problem is in P 2. Prove that the problem in question is reducible to any problem in P
in polynomial time.
C : 1.prove that problem is in NP 2. Prove that every problem in NP is reducible to the problem in
question in polynomial time.
D : 1.prove that problem is P 2. Prove that the problem in question is reducible to any problem in P in
polynomial time.
Q.no 40. A Fibonacci heap uses ………… memory than a binary heap.
A : less
B : equal
C : more
D : cannot say
Q.no 41. Basic operations like insertion, look-up and removal in splay trees are performed in
……. time.
A : O(1)
B : O(n)
C : O(log n)
D : O(n log n)
Q.no 42. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 246/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
Q.no 43. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
Q.no 44. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
D : Not Flexible
Q.no 46. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
C : backtracking
Q.no 47. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 247/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : 20*30
C : 10*30
D : 10*20*30
Q.no 48. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
Q.no 49. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
Q.no 51. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 248/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
Q.no 53. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
Q.no 54. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers cube" is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n^2(n+1)^2/4
D : n^2(n+1)^2/6
Q.no 55. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
C : 290
D : 130
Q.no 56. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 249/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : size of a computation
A : D.H.Lehmer
B : L.Baumert
C : R.J.Walker
D : S. Golomb
Q.no 59. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
A : O(nlog n)
B : O(n^2 )
C : O( n)
D : O(log n)
Q.no 1. Merge sort uses which of the following technique to implement sorting?
A : Backtracking
B : Greedy Algorithm
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 250/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Dynamic Programming
A : NP class
B : P class
C : NP Complete
D : NP Hard
A : O(n log n)
B : O(n^2)
C : O(n^2 log n)
A : The number of arithmetic and the operations that are required to run the program
A : O(N)
B : O(N*log(N))
C : O(N * Sqrt(N))
D : O(N*N)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 251/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : true
B : false
C:
D:
A : Natural Functions
B : Fitness Functions
D : Member Function
Q.no 8. Which of the following methods can be used to solve the Knapsack problem?
B : Recursion
C : Dynamic programming
Q.no 9. The choice of polynomial class has led to the development of an extensive theory called
________
A : computational complexity
B : time complexity
C : problem complexity
D : decision complexity
B : Dynamic Programming
C : Backtracking
D : Greedy Approach
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 252/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : stack underflow
B : stack overflow
C : both
D:
A : O(n)
B : O(nlogn)
C : O(n^2)
D : O(n^3)
Q.no 14. When an algorithm is written in the form of a specific programming language, it
becomes a _________
A : Pseudocode
B : Programme
C:
D:
Q.no 15. Fill in the blank. The notion of correctness for approximation algorithms is
…………...straightforward
than it is for exact algorithms
A : More
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 253/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Less
C:
D:
Q.no 16. Which element of an input array is chosen as pivot in Randomized Quicksort?
A : First
B : Last
C : Median
D : Random number
A : 1 Node
B : 2 Nodes
C : 3 Nodes
D : 4 Nodes
Q.no 19. What is the average case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
Q.no 20. The algorithm that do NOT have O(1) time complexity is____
D : Addition of n numbers
Q.no 21. The term ________ refers to all state space search methods in which all children of the –
nodes are generated before any other live node can become the E-node.
A : Backtacking
A : Sorting
B : Hashing
C : Augmenting
D : Dynamic Programming
Q.no 23. The type of encoding where no character code is the prefix of another character code is
called?
A : optimal encoding
B : prefix encoding
C : Fequency encoding
D : Trie encoding
Q.no 24. Power saving is an important job in embedded systm and sensor network.
A : true
B : false
C:
D:
Q.no 25. we can refere to the common sense/ intution while specifing the algorithm
A : true
B : false
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 255/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C:
D:
A : 1 and 2
B : 1 and 3
C : 2 and 3
D : 1, 2, and 3
A : 60
B : 80
C : 100
D : 40
Q.no 28. Which of the following method is used for sorting in merge sort?
A : Merging
B : Partitioning
C : Selection
D : Exchanging
A : Process
B : Work
C : Thread
D : Span
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 256/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 30.
A : 10
B:1
C : 10 9 8 ……1 0
D : 10 9 8 ……1
Q.no 31. Many multithreaded algorithms involving nested parallelism follow naturally from
A : Dynamic Programming
C : Greedy Method
A : O(n)
B : O(NlogN)
C:
D:
Q.no 33. You are given a knapsack that can carry a maximum weight of 60. There are 4 items
with weights {20, 30, 40, 70} and values {70, 80, 90, 200}. What is the maximum value of the items
you can carry using the knapsack?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 257/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 160
B : 200
C : 170
D : 90
Q.no 34. What is the purpose of using randomized quick sort over standard quick sort?
D : To improve accuracy
Q.no 35. If T= abcabaabc & P= abaa then what will be the value of s?
A:4
B:2
C:3
D:1
Q.no 36. Which of the following statements about loop invariants is false?
A : Loop invariants are used to show that algorithms produce the correct results.
B : A loop invariant is the opposite, that is the negation, of the condition of the loop.
A : No Population
B : Chromosomes
C : Not Gene,
D : Not Allele
A : O(1)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 258/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : O(log n)
C : O(n)
D : O(n^2)
Q.no 39. The Worst case occur in linear search algorithm when
Q.no 40. Problems that can be solved in polynomial time are known as ……… problems.
A : Intractable
B : Tractable
C : Undecidable
D : Decidable
Q.no 41. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
C : Monte-Carlo Algorithm
Q.no 42. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
C : Π is NP-complete
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 259/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : C) Non Associative
A : O(n log n)
B : O(n)
C : O(nlogn)
D : O(nW)
Q.no 45. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
Q.no 46. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
Q.no 47. For any integer m>=3, the series 2+4+6+…+(4m) can be equivalent to ________
A : m^2 + 3
B : m^m
C:m
D : m+1
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 260/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 38
B : 40
C : 38.3
D : 45
Q.no 49. In a proof by mathematical induction that for all positive integers n, is the "Summation
of numbers from 1 to n is equal to n(n + 1)/2" , inductive hypothesis would be to assume that
A : n=1
B : k=1
C : 1=1(1+1)/2
D : 1+2+3+…+k = k(k+1)/2
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
Q.no 51. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
Q.no 52. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 261/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Memoization
D : Greedy
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
A : 400
B : 420
C : 500
D : 440
Q.no 55. The main time taking step in fractional knapsack problem is?
C : Sorting
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 262/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:
Q.no 58. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
Q.no 60. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
C : built in function
D:
A : switch -case
B : exit condition
C : loop
D:
Q.no 2. For the improvement of efficiency of quick sort the pivot can be____
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 263/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 3. _____is the minimum number of steps that can be executed for given input
A : Average case
B : Best case
C : Worst case
D : Time complexity
Q.no 4. Which of the following problems should be solved using dynamic programming?
A : Mergesort
B : Binary search
D : Quicksort
C : Unweighted graphs
A : Roots
B : Leafs
Q.no 7. parallel algorithms that can run on a ____________ that permits multiple instructions to
execute concurrently
A : Uniprocessor
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 264/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Serial Computer
C : Mainframe Computer
D : Multiprocessor computer
Q.no 8. In recursion, the condition for which the function will stop calling itself is?
A : Best case
B : Worst case
C : Base case
Q.no 9. _____is the average number of steps that can be executed for given input
A : Average case
B : Best case
C : Worst case
D : Time complexity
Q.no 10. With minimal weighted external path length obtained by an optimal set Huffman codes
are the applications of?
A : BST
B : MST
C : Binary Tree
D : Weighted Graph
A : O(n)
B : O(n^3)
C : O(n^2)
D : O(log n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 265/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Data Structure
C : Sorting Algorithm
D : Type Of Tree
Q.no 13. Fibonacci heap has better amortized running time compared to a binomial heap.
A : true
B : false
C:
D:
A : Language dependent
B : Language independent
C:
D:
Q.no 16. Which of the following standard algorithms is not a Greedy algorithm?
B : Prim's algorithm
C : Kruskal algorithm
Q.no 17. What is order of resultant heap after merging two trees of order k in binomial heap?
A : 2*k
B : k+1
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 266/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : k*k
D : k + log k
A : Brain
B : Nucleus
C : Neuron
D : Axon
Q.no 19. All the iterations in the parallel loop should be __________
A : Independent
B : Dependent
C:
D:
Q.no 20. The problem of finding a path in a graph that visits every vertex exactly once is called?
Q.no 21. Given items as {value,weight} pairs {{60,20},{50,25},{20,5}}. The capacity of knapsack is
40. Find the maximum value output assuming items to be divisible and nondivisible respectively.
A : 100, 80
B : 110, 70
C : 130, 110
D : 110, 80
Q.no 22. An algorithm that always runs in polynomial time but possibly returns erroneous
answers is called a …………
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 267/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Approximation algorithm
Q.no 23. Which of the given options provides the increasing order of asymptotic complexity of
functions f1, f2, f3 and f4?
f1(n) = 2^n
f2(n) = n^(3/2)
f3(n) = nLogn
f4(n) = n^(Logn)
D : None of these
Q.no 24. If an optimal solution can be created for a problem by constructing optimal solutions
for its subproblems, the problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
Q.no 25. For a good loop invariant, following property is not important
A : Initialization
B : Maintenance
C : Termination:
D : loop condition
Q.no 26. How many stages(steps) of procedure does a non-deterministic algorithm consist of?
A:1
B:2
C:3
D:4
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 268/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Each recursive call should be on a smaller instance of the same problem, that is, a smaller
subproblem
B : The recursive calls must eventually reach a base case, which is solved without further recursion.
C : both 1 and 2
D : Either 1 or 2
A : inverse proof
B : indirect proof
C : reverse proof
D:
Q.no 29. Which of the following branch and bound strategy leads to breadth first search?
Q.no 31. Arrange following from highest to lowest order by complexity wise A log n B n! C nlogn
A : A,B, C
B : B, C, A
C : C, B ,A
D : B,A, C
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 269/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Recursive functions usually take more memory space than non-recursive function
Q.no 33. In dynamic programming, the technique of storing the previously calculated values is
called ___________
C : Memoization
D : Mapping
Q.no 34. Which of the following is/are property/properties of a dynamic programming problem?
A : Evolutionary Approach
C : Greedy Approach
A : Initial condition
B : nested loop
C : invariant relation
D : termination
Q.no 36. Choose the option with function having same complexity for a Fibonacci heap.
A : Insertion, Merge
B : Insertion, Deletion
C : ExtractMin, Insertion
D : Merge, Deletion
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 270/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : log n
B:n
C : n log n
D : n/2
Q.no 39. Which of the following options match the given statement:
The algorithms that use the random input to reduce the expected running time or memory usage,
but always terminate with a correct result in a bounded amount of time.
D : Approximation algorithm
A : Join Operator
C : Selection
D : Multiplication
Q.no 41. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 271/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 42. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers cube" is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n^2(n+1)^2/4
D : n^2(n+1)^2/6
Q.no 43. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
A : Not Flexible
B : Robust
C : Inappropriate
A : O(nlog n)
B : O(n^2 )
C : O( n)
D : O(log n)
A : D.H.Lehmer
B : L.Baumert
C : R.J.Walker
D : S. Golomb
Q.no 48. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
A : size of a computation
Q.no 50. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
Q.no 51. Basic operations like insertion, look-up and removal in splay trees are performed in
……. time.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 273/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : O(1)
B : O(n)
C : O(log n)
D : O(n log n)
Q.no 52. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
Q.no 53. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
Q.no 54. How many times is the recursive function called, when the following code is executed?
A:7
B:9
C : 11
D : 13
Q.no 55. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 274/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 10080
B : 11070
C : 130110
D : 11080
D : Not Flexible
Q.no 58. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
Q.no 59. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
C : 290
D : 130
Q.no 60. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
B : 20*30
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 275/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : 10*30
D : 10*20*30
A : Hamiltonian circuit
B : Bin packing
C : Partition problem
D : Halting problem
A : O(f(n))
B : O(g(n))
C : O(f(n)g(n))
D : O(f(n)+ g(n))
Q.no 3. If a problem X is in NP and a polynomial time algorithm for X could also be used to solve
problem Y in polynomial time, then Y is also in NP
A : true
B : false
C:
D:
A : Greedy Algorithm
D : Backtracking Algorithm
Q.no 5. What is the type of the algorithm used in solving the 8 Queens problem?
A : Backtracking
B : Dynamic Programming
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 276/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 6. When an algorithm is written in the form of a specific programming language, it becomes
a _________
A : Pseudocode
B : Programme
C:
D:
A : NP class
B : P class
C : NP Complete
D : NP Hard
A:n
B : n^2
C : nlogn
D:
B : Prim’s algorithm
C : Huffman Coding
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 277/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : A recursive function where the function doesn’t return anything and just prints the values
D : A function where the recursive call is the last thing executed by the function
A : NP problem
B : N class problem
C : P class problem
D : NP complete problem
Q.no 13. Which of the following methods can be used to solve the longest common subsequence
problem?
A : Not Recursion
B : Dynamic Programming
D : Greedy Algorithm
A : Greedy Technique
B : Dynamic Programming
C : Linear Programming
D : Backtracking
Q.no 15. If f(n) = ______, then there exists positive constants c, n0 such that 0 ≤ f(n) ≤ c.g(n), for
all n ≥ n0
A : Θ(g(n))
B : O(g(n))
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 278/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Ω(g(n))
D : Little o(g(n))
Q.no 16. Which of the following can traverse the state space tree only in DFS manner?
B : Dynamic Programming
C : Greedy Algorithm
D : Backtracking
Q.no 17. Operations in the neural networks can perform what kind of operations?
A : Not In Serial
B : Not In Parallel
C : Serial Or Parallel
D : Partial
A : true
B : false
C:
D:
Q.no 19. The best data structure to check whether an arithmetic expression has balanced
parentheses is a
A : queue
B : stack
C : tree
D : list
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 279/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 22. The main time taking step in fractional knapsack problem is
C : Sorting
Q.no 23. Let X be a problem that belongs to the class NP. Then which one of the following is
TRUE?
D : X may be undecidable.
Q.no 24. Which one of the following is true about Binary search?
A : the best-case occurs when the target item is in the beginning of the search list
B : the best-case occurs when the target is at the end of the search list
C : the worst-case is when the target item is not in the search list
D : the worst-case is when the target is found in the middle of the search list
A : Correctness of algorithm
B : Efficiency of algorithm
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 280/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : both
D:
A : Fn(10)
B : return
C : if (n==0)
D : Fn(n-1)
A : O(n log n)
B : O(n)
C : O(1)
D : O(nW)
A : Member Function
B : Principle Of Optimality
C : Fitness Function
Q.no 29. From the following which is not return optimal solution
A : Dynamic programming
B : Backtracking
D : Greedy method
Q.no 30. Which data structure is most suitable for implementing best first branch and bound
strategy?
A : Stack
B : Queue
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 281/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Priority Queue
D : Linked List
Q.no 31. Time taken in decreasing the node value in a binomial heap is
A : O(n)
B : O(1)
C : O(log n)
D : O(n log n)
A : greedy method
C : dynamic programming
A : Iterative
B : Recursive
C : Both A and B
D : Neither A Nor B
A : T1 / Tp
B : T1 / T∞
C : T∞/T1
D : Tp / T1
Q.no 35. In analysis of algorithm, approximate relationship between the size of the job and the
amount of work required to do is expressed by using
A : Central tendency
B : Differential equation
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 282/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Order of execution
D : Order of Storage
Q.no 36. Arrange following from lowest to highest order by complexity wise A log n B n! C nlogn
A : A,B, C
B : B, C, A
C : A, C, B
D : B,A, C
Q.no 37. Multithreaded computation can be better understood with the help of a
Q.no 38. The Knapsack problem where the objective function is to minimize the profit is______
A : Greedy
B : Dynamic Programming
C : Back Tracking
A : O(n)
B : O(NlogN)
C:
D:
A : greedy method
C : dynamic programming
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 283/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 41. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
C : Π is NP-complete
Q.no 42. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
C : built in function
D:
Q.no 44. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
Q.no 45. The main time taking step in fractional knapsack problem is?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 284/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Sorting
A : 38
B : 40
C : 38.3
D : 45
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
Q.no 48. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 285/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 50. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
C : backtracking
A : 400
B : 420
C : 500
D : 440
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
D:
Q.no 55. In a proof by mathematical induction that for all positive integers n, is the "Summation
of numbers from 1 to n is equal to n(n + 1)/2" , inductive hypothesis would be to assume that
A : n=1
B : k=1
C : 1=1(1+1)/2
D : 1+2+3+…+k = k(k+1)/2
Q.no 56. For any integer m>=3, the series 2+4+6+…+(4m) can be equivalent to ________
A : m^2 + 3
B : m^m
C:m
D : m+1
A : O(n log n)
B : O(n)
C : O(nlogn)
D : O(nW)
Q.no 58. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
C : Monte-Carlo Algorithm
A : B0, B2,B3
B : B2,B3,B4
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 287/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : B1,B2,B3,B4
D : B1,B2,B3
Q.no 60. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
A : Parallel loop
B : Thread
C : Parallel for
D : Multithreading
A : Definiteness
B : finiteness
C : scalability
D : effectiveness
Q.no 3. Which of the following is incorrect for the given phrase: ’solvable by non deterministic
algorithms in polynomial time’
A : NP problems
B : P problem
C : NP complete problem
D : NP hard problem
Q.no 4. Which is the process of executing a correct program on data sets and
measuring the time and space it takes tocompute the results.
A : Debugging
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 288/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Profiling
C : Conquer
D : Combining
Q.no 5. Which of the following algorithm can be used to solve the Hamiltonian path problem
efficiently?
B : iterative improvement
D : greedy algorithm
A : true
B : false
C:
D:
Q.no 7. In the absence of a exit condition in a recursive function, the following error is given by?
C : Logical error
D : No error
A : Natural Functions
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 289/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Fitness Functions
D : Member Function
Q.no 10. _____is the average number of steps that can be executed for given input
A : Average case
B : Best case
C : Worst case
D : Time complexity
Q.no 11. For the improvement of efficiency of quick sort the pivot can be____
Q.no 12. Recursion is a method in which the solution of a problem depends on?
A : stack underflow
B : stack overflow
C : both
D:
Q.no 14. Which data structure is used for implementing a LIFO branch and bound strategy?
A : Stack
B : Queue
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 290/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Array
D : Linked List
A : Greedy strategy
C : Dynamic programming
Q.no 16. The best suited algorithm could be decided using proof technique
A : false
B : true
C:
D:
A : Roots
B : Leafs
Q.no 18. Which of the following algorithms has worst time complexity?
A : insertion sort
B : binary search
C : linear search
D : merge sort
A : O(n)
B : O(log n)
C : O( n^2)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 291/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : O(n log n)
Q.no 20. In artificial Neural Network interconnected processing elements are called
A : Nodes Or Neurons
B : Weights
C : Axons
D : Soma
A : T1 / T∞
B : T1 / Tp
C : Tp / T1
D : T∞/T1
Q.no 22. To prove the statement " There are infinitely many prime numbers" by contradiction
what is the assumption for P?
A : P is infinite set
B : P is finite set
C:
D:
A : Parallel Programming
B : Dynamic Programming
C : Serial Programming
D : Multiprogramming
A : Each recursive call should be on a smaller instance of the same problem, that is, a smaller
subproblem
B : The recursive calls must eventually reach a base case, which is solved without further recursion.
C : both 1 and 2
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 292/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Either 1 or 2
Q.no 25. Loop invariant is inert assertion and not useful in analysis of program.
A : true
B : false
C:
D:
D : Simulated Annealing
Q.no 28. For a good loop invariant, following property is not important
A : Initialization
B : Maintenance
C : Termination:
D : loop condition
Q.no 29. Which algorithm startegy builds up a solution by choosing the option that looks the best
at every step.
A : greedy method
C : dynamic programming
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 293/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 30. Choose the correct steps required to prove that a problem is NP complete?
A : 1. prove that problem is in P 2. Prove that every problem in P is reducible to the problem in
question in polynomial time.
B : 1.prove that problem is in P 2. Prove that the problem in question is reducible to any problem in P
in polynomial time.
C : 1.prove that problem is in NP 2. Prove that every problem in NP is reducible to the problem in
question in polynomial time.
D : 1.prove that problem is P 2. Prove that the problem in question is reducible to any problem in P in
polynomial time.
Q.no 31. A binomial heap with n nodes contains not more than ………. binomial trees.
A : O(n)
B : O(log n)
C : O(n+1)
D : O(n-1)
A : O(nlog n)
B : O(n^2 )
C : O(n)
D : O(log n )
Q.no 33. Choose the correct steps to prove if the vertex cover problem is NP-Complete. I-- Vertex
Cover problem is in NP II--Clique problem is in NP III--Prove that Clique problem ≤ Vertex
Cover Problem in polynomial time IV---Prove that Vertex Cover problem ≤ Clique Problem in
polynomial time
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 294/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : I and III
B : I and IV
C : II and III
D : II and IV
Q.no 34. Parallel loops are like an ordinary_______________except that the iterations of the loop
can execute concurrently.
A : While loop
B : For Loop
C : Do while loop
D : If statement
Q.no 35. loop termination condition along with what makes loop correct
A : loop condition
C : loop invariant
D : none of these
A : 60
B : 80
C : 100
D : 40
Q.no 37. What is the pre-processing time of Rabin and Karp Algorithm?
A : Theta(m2)
B : Theta(mlogn)
C : Theta(m)
D : Big-Oh(n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 295/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 38. Which of the following problems is similar to that of a Hamiltonian path problem?
A : knapsack problem
D : assignment problem
A : precise
B : Ambigous
Q.no 40. Mathematical induction allows us to prove the correctness and efficiency of algorithm
both
A : true
B : false
C:
D:
Q.no 41. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
A : O(nlog n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 296/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : O(n^2 )
C : O( n)
D : O(log n)
A : size of a computation
Q.no 44. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
A : 10080
B : 11070
C : 130110
D : 11080
Q.no 46. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 297/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Not Flexible
B : Robust
C : Inappropriate
Q.no 48. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
C : C) Non Associative
Q.no 50. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
C : 290
D : 130
Q.no 51. How many times is the recursive function called, when the following code is executed?
A:7
B:9
C : 11
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 298/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : 13
Q.no 52. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
Q.no 54. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
A : D.H.Lehmer
B : L.Baumert
C : R.J.Walker
D : S. Golomb
Q.no 56. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 299/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:
Q.no 57. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
D : Not Flexible
Q.no 59. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
Q.no 60. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
B : 20*30
C : 10*30
D : 10*20*30
A : one
B : two
C : several
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 300/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:
Q.no 2. Amortized analysis is a technique that, given a sequence of operations, permits sharing
the cost of a single expensive operation with many other cheaper ones.
A : true
B : false
C:
D:
A : O(N)
B : O(N*log(N))
C : O(N * Sqrt(N))
D : O(N*N)
B : linear search
Q.no 5. The algorithm that do NOT have O(1) time complexity is____
D : Addition of n numbers
Q.no 6. The choice of polynomial class has led to the development of an extensive theory called
………
A : time complexity
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 301/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : space complexity
C : computational complexity
D : problem complexity
Q.no 7. The problem of finding a path in a graph that visits every vertex exactly once is called?
A : Priority queue
B : Stack
D : Normal Array
Q.no 9. Which data structure is used for implementing a FIFO branch and bound strategy?
A : Stack
B : Queue
C : Array
D : Linked List
Q.no 10. state whether True or false.. The solid base of algorithmic knowledge and technique is
one characteristic that separates the truly skilled programmers from the novices
A : true
B : false
C:
D:
Q.no 11. What is the best case time complexity of binary search?
A : O(n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 302/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : O(1)
C : O(log n)
D : O(n^2)
A : Fibers Of Nerves
B : nuclear projections
D : Twisted Network
A : Operators Of Genetic
B : Functions of Genetic
C : Population Of Genetic
D : Member Function
Q.no 15. With minimal weighted external path length obtained by an optimal set Huffman codes
are the applications of?
A : BST
B : MST
C : Binary Tree
D : Weighted Graph
A : roots
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 303/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : leaves
A : Switch Case
B : Loop
C : If else
D : if elif else
Q.no 18. _________ is the class of decision problems that can be solved by non-deterministic
polynomial algorithms?
A : NP
B:P
C : Hard
D : Complete
Q.no 19. Which element of an input array is chosen as pivot in Randomized Quicksort?
A : First
B : Last
C : Median
D : Random number
A : Array
B : queue
C : stack
D : linked list
Q.no 21. Which of the following statements about loop invariants is false?
A : Loop invariants are used to show that algorithms produce the correct results.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 304/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : A loop invariant is the opposite, that is the negation, of the condition of the loop.
Q.no 22. From the following choose the one which belongs to the algorithm paradigm other than
to which others from the following belongs to.
B : Knapsack problem
C : Selection problem
D : Merge sort
Q.no 23. The Worst case occur in linear search algorithm when
Q.no 24. You are given a knapsack that can carry a maximum weight of 60. There are 4 items
with weights {20, 30, 40, 70} and values {70, 80, 90, 200}. What is the maximum value of the items
you can carry using the knapsack?
A : 160
B : 200
C : 170
D : 90
A : log n
B:n
C : n log n
D : n/2
Q.no 26. How many stages(steps) of procedure does a non-deterministic algorithm consist of?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 305/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A:1
B:2
C:3
D:4
Q.no 27. Given items as {value,weight} pairs {{60,20},{50,25},{20,5}}. The capacity of knapsack is
40. Find the maximum value output assuming items to be divisible and nondivisible respectively.
A : 100, 80
B : 110, 70
C : 130, 110
D : 110, 80
Q.no 28. Multithreaded computation can be better understood with the help of a
Q.no 29. Suppose SAT reduces to a problem C. To claim that C is NP-complete, we additionally
need to show that:
A : No Population
B : Chromosomes
C : Not Gene,
D : Not Allele
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 306/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 31. What is the time, space complexity of following code: int a = 0, b = 0;
for (i = 0; i < N; i++) {
a = a + rand();
}
for (j = 0; j < M; j++) {
b = b + rand();
}
A : O(n)
B : O(NlogN)
C:
D:
Q.no 33. If txt[] = "THIS IS A TEST TEXT" and pat[] = "TEST", what will be the index of
pattern?
A:9
B : 13
C : 11
D : 10
Q.no 34. In analysis of algorithm, approximate relationship between the size of the job and the
amount of work required to do is expressed by using
A : Central tendency
B : Differential equation
C : Order of execution
D : Order of Storage
Q.no 35. When the proof of a statement is started by assuming the statement is false the type of
proof is called _________.
A : proof by induction
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 307/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : proof by deduction
C : proof by contradiction
D:
Q.no 36. ____________ is an algorithm design method that can be used when the solution to a
problem can be viewed as the result of a sequence of decisions
A : Dynamic Programming
B : Backtracking
D : Greedy Method
Q.no 37. The main time taking step in fractional knapsack problem is
C : Sorting
D : Easy Network
B : Dynamic programming
C : Greedy method
Q.no 40. Which of the following problems is equivalent to the 0-1 Knapsack problem?
A : You are given a bag that can carry a maximum weight of W. You are given N items which have a
weight of {w1, w2, w3,…., wn} and a value of {v1, v2, v3,…., vn}. You can break the items into
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 308/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
smaller pieces. Choose the items in such a way that you get the maximum value
B : You are studying for an exam and you have to study N questions. The questions take {t1, t2, t3,….,
tn} time(in hours) and carry {m1, m2, m3,…., mn} marks. You can study for a maximum of T hours.
You can either study a question or leave it. Choose the questions in such a way that your score is
maximized
C : You are given infinite coins of denominations {v1, v2, v3,….., vn} and a sum S. You have to find
the minimum number of coins required to get the sum S
D : You are given a suitcase that can carry a maximum weight of 15kg. You are given 4 items which
have a weight of {10, 20, 15,40} and a value of {1, 2, 3,4}. You can break the items into smaller
pieces. Choose the items in such a way that you get the maximum value
Q.no 41. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
D : Greedy
Q.no 42. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
C : Monte-Carlo Algorithm
Q.no 43. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
C : backtracking
A : O(n log n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 309/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : O(n)
C : O(nlogn)
D : O(nW)
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
D:
A : 400
B : 420
C : 500
D : 440
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 310/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
Q.no 50. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
A : 38
B : 40
C : 38.3
D : 45
Q.no 52. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
C : built in function
D:
Q.no 53. Basic operations like insertion, look-up and removal in splay trees are performed in
……. time.
A : O(1)
B : O(n)
C : O(log n)
D : O(n log n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 311/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 54. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
Q.no 55. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
Q.no 58. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 312/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
Q.no 60. In a proof by mathematical induction that for all positive integers n, is the "Summation
of numbers from 1 to n is equal to n(n + 1)/2" , inductive hypothesis would be to assume that
A : n=1
B : k=1
C : 1=1(1+1)/2
D : 1+2+3+…+k = k(k+1)/2
C : Simulated Annealing
D : Adaptive Linear
A : Rational
B : Irrational
C:
D:
A : switch -case
B : exit condition
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 313/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : loop
D:
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
A : Greedy Technique
B : Dynamic Programming
C : Linear Programming
D : Backtracking
C : Unweighted graphs
Q.no 8. Which of the following methods can be used to solve the Knapsack problem?
B : Recursion
C : Dynamic programming
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 314/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Constant
C : logarithmic
D : linear
Q.no 10. In Algorithm Specification the blockes are indicated with matching
A : Braces
B : Parenthesis
C : Square Brackets
D : Slashes
Q.no 11. In a max-heap, element with the greatest key is always in the which node?
A : Leaf node
C : Root node
Q.no 12. steps followed in mathematical induction are 1)basis 2)Induction step 3) Induction
hypothesis
C : steps 1,2, 3
Q.no 13. Merge sort uses which of the following technique to implement sorting?
A : Backtracking
B : Greedy Algorithm
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 315/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Dynamic Programming
Q.no 14. The time factor when determining the efficiency of algorithm is measured by
A : Counting microseconds
D:
Q.no 15. Fill in the blank. The notion of correctness for approximation algorithms is
…………...straightforward
than it is for exact algorithms
A : More
B : Less
C:
D:
A : Pseudocode
B : Flowchart
D : both 1and 2
Q.no 17. Which of the following algorithms has better time complexity?
A : insertion sort
B : binary search
C : linear search
D : merge sort
A : 1 Node
B : 2 Nodes
C : 3 Nodes
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 316/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : 4 Nodes
Q.no 19. In recursion, the condition for which the function will stop calling itself is?
A : Best case
B : Worst case
C : Base case
Q.no 20. What is the worst case time complexity of merge sort?
A : O(n log n)
B : O(n^2)
C : O(n^2 log n)
Q.no 21. In the principle of mathematical induction, which of the following steps is mandatory?
A : induction hypothesis
B : induction reference
D:
B : Branch And Bound Is Not Suitable Where A Greedy Algorithm Is Not Applicable
C : Branch And Bound Divides A Problem Into At Least 2 New Restricted Sub Problems
A : true
B : false
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 317/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Dynamic programming
C : Greedy method
Q.no 25. Choose the correct steps to prove if the 3 SAT CNF problem is NP-Complete. I-- SAT
problem is in NP II--3 SAT CNF problem is in NP III--Prove that SAT ≤ 3 SAT CNF Problem in
polynomial time IV---Prove that 3 SAT CNF problem ≤ SAT Problem in polynomial time
A : I and III
B : I and IV
C : II and III
D : II and IV
Q.no 26. The Knapsack problem where the objective function is to minimize the profit is
A : Greedy
B : Dynamic 0 / 1
C : Back tracking
Q.no 27. Which data structure has a better amortized running time than others?
A : Queue
B : Stack
C : Priority Queue
D : List
A : Member Function
B : Principle Of Optimality
C : Fitness Function
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 318/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 29. Given an array of elements 5, 7, 9, 1, 3, 10, 8, 4. Which of the following is the correct
sequences of elements after inserting all the elements in a min-heap?
A : 1,3,4,5,7,8,9,10
B : 1,4,3,9,8,5,7,10
C : 1,3,4,5,8,7,9,10
D : 1,3,7,4,8,5,9,10
Q.no 30. Which of the following statement about 0 1 knapsack and fractional knapsack problem
is correct?
A : In 0 1 knapsack problem items are divisible and in fractional knapsack items are indivisible
C : 0 1 knapsack is solved using a greedy algorithm and fractional knapsack is solved using dynamic
programming
D : In 0 1 knapsack problem items are indivisible and in fractional knapsack items are divisible
Q.no 32. Which of the following branch and bound strategy leads to depth first search?
Q.no 33. The term ________ refers to all state space search methods in which all children of the –
nodes are generated before any other live node can become the E-node.
A : Backtacking
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 319/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 34. Which of the following methods can be used to solve the matrix chain multiplication
problem?
B : Greedy
C : Backtracking
Q.no 35. Which of the following is not a branch and bound strategy to generate branches?
Q.no 37. Running the program many times is sufficient to prove the correctness of program
A : true
B : false
C:
D:
Q.no 38. In dynamic programming, the technique of storing the previously calculated values is
called ___________
C : Memoization
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 320/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Mapping
A : Mathematical Induction
B : Proof by cases
C : proof by contradiction
D : direct proof
Q.no 40. Time taken in decreasing the node value in a binomial heap is
A : O(n)
B : O(1)
C : O(log n)
D : O(n log n)
Q.no 41. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
A : Not Flexible
B : Robust
C : Inappropriate
Q.no 43. How many times is the recursive function called, when the following code is executed?
A:7
B:9
C : 11
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 321/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : 13
Q.no 44. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
C : Π is NP-complete
Q.no 45. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
Q.no 46. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
B : 270
C : 290
D : 130
Q.no 47. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
Q.no 48. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 322/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:
Q.no 49. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
Q.no 50. For any integer m>=3, the series 2+4+6+…+(4m) can be equivalent to ________
A : m^2 + 3
B : m^m
C:m
D : m+1
A : size of a computation
A : O(nlog n)
B : O(n^2 )
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 323/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : O( n)
D : O(log n)
Q.no 53. The main time taking step in fractional knapsack problem is?
C : Sorting
Q.no 54. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
Q.no 55. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
Q.no 56. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
B : 20*30
C : 10*30
D : 10*20*30
A : D.H.Lehmer
B : L.Baumert
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 324/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : R.J.Walker
D : S. Golomb
Q.no 58. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
Q.no 59. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
Q.no 1. In computer science, algorithm refers to a special method usable by a computer for the
solution to a problem.
A : true
B : false
C:
D:
A : Hamiltonian circuit
B : Bin packing
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 325/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Partition problem
D : Halting problem
Q.no 3. The space factor when determining the efficiency of algorithm is measured by
Q.no 4. state whether True or false.. The solid base of algorithmic knowledge and technique is
one characteristic that separates the truly skilled programmers from the novices
A : true
B : false
C:
D:
Q.no 5. Fibonacci heap has better amortized running time compared to a binomial heap.
A : true
B : false
C:
D:
Q.no 6. _________ is the class of decision problems that can be solved by non-deterministic
polynomial algorithms?
A : NP
B:P
C : Hard
D : Complete
Q.no 7. q29.jpeg
A : 111
B : 101
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 326/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : 110
D : 11
Q.no 8. Which of the following can traverse the state space tree only in DFS manner?
B : Dynamic Programming
C : Greedy Algorithm
D : Backtracking
A : Greedy Algorithm
D : Backtracking Algorithm
Q.no 10. What will be the best case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
Q.no 11. To which of the following class does a CNF-satisfiability problem belong?
A : NP class
B : P class
C : NP Complete
D : NP Hard
Q.no 12. In a binomial heap the root value is greater than left child and less than right child.
A : true
B : false
C:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 327/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:
Q.no 13. _____is the average number of steps that can be executed for given input
A : Average case
B : Best case
C : Worst case
D : Time complexity
A : O(f(n))
B : O(g(n))
C : O(f(n)g(n))
D : O(f(n)+ g(n))
Q.no 15. Problems that can be solved in polynomial time are known as?
A : intractable
B : tractable
C : decision
D : complete
Q.no 16. Operations in the neural networks can perform what kind of operations?
A : Not In Serial
B : Not In Parallel
C : Serial Or Parallel
D : Partial
A : Roots
B : Leafs
A : Operators Of Genetic
B : Functions of Genetic
C : Population Of Genetic
D : Member Function
Q.no 19. All the iterations in the parallel loop should be __________
A : Independent
B : Dependent
C:
D:
Q.no 20. Master theorem applies to recurrences of the form (a=1 and b>1) are two constants.
Select one:
A : T(N)=A.T(N/B)+F(N)
B : T(n)=n.T(n/2)+b.f(n)
C : T(N)=A.T(N-1)+B
D : T(N)=N.T(N-3)+B
Q.no 21. Which of the following problems can’t be solved using recursion?
A : Factorial of a number
C : Length of a string
A : O(n log n)
B : O(n)
C : O(1)
D : O(nW)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 329/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 23.
A : 10
B:1
C : 10 9 8 ……1 0
D : 10 9 8 ……1
Q.no 24. Choose the option with function having same complexity for a Fibonacci heap.
A : Insertion, Merge
B : Insertion, Deletion
C : ExtractMin, Insertion
D : Merge, Deletion
Q.no 25. Which one of the following is true about Binary search?
A : the best-case occurs when the target item is in the beginning of the search list
B : the best-case occurs when the target is at the end of the search list
C : the worst-case is when the target item is not in the search list
D : the worst-case is when the target is found in the middle of the search list
A : inverse proof
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 330/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : indirect proof
C : reverse proof
D:
Q.no 27. Which of the following options match the given statement:
The algorithms that use the random input to reduce the expected running time or memory usage,
but always terminate with a correct result in a bounded amount of time.
D : Approximation algorithm
Q.no 28. When the proof of a statement is started by assuming the statement is false the type of
proof is called _________.
A : proof by induction
B : proof by deduction
C : proof by contradiction
D:
Q.no 29. What are desirable characteristics of Algorithm with efficiency 1)Generality 2)
Availability 3) Simplicity
A : 1 and 2
B : 2 and 3
C : 1 and 3
D:
Q.no 30. Which algorithm startegy builds up a solution by choosing the option that looks the best
at every step.
A : greedy method
C : dynamic programming
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 331/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 1 and 2
B : 1 and 3
C : 2 and 3
D : 1, 2, and 3
A : greedy method
C : dynamic programming
Q.no 33. If txt[] = "THIS IS A TEST TEXT" and pat[] = "TEST", what will be the index of
pattern?
A:9
B : 13
C : 11
D : 10
Q.no 34. When a thread u spawns a new thread v, then (u,v) is called a
A : Simple edge
B : Return edge
C : Continuation edge
D : spawn edge
Q.no 35. Problems that can be solved in polynomial time are known as ……… problems.
A : Intractable
B : Tractable
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 332/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Undecidable
D : Decidable
Q.no 36. Arrange following from lowest to highest order by complexity wise A log n B n! C nlogn
A : A,B, C
B : B, C, A
C : A, C, B
D : B,A, C
Q.no 37. Many multithreaded algorithms involving nested parallelism follow naturally from
A : Dynamic Programming
C : Greedy Method
Q.no 38. Suppose SAT reduces to a problem C. To claim that C is NP-complete, we additionally
need to show that:
Q.no 39. What is the pre-processing time of Rabin and Karp Algorithm?
A : Theta(m2)
B : Theta(mlogn)
C : Theta(m)
D : Big-Oh(n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 333/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : O(n)
B : O(nLogn)
C : O(n^2)
D : O(n^2Logn)
Q.no 41. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
Q.no 42. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
Q.no 43. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
C : backtracking
Q.no 44. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
C : Memoization
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 334/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Greedy
Q.no 45. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
A : 38
B : 40
C : 38.3
D : 45
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 335/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : C) Non Associative
Q.no 50. Basic operations like insertion, look-up and removal in splay trees are performed in
……. time.
A : O(1)
B : O(n)
C : O(log n)
D : O(n log n)
A : 10080
B : 11070
C : 130110
D : 11080
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
Q.no 54. Consider the following code snippet. What will happen when the above snippet is
executed?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 336/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
Q.no 56. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers cube" is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n^2(n+1)^2/4
D : n^2(n+1)^2/6
Q.no 57. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
C : Monte-Carlo Algorithm
D : Not Flexible
A : O(n log n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 337/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : O(n)
C : O(nlogn)
D : O(nW)
Q.no 60. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
C : built in function
D:
Q.no 3. Amortized analysis is a technique that, given a sequence of operations, permits sharing
the cost of a single expensive operation with many other cheaper ones.
A : true
B : false
C:
D:
A : greedy method
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 338/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : dynamic programming
Q.no 5. Which of the following algorithms is the best approach for solving Huffman codes?
A : Exhaustive Search
B : Greedy Algorithm
Q.no 6. The choice of polynomial class has led to the development of an extensive theory called
________
A : computational complexity
B : time complexity
C : problem complexity
D : decision complexity
A : Switch Case
B : Loop
C : If else
D : if elif else
A : NP problem
B : N class problem
C : P class problem
D : NP complete problem
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 339/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 10. waiting for the hardware advancements are always fruitful than finding the better
algorithm
A : true
B : false
C:
D:
A : Greedy strategy
C : Backtracking
D : Dynamic programming
Q.no 12. Two main measures for the efficiency of an algorithm are
C : Network flow
D : Sorting
A : stack underflow
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 340/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : stack overflow
C : both
D:
Q.no 15. The choice of polynomial class has led to the development of an extensive theory called
………
A : time complexity
B : space complexity
C : computational complexity
D : problem complexity
Q.no 16. The Data structure used in standard implementation of Breadth First search
is___________
A : Stack
B : Queue
C : Linked List
D : Tree
Q.no 17. A Greedy Algorithm can be used to solve all the Dynamic Programming problems.
A : True
B : FALSE
C:
D:
Q.no 18. Which of the following algorithms has better time complexity?
A : insertion sort
B : binary search
C : linear search
D : merge sort
Q.no 19. Which data structure is used for implementing a FIFO branch and bound strategy?
A : Stack
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 341/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Queue
C : Array
D : Linked List
A : true
B : false
C:
D:
A : F1()
B : return
C : both
D : neither 1 nor 2
A : precise
B : Ambigous
Q.no 23. loop termination condition along with what makes loop correct
A : loop condition
C : loop invariant
D : none of these
Q.no 24. The procedure FindMin() to find the minimum element and the procedure DeleteMin()
to delete the minimum element in min heap take ……….
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 342/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : O(n)
B : O(NlogN)
C:
D:
Q.no 26. Which of the following is/are property/properties of a dynamic programming problem?
A : Evolutionary Approach
C : Greedy Approach
Q.no 27. What is the purpose of using randomized quick sort over standard quick sort?
D : To improve accuracy
A : T1 / Tp
B : T1 / T∞
C : T∞/T1
D : Tp / T1
Q.no 29. we can refere to the common sense/ intution while specifing the algorithm
A : true
B : false
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 343/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C:
D:
A : Mathematical Induction
B : Proof by cases
C : proof by contradiction
D : direct proof
A : Member Function
B : Principle Of Optimality
C : Fitness Function
B : Recursive functions usually take more memory space than non-recursive function
A : All problems in P
D : Halting problem
A : Join Operator
C : Selection
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 344/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Multiplication
Q.no 35. Mathematical induction allows us to prove the correctness and efficiency of algorithm
both
A : true
B : false
C:
D:
B : Dynamic programming
C : Greedy method
Q.no 37. Consider the strings “PQRSTPQRS” and “PRATPBRQRPS”. What is the length of the
longest common subsequence?
A:9
B:8
C:7
D:6
A : No Population
B : Chromosomes
C : Not Gene,
D : Not Allele
Q.no 39. Which of the following branch and bound strategy leads to breadth first search?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 345/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Easy Network
Q.no 41. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
A : O(nlog n)
B : O(n^2 )
C : O( n)
D : O(log n)
Q.no 43. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
Q.no 44. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 346/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : 10*20
B : 20*30
C : 10*30
D : 10*20*30
Q.no 45. what are the ways to remove the redundant computation outside the loop
A : Code motion
B : frequency reduction
C : Strength reduction
D : All of these
Q.no 47. What are the issues on which biological networks proves to be superior than AI
networks?
B : Inflexibility
C : Single Computation
D : No Computation
Q.no 48. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 347/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 49. For any integer m>=3, the series 2+4+6+…+(4m) can be equivalent to ________
A : m^2 + 3
B : m^m
C:m
D : m+1
Q.no 50. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
Q.no 52. How many times is the recursive function called, when the following code is executed?
A:7
B:9
C : 11
D : 13
A : Not Flexible
B : Robust
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 348/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Inappropriate
Q.no 54. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
Q.no 55. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
C : Π is NP-complete
Q.no 56. In a proof by mathematical induction that for all positive integers n, is the "Summation
of numbers from 1 to n is equal to n(n + 1)/2" , inductive hypothesis would be to assume that
A : n=1
B : k=1
C : 1=1(1+1)/2
D : 1+2+3+…+k = k(k+1)/2
A : 400
B : 420
C : 500
D : 440
D:
Q.no 59. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
Q.no 60. The main time taking step in fractional knapsack problem is?
C : Sorting
Q.no 1. If f(n) = ______, then there exists positive constants c1, c2, n0 such that 0 ≤ c1.g(n) ≤ f(n)
≤ c2.g(n), for all n ≥ n0
A : Θ(g(n))
B : O(g(n))
C : Ω(g(n))
D : little Ω(g(n))
A : Priority queue
B : Stack
D : Normal Array
Q.no 3. The main distinguishable characteristic of a binomial heap from a binary heap is that
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 350/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : It does not allow union operations that could easily be implemented in binary heap.
A : true
B : false
C:
D:
A : decidable problem
B : undecidable problem
C : complete problem
D : trackable problem
A : Fibers Of Nerves
B : nuclear projections
D : Twisted Network
Q.no 7. Which is a condition about the relationship between the variables of our program which
is definitely true immediately before and immediately after each iteration of the loop?
A : For condition
C : Both a and b
D : If condition
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 351/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : Approximation Algorithm
A : O(n)
B : O(1)
C : O(log n)
D : O(n^2)
Q.no 10. _____is the maximum number of steps that can be executed for given input
A : Average case
B : Best case
C : Worst case
D : Time complexity
A : Contradiction
B : Approximation
C : Mathematical induction
D:
A : The number of arithmetic and the operations that are required to run the program
A : Brain
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 352/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Nucleus
C : Neuron
D : Axon
Q.no 14. With minimal weighted external path length obtained by an optimal set Huffman codes
are the applications of?
A : BST
B : MST
C : Binary Tree
D : Weighted Graph
A : O(n)
B : O(log n)
C : O( n^2)
D : O(n log n)
Q.no 16. Floyd-Warshall algorithm, which finds shortest paths between all pairs of vertices, is a
A : Greedy Algorithm
D : Backtracking Algorithm
A : Ɵ(n^2)
B : Ɵ(8)
C : Ɵ(log n)
D : Ɵ(n)
Q.no 18. Which of the following is the most commonly used data structure for implementing
Dijkstra’s Algorithm?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 353/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Stack
C : Circular queue
Q.no 20. Which of the following algorithm can be used to solve the Hamiltonian path problem
efficiently?
B : iterative improvement
D : greedy algorithm
B : Dynamic programming
C : Greedy method
Q.no 22. The main time taking step in fractional knapsack problem is
C : Sorting
Q.no 23. When a thread u spawns a new thread v, then (u,v) is called a
A : Simple edge
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 354/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : Return edge
C : Continuation edge
D : spawn edge
Q.no 24. The type of encoding where no character code is the prefix of another character code is
called?
A : optimal encoding
B : prefix encoding
C : Fequency encoding
D : Trie encoding
Q.no 25. In the development of dynamic programming the value of an optimal solution is
computed in Select one:
A : Top Up Fashion
B : Bottom Up Fashion
C : In Any Way
D : Random
Q.no 26. Multithreaded computation can be better understood with the help of a
D : Both B and C
D : Simulated Annealing
Q.no 29. An algorithm that always runs in polynomial time but possibly returns erroneous
answers is called a …………
D : Approximation algorithm
Q.no 30. Which of the following can be used to define NP complete class? I) polynomial time
Verifier II) Polynomial time reducibility of the known NP complete problem
A : only I
B : only II
C : both I and II
D : neither I nor II
Q.no 31. A binomial heap with n nodes contains not more than ………. binomial trees.
A : O(n)
B : O(log n)
C : O(n+1)
D : O(n-1)
A : Parallel Programming
B : Dynamic Programming
C : Serial Programming
D : Multiprogramming
Q.no 33. Which of the following is not a branch and bound strategy to generate branches?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 356/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 34. For a good loop invariant, following property is not important
A : Initialization
B : Maintenance
C : Termination:
D : loop condition
Q.no 35. Which of the following methods can be used to solve the matrix chain multiplication
problem?
B : Greedy
C : Backtracking
Q.no 36. Which of the following problems is similar to that of a Hamiltonian path problem?
A : knapsack problem
D : assignment problem
A : Sorting
B : Hashing
C : Augmenting
D : Dynamic Programming
A : greedy method
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 357/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : dynamic programming
Q.no 39. What is the time, space complexity of following code: int a = 0, b = 0;
for (i = 0; i < N; i++) {
a = a + rand();
}
for (j = 0; j < M; j++) {
b = b + rand();
}
Q.no 40. Arrange following from highest to lowest order by complexity wise A log n B n! C nlogn
A : A,B, C
B : B, C, A
C : C, B ,A
D : B,A, C
C : Are Adaptive Heuristic Search Algorithm Based On The Evolutionary Ideas Of Natural Selection
And Genetics
Q.no 42. Fill in the blank. Proof by induction is a technique used to prove statements about
objects that can be defined using …………………
A : recursive functions.
B : iterative function
C : built in function
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 358/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D:
Q.no 43. What is recurrence for worst case of QuickSort and what is the time complexity in
Worst case?
D : Recurrence is T(n) = T(n/10) + T(9n/10) + O(n) and time complexity is O(n log n)
Q.no 44. Which of the following methods can be used to solve the Knapsack problem?
B : Sorting Algorithm
C : Monte-Carlo Algorithm
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
A : 10080
B : 11070
C : 130110
D : 11080
Q.no 47. If a problem can be broken into subproblems which are reused several times, the
problem possesses ____________ property.
A : Overlapping Subproblems
B : Optimal Substructure
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 359/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C : Memoization
D : Greedy
A : 38
B : 40
C : 38.3
D : 45
Q.no 49. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
Q.no 50. To calculate c(i, j )’s, w( i, j)’s and r(i, j)’s; the OBST algorithm in worst case takes the
following time.
A : O(Log N)
B : O (N*N)
C : O (N*N*N)
D : O (N Log N)
Q.no 51. Find out one solution store it in solution set again find out another solution store in it
solution set, again find out the another solution store into the solution set, now from the solution
set we find out the best solution, which maybe best solution for optimal solution, this is which
type of solution strategy?
A : Dynamic programming
B : Greedy method
C : backtracking
D : Not Flexible
Q.no 54. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers cube" is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n^2(n+1)^2/4
D : n^2(n+1)^2/6
Q.no 55. In knapsack problem which ratio is used to find out the best solution if used W for
weight P for price m for capacity?
A : W divided by P
B : P divided by W
C : m divided by P
D : P divided by m
A : D.H.Lehmer
B : L.Baumert
C : R.J.Walker
D : S. Golomb
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 361/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : size of a computation
Q.no 58. Consider the following code snippet. What will happen when the above snippet is
executed?
B : The code will run for some time and stop when the stack overflows
C : The code will be executed successfully and random output will be generated
A : O(M!)
B : O(Mn)
C : O(N!)
D : O(N)
A : Optimal solution
B : Best solution
C : Worst solution
D : All solutions
A:n
B : n^2
C : nlogn
D:
Q.no 2. The best data structure to check whether an arithmetic expression has balanced
parentheses is a
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 362/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : queue
B : stack
C : tree
D : list
A : switch -case
B : exit condition
C : loop
D:
C : Network flow
D : Sorting
A : O(1)
B : O(log n)
C : O(n)
D : O(n^2)
Q.no 7. Amortized analysis is a technique that, given a sequence of operations, permits sharing
the cost of a single expensive operation with many other cheaper ones.
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 363/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : true
B : false
C:
D:
A : Linear
B : polynomial
C : quadratic
D : exponential
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
Q.no 10. For the improvement of efficiency of quick sort the pivot can be____
Q.no 11. Which element of an input array is chosen as pivot in Randomized Quicksort?
A : First
B : Last
C : Median
D : Random number
Q.no 12. The best suited algorithm could be decided using proof technique
A : false
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 364/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : true
C:
D:
Q.no 13. If the children of the root,from left to right, are the roots of Bk−1, Bk−2, . . . , B1, B0,
then root has degree .........
A : K-1
B:K
C : K+1
D : K+2
Q.no 14. Which of the following algorithms has better time complexity?
A : insertion sort
B : binary search
C : linear search
D : merge sort
Q.no 15. Dijkstra algorithm, which solves the single-source shortest--paths problem, is a
A : Greedy Algorithm
D : Backtracking Algorithm
Q.no 16. What will be the best case time complexity of merge sort?
A : O(N Log N)
B : O(n*n)
C : O(Log N)
D : O(Log Log N)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 365/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : linear search
A : 111
B : 101
C : 110
D : 11
Q.no 19. In Algorithm Specification the blockes are indicated with matching
A : Braces
B : Parenthesis
C : Square Brackets
D : Slashes
Q.no 21. Power saving is an important job in embedded systm and sensor network.
A : true
B : false
C:
D:
Q.no 22. Running the program many times is sufficient to prove the correctness of program
A : true
B : false
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 366/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
C:
D:
Q.no 24. Which of the given options provides the increasing order of asymptotic complexity of
functions f1, f2, f3 and f4?
f1(n) = 2^n
f2(n) = n^(3/2)
f3(n) = nLogn
f4(n) = n^(Logn)
D : None of these
Q.no 25. Which of the following method is used for sorting in merge sort?
A : Merging
B : Partitioning
C : Selection
D : Exchanging
Q.no 26. Many multithreaded algorithms involving nested parallelism follow naturally from
A : Dynamic Programming
C : Greedy Method
Q.no 27. Choose the correct steps to prove if the vertex cover problem is NP-Complete. I-- Vertex
Cover problem is in NP II--Clique problem is in NP III--Prove that Clique problem ≤ Vertex
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 367/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Cover Problem in polynomial time IV---Prove that Vertex Cover problem ≤ Clique Problem in
polynomial time
A : I and III
B : I and IV
C : II and III
D : II and IV
Q.no 28. How many stages(steps) of procedure does a non-deterministic algorithm consist of?
A:1
B:2
C:3
D:4
B : Branch And Bound Is Not Suitable Where A Greedy Algorithm Is Not Applicable
C : Branch And Bound Divides A Problem Into At Least 2 New Restricted Sub Problems
Q.no 30. Which of the following statements about loop invariants is false?
A : Loop invariants are used to show that algorithms produce the correct results.
B : A loop invariant is the opposite, that is the negation, of the condition of the loop.
Q.no 31. Mathematical induction allows us to prove the correctness and efficiency of algorithm
both
A : true
B : false
C:
D:
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 368/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : Process
B : Work
C : Thread
D : Span
Q.no 34. Which of the following statement about 0/1 knapsack and fractional knapsack problem
is correct?
A : In 0/1 Knapsack Problem Items Are Divisible And In Fractional Knapsack Items Are Indivisible
C : 0/1 Knapsack Is Solved Using A Greedy Algorithm And Fractional Knapsack Is Solved Using
Dynamic Programming
D : In 0/1 Knapsack Problem Items Are Indivisible And In Fractional Knapsack Items Are Divisible
A : All problems in P
D : Halting problem
Q.no 36. Given an array of elements 5, 7, 9, 1, 3, 10, 8, 4. Which of the following is the correct
sequences of elements after inserting all the elements in a min-heap?
A : 1,3,4,5,7,8,9,10
B : 1,4,3,9,8,5,7,10
C : 1,3,4,5,8,7,9,10
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 369/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
D : 1,3,7,4,8,5,9,10
Q.no 37. Parallel loops are like an ordinary_______________except that the iterations of the loop
can execute concurrently.
A : While loop
B : For Loop
C : Do while loop
D : If statement
Q.no 38. A Fibonacci heap uses ………… memory than a binary heap.
A : less
B : equal
C : more
D : cannot say
Q.no 39. Given items as {value,weight} pairs {{60,20},{50,25},{20,5}}. The capacity of knapsack is
40. Find the maximum value output assuming items to be divisible and nondivisible respectively.
A : 100, 80
B : 110, 70
C : 130, 110
D : 110, 80
A : T1 / T∞
B : T1 / Tp
C : Tp / T1
D : T∞/T1
C : C) Non Associative
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 370/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 42. Consider the following two problems of graph. 1) Given a graph, find if the graph has a
cycle that visits every vertex exactly once except the first visited vertex which must be visited
again to complete the cycle. 2) Given a graph, find if the graph has a cycle that visits every edge
exactly once. Which of the following is true about above two problems.
Q.no 43. When a top-down approach of dynamic programming is applied to a problem, it usually
_____________
D:
A : Not Flexible
B : Robust
C : Inappropriate
Q.no 46. Given items I = (I1,I2,I3,I4,I5), w = (5, 10, 20, 30, 40) and v = (30, 20, 100, 90,160). The
capacity of knapsack W = 60. Find the
maximum profit using fractional knapsack.
A : 250
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 371/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : 270
C : 290
D : 130
A : O(nlog n)
B : O(n^2 )
C : O( n)
D : O(log n)
Q.no 48. When recursive call is the last thing executed by the function is called?
A : Mutual Recursion
B : Tail Recursion
C : Exponential Recursion
D : Recursion
Q.no 49. Consider the two matrices P and Q which are 10 x 20 and 20 x 30 matrices respectively.
What is the number of multiplications required to multiply the two matrices?
A : 10*20
B : 20*30
C : 10*30
D : 10*20*30
Q.no 50. The main time taking step in fractional knapsack problem is?
C : Sorting
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 372/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
Q.no 51. Mathematical induction can be used to prove that, for any positive integer n,
"Summation of first 1 to n numbers " is
A : n(n+1)/2
B : n^2(n+1)^2/2
C : n(n-1)/2
D:
A : when all characters of pattern and text are same as the hash values of all the substrings of text]
match with hash value of pattren.
B : when all characters of pattern and text are different as the hash values of all the substrings of text]
match with hash value of pattren.
C : Both a and b
D : neither a nor b
Q.no 54. Ram and Shyam have been asked to show that a certain problem Π is NP-complete.
Ram shows a polynomial time reduction from the 3-SAT problem to Π, and Shyam shows a
polynomial time reduction from Π to 3-SAT. Which of the following can be inferred from these
reductions ?
C : Π is NP-complete
A : O(n log n)
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 373/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
B : O(n)
C : O(nlogn)
D : O(nW)
Q.no 56. What is the induction hypothesis assumption for the inequality m ! > 2^m where m>=4?
D:
Q.no 57. What are requirements should a problem satisfy in order to be suitable for solving it by
a Genetic Algorithm?
B : Solutions Should Be Decomposable Into Steps (Building Blocks) Which Could Be Then Encoded
As Chromosomes.
D : Minimize Functions
Q.no 58. Basic operations like insertion, look-up and removal in splay trees are performed in
……. time.
A : O(1)
B : O(n)
C : O(log n)
D : O(n log n)
Q.no 59. What is the feature of ANNs due to which they can deal with noisy, fuzzy, inconsistent
data?
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 374/375
12/25/2020 https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30
A : B0, B2,B3
B : B2,B3,B4
C : B1,B2,B3,B4
D : B1,B2,B3
https://sppu.wheebox.com/WAC-3/allqusdownloadhtml.ils?testNo=5852&code=1052000&showTest=319&actForm=edit&set=30 375/375
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 1/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 3/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 5/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 7/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 9/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 11/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 13/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 15/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 17/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 19/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 21/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 23/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 25/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 27/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 29/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 31/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 33/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 35/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 37/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 39/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 41/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 43/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 45/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 47/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 49/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 51/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 53/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 55/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 57/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 59/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 61/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 63/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 65/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 67/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 69/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 71/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 73/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 75/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 77/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 79/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 81/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 83/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 85/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 87/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 89/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 91/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 93/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 95/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 97/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 99/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 101/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 103/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 105/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 107/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 109/110
12/25/2020 https://sppu.wheebox.com/WAC-3/openanswers.obj
https://sppu.wheebox.com/WAC-3/openanswers.obj 110/110