
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?
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Education
20 questions
Disney Trivia
Quiz
•
University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
14 questions
Ch.3_TEACHER-led
Quiz
•
University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University