
DSA final (FIT HANU)
Authored by Shiroi Kitsunee
Education
University
Used 73+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
158 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is wrong about
graph? Choose one answer.
Weigh of an edge must be positive.
Weight of an edge can be negative.
Adjacency matrix is an appropriate representation of a graph.
Adjacency list is an appropriate representation of a graph.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a hash table of the size N using linear probing, what is the probing
hash function hi(k)?
hi(k)=h(k) mod N.
hi(k)=(h(k)+i) mod N.
hi(k)=i + k.
hi(k)=i mod N.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is correct about array-based
list? Choose one answer.
Array-based is faster than linked-list in case of accessing list’s items.
Array-based is faster than linked-list in case of inserting new item into the list.
Elements of array-based list can be located dynamically and discontinuously.
They can be implemented by Java language only.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the ADT of the list data structure, isEmpty() method returns a/an _______
value? Choose one answer.
Real number.
String.
Integer.
Boolean.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A queue Q has 05 character items, Q={“A”, “B”, “C”, “D”, “E”} where “E” is
the rear and “A” is the front of the queue. What is the content of Q if we perform the following
list of operations on the queue: enqueue(“F”)-->dequeue()-->dequeue()-->dequeque()--
>enqueue(“D”)?
Choose one answer.
Q={“D”, “E” ,“F” ,“D”}
Q={“D”, “F”, “A”, “B”}
Q={“C”, “D”, “E”, “F”}
Q={“A”, “B”, “C”, “D”}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement below is wrong in the context of linear sorting
algorithm? Choose one answer.
The sorted order is determined based on the comparisons between sort keys.
Counting sort and Radix sort are linear sorting algorithms.
The time complexity is linear.
The sort key must be numeric.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
One difference between a queue and a stack
is: Choose one answer.
Stacks require linked lists, but queues do not.
Queues require linked lists, but stacks do not.
Queues use two ends of the structure; stacks use only one.
Stacks use two ends of the structure, queues use only one.
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
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Education
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University