DAA_UNIT_4

DAA_UNIT_4

University

48 Qs

quiz-placeholder

Similar activities

Design and Analysis of Algorithms [5th Sem BCA]

Design and Analysis of Algorithms [5th Sem BCA]

University

45 Qs

ML chapter 1

ML chapter 1

University

50 Qs

DOS5311 Quiz 1

DOS5311 Quiz 1

University

50 Qs

ANALYSIS OF ALGORITHM - 1

ANALYSIS OF ALGORITHM - 1

University

43 Qs

SE UNIT -5 Advanced Software Maintenance Quiz

SE UNIT -5 Advanced Software Maintenance Quiz

University

50 Qs

GCSE Computer Science - 2.1-2.2

GCSE Computer Science - 2.1-2.2

University

43 Qs

NET102 FINAL EXAMINATION

NET102 FINAL EXAMINATION

University

50 Qs

IT211- Data Structures and Algorithm

IT211- Data Structures and Algorithm

University

45 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?