Data Struct: Quiz 3

Data Struct: Quiz 3

University

10 Qs

quiz-placeholder

Similar activities

Algorithm Intro

Algorithm Intro

9th Grade - University

14 Qs

CPIT 201 Algorithms

CPIT 201 Algorithms

12th Grade - University

15 Qs

Data Structures -Trees & Sorting

Data Structures -Trees & Sorting

University

15 Qs

Enumeration and Recursion

Enumeration and Recursion

11th Grade - University

12 Qs

AS Computing: Data Structures

AS Computing: Data Structures

10th Grade - University

15 Qs

CCS3101-CS1E

CCS3101-CS1E

University

11 Qs

Logika Dan Algoritma P10

Logika Dan Algoritma P10

University

15 Qs

code

code

University

10 Qs

Data Struct: Quiz 3

Data Struct: Quiz 3

Assessment

Quiz

Science, Computers

University

Hard

Used 12+ times

FREE Resource

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

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?