Search Header Logo

DSA final (FIT HANU)

Authored by Shiroi Kitsunee

Education

University

Used 73+ times

DSA final (FIT HANU)
AI

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Similar Resources on Wayground