Search Header Logo

Data Struct: Quiz 3

Science, Computers

University

Used 12+ times

Data Struct: Quiz 3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Choose a CORRECT statement about pivot in quick sort method.

A pivot divides the list evenly.

A pivot can be chosen randomly.

A pivot can be chosen by using a formula

A pivot makes the searching method becomes slow

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Identify the INCORRECT statement about searching


i. Binary search starts by testing the largest data

ii. Linear search can be done for unsorted data only

iii. Linear search starts by testing data at the middle of list

iv. Binary search can be done for sorted homogeneous data

i, ii and iii

ii, iii and iv

i, iii and iv

i, ii, iii and iv

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Identify the sorting algorithm that apply divide-and-conquer method.

Binary sort

Linear sort

Merge sort

Quick sort

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Identify the sorting method based on the given description.


· compares adjacent pairs and swaps them if they are in the wrong order

· the method is repeated until the list is sorted

Bubble sort

Insertion sort

Merge sort

Quick sort

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

List the correct TWO (2) sorting method

Insertion sort and binary sort

Merge sort and selection sort

Linear sort and bubble sort

Quick sort and searching sort

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

select the correct differences between Linear search and Binary search.

Linear: Data is searched in a linear order

Binary: Data is search using a varieties formula

Linear: Can be applied to sorted or unsorted data

Binary: Can be applied to sorted data only

Linear: It's also called half-interval search

Binary: It's also called sequential search

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Suppose a list is {2, 9, 5, 4, 8, 1}. After the first phase of bubble sort, the list becomes …

2, 9, 5, 4, 8, 1

2, 9, 5, 4, 1, 8

2, 5, 9, 4, 8, 1

2, 5, 4, 8, 1, 9

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?