DAA_UNIT_4

DAA_UNIT_4

University

48 Qs

quiz-placeholder

Similar activities

Data Structure and Algorithm

Data Structure and Algorithm

University

43 Qs

Quiz tentang Flowchart dan Pseudocode

Quiz tentang Flowchart dan Pseudocode

12th Grade - University

53 Qs

ICT 2 вариант AA

ICT 2 вариант AA

University

50 Qs

Information Security model exam

Information Security model exam

University

50 Qs

ANALYSIS OF ALGORITHM - 1

ANALYSIS OF ALGORITHM - 1

University

43 Qs

Design and Analysis of Algorithms [5th Sem BCA]

Design and Analysis of Algorithms [5th Sem BCA]

University

45 Qs

AI - Revision

AI - Revision

University

50 Qs

Midterm - Intro to Computer Science

Midterm - Intro to Computer Science

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?