
DAA_UNIT_4
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Kashaf Khan
Used 1+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
50 questions
Test
Quiz
•
8th Grade - University
50 questions
Grade 5 IT Quiz
Quiz
•
5th Grade - University
50 questions
Test 1 - SDT 2113
Quiz
•
University
50 questions
Cyber Quiz
Quiz
•
University
50 questions
Quiz Python
Quiz
•
University
50 questions
Kuis Informatika Buku Siswa
Quiz
•
11th Grade - University
48 questions
Google Docs Icebreaker
Quiz
•
University
50 questions
DG Muda (2)
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
