DAA_UNIT_4

DAA_UNIT_4

University

•

48 Qs

quiz-placeholder

Similar activities

Round 1 Code2duo

Round 1 Code2duo

University

•

44 Qs

Application Software Quiz

Application Software Quiz

12th Grade - University

•

50 Qs

Data Structure and Algorithm

Data Structure and Algorithm

University

•

43 Qs

Year 8 AP 2025 - Dec

Year 8 AP 2025 - Dec

6th Grade - University

•

50 Qs

FINAL EXAM CC104

FINAL EXAM CC104

University

•

50 Qs

XIRPL2_PASQUIZZ

XIRPL2_PASQUIZZ

1st Grade - Professional Development

•

50 Qs

Microsoft Excel - Basics

Microsoft Excel - Basics

7th Grade - University

•

45 Qs

Latihan UNBK TKJ 2019

Latihan UNBK TKJ 2019

10th Grade - University

•

50 Qs

DAA_UNIT_4

DAA_UNIT_4

Assessment

Quiz

•

Computers

•

University

•

Practice Problem

•

Hard

Created by

Kashaf Khan

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers