DSA final (FIT HANU)

DSA final (FIT HANU)

University

158 Qs

quiz-placeholder

Similar activities

ICT тест от Айнуры

ICT тест от Айнуры

University

160 Qs

Quiz of Software PM in RitaBook

Quiz of Software PM in RitaBook

University - Professional Development

156 Qs

TRẮC NGHIỆM EXCEL

TRẮC NGHIỆM EXCEL

University

160 Qs

TRẮC NGHIỆM PPT

TRẮC NGHIỆM PPT

University

160 Qs

DSA final (FIT HANU)

DSA final (FIT HANU)

Assessment

Quiz

Education

University

Medium

Created by

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?