DAA_UNIT_4

DAA_UNIT_4

University

48 Qs

quiz-placeholder

Similar activities

Final Exam - Introduction to Computing

Final Exam - Introduction to Computing

University

52 Qs

CorelDRAW Application Quiz

CorelDRAW Application Quiz

12th Grade - University

51 Qs

Ôn Tập Giữa Học Kỳ 2 Môn Tin Học

Ôn Tập Giữa Học Kỳ 2 Môn Tin Học

11th Grade - University

48 Qs

PHP_BCA-III

PHP_BCA-III

University

50 Qs

AWD - Prelim Exam

AWD - Prelim Exam

University

49 Qs

Long Quiz - HCI

Long Quiz - HCI

University

45 Qs

แบบทดสอบกลางภาค access

แบบทดสอบกลางภาค access

KG - University

52 Qs

LATIHAN UNBK TKJ 2020

LATIHAN UNBK TKJ 2020

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