
DAA_UNIT_4

Quiz
•
Computers
•
University
•
Hard
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
Similar Resources on Wayground
50 questions
Blockchain Quiz

Quiz
•
University
43 questions
Data Structure and Algorithm

Quiz
•
University
50 questions
ICT 2 вариант AA

Quiz
•
University
50 questions
Information Security model exam

Quiz
•
University
51 questions
Module 8

Quiz
•
University
50 questions
SE UNIT -5 Advanced Software Maintenance Quiz

Quiz
•
University
50 questions
Artificial Intelligence Quiz

Quiz
•
University
43 questions
2023-2024 HDL Prelim Exam

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade