Algorithms MCQ
Algorithms MCQ
Algorithms
30 questions 13 topics
Question 1 Feedback
Choose an answer
Show solution
Question 2 Feedback
Choose an answer
Show solution
Question 3 Feedback
A parallel system having a collection of m processors and only single item is sorted per processor.
What is the time required to perform the sorting?
Choose an answer
A time
B time
C time
D time
Show solution
Question 4 Feedback
Choose an answer
Show solution
Question 5 Feedback
Choose the option containing true statements for the given graph?
The given graph is not complete but connected.
Choose an answer
A 1 and 3
B only 1
C 2 and 3
D 1 and 2
Show solution
Question 6 Feedback
Identify the following assertions about GPGPU is true?
Choose an answer
A Parallel computing may be used to harness the power of GPUs for general uses.
B The usage of graphics processing units for general-purpose computation weakens CPU
architecture.
Show solution
Question 7 Feedback
For the component labeling algorithm, what is the time complexity for the divide and conquer
method?
Choose an answer
Show solution
Question 8 Feedback
Which of the following integral power algorithm have a running time and an extra space for
data items?
Choose an answer
D Iterative algorithm
Show solution
Question 9 Feedback
What is the time complexity for solving the maximum sum subsequence problem for the CREW
PRAM?
Choose an answer
A time
B
time
C time
D time
Show solution
Question 10 Feedback
What is the output of test(4) for the following code of recursion?
Choose an answer
A 1213214321
B 121321143211211
C 121312141213121
D 121324321
Show solution
1 2 3 Next
CHEGG NETWORK
CUSTOMER SERVICE
Algorithms
30 questions 13 topics
Question 11 Feedback
Which of the following is the recursive relation that satisfies the greatest common divisor problem
according to the Euclidean algorithm?
Choose an answer
Show solution
Question 12 Feedback
Suppose the input data is sorted on RAM. So, worst-case for the sequential algorithm that is based
on comparison sorting will run in_____time.
Choose an answer
A time
B time
C time
D time
Question 13 Feedback
Choose an answer
A time
B time
C time
D time
Show solution
Question 14 Feedback
The Hyper quicksort is the modification of quicksort in parallel models. What is the running time of
hyper quicksort?
Choose an answer
Show solution
Question 15 Feedback
Choose the option containing true statements for the given graph?
Choose an answer
Show solution
Question 16 Feedback
Choose the correct cost of the array packing problem (size ) solved using a PRAM model?
Choose an answer
A with processors
B
with processors
C with processors
D
with processors
Show solution
Question 17 Feedback
Choose an answer
B
C
D
Show solution
Question 18 Feedback
Which is the correct Warshall algorithm to find out the transitive closure of a Boolean matrix?
Choose an answer
Show solution
Question 19 Feedback
Choose an answer
A Random error
D Roundoff error
Show solution
Question 20 Feedback
Which option describes the correct space complexity of the Merge Sort algorithm?
Choose an answer
A The auxiliary space complexity of Merge Sort is and for in-place merge sort is
.
B The auxiliary space complexity of Merge Sort is and for in-place merge sort is
.
C The auxiliary space complexity of Merge Sort is and for in-place merge sort is
.
D The auxiliary space complexity of Merge Sort is and for in-place merge sort is
.
Show solution
Prev 1 2 3 Next
COMPANY
CHEGG NETWORK
CUSTOMER SERVICE
Algorithms
30 questions 13 topics
Question 21 Feedback
Which of the following options is used to represent the cost-optimal running time of the mesh
semi-group algorithm?
Choose an answer
Show solution
Question 22 Feedback
What is the running time of Dijkstra’s algorithm for finding a single-source shortest path problem
for a weighted directed graph?
Choose an answer
Show solution
What is important for an algorithm to solve the problem in computational geometry on NOW,
Cluster, and grids systems?
Choose an answer
A Data redistribution
B Data cleaning
C Data sorting
D Data size
Show solution
Question 24 Feedback
Given a linked list of size 6. What is the number of iterations needed to find the distance of all
nodes?
Choose an answer
A 4
B 6
C 3
D 2
Show solution
Question 25 Feedback
Select the correct order of steps for finding the smallest element from the list of elements?
Choose an answer
A 1,4,2,3
B 4,1,2,3
C 2,3,4,1
D 2,3,1,4
Show solution
Question 26 Feedback
Choose an answer
Show solution
Question 27 Feedback
Choose an answer
Show solution
Question 28 Feedback
What is an optimal time for maximal overlapping points using the CREW PRAM algorithm with
processors?
Choose an answer
Show solution
Question 29 Feedback
Consider the following two statements for linear array Merge Sort of element with processors.
During each recursive step, rotation of the data performed through all
The total cost of the algorithm is more than the Merge Sort performed using a single
processor.
Choose an answer
Show solution
Question 30 Feedback
What is error bound for trapezoidal integration if be a function that is twice differentiable on
the interval [a, b] and n be a positive integer:
Choose an answer
Show solution
Prev 1 2 3
COMPANY
CHEGG NETWORK
CHEGG NETWORK
CUSTOMER SERVICE