DSA_Unit5

DSA_Unit5

University

25 Qs

quiz-placeholder

Similar activities

DATA STRUCTURE AND ALGORITHM

DATA STRUCTURE AND ALGORITHM

University

21 Qs

Computational Thinking

Computational Thinking

9th Grade - University

22 Qs

Algorithm Analysis

Algorithm Analysis

University

21 Qs

computer science

computer science

KG - Professional Development

22 Qs

DSA_Prelim Quiz

DSA_Prelim Quiz

University

25 Qs

13CS_RECURSION &DECLARATIVE PROGRAMS_TEST1

13CS_RECURSION &DECLARATIVE PROGRAMS_TEST1

12th Grade - University

20 Qs

DS- UNIT-1

DS- UNIT-1

University

20 Qs

Problem Solving Quiz

Problem Solving Quiz

6th Grade - University

20 Qs

DSA_Unit5

DSA_Unit5

Assessment

Quiz

Computers

University

Hard

Created by

Amal Redge

Used 1+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Backtracking is a general algorithmic technique that is used to solve problems by:

Dividing a problem into smaller subproblems

Exploring all possible options and discarding the ones that fail

Finding the shortest path between two nodes

Sorting elements in ascending order

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure is primarily used in the backtracking algorithm?

Queue

Stack

Heap

Linked List

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following problems is best solved using backtracking?

Binary Search

8-Queens Problem

Merge Sort

Kruskal’s Algorithm

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The 8-Queens problem is a classic example of which algorithmic technique?

Dynamic Programming

Greedy Algorithm

Backtracking

Divide and Conquer

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the 8-Queens problem, what is the main constraint?

No two queens should be in the same row

No two queens should be in the same column

No two queens should attack each other

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following problems is NOT typically solved using backtracking?

Graph Coloring

Sudoku Solver

Prim’s Algorithm

Hamiltonian Cycle

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the backtracking algorithm for solving the N-Queens problem?

O(N)

O(N²)

O(N!)

O(2ⁿ)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?