DAA_UNIT_4

DAA_UNIT_4

University

48 Qs

quiz-placeholder

Similar activities

Sorting, Searching and Big O Review

Sorting, Searching and Big O Review

9th Grade - University

45 Qs

Computer Systems and Algorithms Quiz

Computer Systems and Algorithms Quiz

10th Grade - University

50 Qs

CS8391 - DS-IAT#3

CS8391 - DS-IAT#3

University

50 Qs

Data Structures and Algorithm - Final Examinations Quiz

Data Structures and Algorithm - Final Examinations Quiz

University

51 Qs

tech

tech

University

53 Qs

Module 8

Module 8

University

51 Qs

Data Science & Its Application Quiuz

Data Science & Its Application Quiuz

University

50 Qs

Revision on Artificial Intelligence

Revision on Artificial Intelligence

University

50 Qs

DAA_UNIT_4

DAA_UNIT_4

Assessment

Quiz

Computers

University

Hard

Created by

Kashaf Khan

Used 1+ times

FREE Resource

48 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following algorithms is used for exact string matching?

Kruskal's Algorithm

KMP Algorithm

Floyd-Warshall Algorithm

Prim's Algorithm

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the Knuth-Morris-Pratt (KMP) algorithm?

O(n^2)

O(n)

O(m + n)

O(log n)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Rabin-Karp algorithm, the hash function is used to:

Count characters

Find a substring

Compare patterns

Calculate hash values of substrings

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which algorithm is most efficient for long patterns and large alphabets?

Naive String Matching

Boyer-Moore Algorithm

Rabin-Karp Algorithm

Dynamic Programming

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary limitation of the Naive String Matching algorithm?

High space complexity

High time complexity for large texts

Limited pattern matching capability

Inefficient for exact matching

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Text justification is primarily concerned with:

Text compression

Aligning text evenly across a line

Sorting text lexicographically

Encrypting text

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In fully justified text, what is minimized between words?

Character gaps

Line breaks

Space gaps

Font size

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?