wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

F. Y. M. Tech. AA DP04020125101

Total questions: 20

Worksheet time: 10hrs 0mins

Name
Class
Date
1.

Backtracking is mainly used to solve problems that involve:

a)

Sequential processing

b)

Exhaustive search with constraints

c)

Greedy selection

d)

Dynamic programming

2.

In backtracking, the process of abandoning a partial solution when it cannot be extended to a valid complete solution is called:

a)

Forward checking

b)

Pruning

c)

Bounding

d)

Optimization

3.

The Graph Colouring Problem aims to:

a)

Minimize the number of vertices

b)

Assign colors to edges

c)

Assign colors to vertices such that adjacent vertices have different colors

d)

Maximize the number of colors

4.

The minimum number of colors required to color a graph such that no two adjacent vertices have the same color is known as:

a)

Clique number

b)

Degree of graph

c)

Chromatic number

d)

Graph order

5.

Constraint Satisfaction Problems (CSPs) consist of:

a)

States, actions, and rewards

b)

Variables, domains, and constraints

c)

Vertices, edges, and weights

d)

Nodes, keys, and pointers

6.

Which of the following is an example of a Constraint Satisfaction Problem?

a)

Shortest path problem

b)

N-Queens problem

c)

Minimum spanning tree

d)

Binary search

7.

Branch and Bound technique is primarily used for solving:

a)

Feasibility problems

b)

Optimization problems

c)

Sorting problems

d)

Searching problems

8.

In Branch and Bound, the bound refers to:

a)

Depth of the tree

b)

Estimated best possible solution

c)

Number of branches

d)

Maximum recursion depth

9.

Which traversal strategy is commonly used in Branch and Bound algorithms?

a)

Breadth First Search

b)

Depth First Search

c)

Best First Search

d)

Random Search

10.

The main difference between Backtracking and Branch and Bound is that Branch and Bound:

a)

Finds all feasible solutions

b)

Uses bounding functions to eliminate suboptimal solutions

c)

Uses recursion instead of iteration

d)

. Does not require constraints

11.

Probabilistic analysis of algorithms focuses on:

a)

Worst-case running timeBest-case running time

b)

Best-case running time

c)

Expected running time

d)

Memory usage

12.

Indicator random variables are mainly used to:

a)

Reduce space complexity

b)

Simplify the calculation of expected values

c)

Generate random numbers

d)

Count recursive calls

13.

The expected value of an indicator random variable is equal to:

a)

0 or 1

b)

Probability of the event occurring

c)

Square of the probability

d)

Always 1

14.

The Hiring Problem is commonly used to illustrate:

a)

Greedy strategy

b)

Divide and conquer

c)

Probabilistic analysis

d)

Dynamic programming

15.

Which of the following is a characteristic of randomized algorithms?

a)

Always produce the same output

b)

Do not use random numbers

c)

Make random choices during execution

d)

Cannot be analyzed mathematically

16.

Monte Carlo algorithms are characterized by:

a)

Guaranteed correctness with variable running time

b)

Guaranteed running time with possible error in result

c)

Deterministic behavior

d)

. No use of probability

17.

Las Vegas algorithms differ from Monte Carlo algorithms in that they:

a)

Have fixed execution time

b)

May produce incorrect results

c)

Always produce correct results

d)

Do not use randomness

18.

Which of the following problems is commonly solved using Las Vegas algorithms?

a)

Matrix multiplication

b)

Sorting

c)

Searching in a hash table

d)
  • Randomized Quick Sort

19.

In Randomized Quick Sort, randomness is introduced by:

a)

Randomly selecting the pivot

b)

Randomly selecting array size

c)

Randomly swapping elements

d)

Randomly choosing recursion depth

20.

The expected time complexity of Randomized Quick Sort is:
A.

a)

O(n)

b)

O(n log n)

c)

O(n²)

d)

O(log n)