Which of the following is wrong about
graph? Choose one answer.
DSA final (FIT HANU)
Quiz
•
Education
•
University
•
Medium
Shiroi Kitsunee
Used 73+ times
FREE Resource
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.
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade