Searching and Sorting

Quiz
•
Computers
•
University - Professional Development
•
Hard
AKSHAY KUMAR
Used 301+ times
FREE Resource
15 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 is chosen by using a formula
A pivot makes the searching method becomes slow
2.
MULTIPLE CHOICE QUESTION
1 min • 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
45 sec • 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
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Given a list is {7, 4, 5, 9, 8, 2, 1}. After the first phase of selection sort, the list becomes …
1,2,4,9,8,5,7
1,2,5,9,8,4,7
1,4,5,9,8,2,7
7,4,5,9,8,2,1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the number of records to be sorted is small, identify the suitable sorting to be used
Quick sort
Merge sort
Selection sort
Bubble sort
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The worst case occurs in linear search algorithm when ______________________
Item is not in the array at all
Item is somewhere in the middle of the array
Item is the last element in the array or item is not there at all
Item is the last element in the array
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose we are sorting an array of eight integers using quick sort, and we have just finished the first partitioning with the array looking like this:
2 5 1 7 9 12 11 10
Identify the correct statement?
Neither the 7 nor the 9 is the pivot.
The pivot could be either the 7 or the 9.
The pivot is not the 7, but it could be the 9.
The pivot could be the 7, but it is not the 9.
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
Sorting Algorithms II

Quiz
•
University
20 questions
MS Excel Advanced

Quiz
•
University
10 questions
7.5 Standard Methods of Solution Cambridge IGCSE 0478

Quiz
•
10th Grade - University
10 questions
Pre Test Pelatihan M.Excel

Quiz
•
Professional Development
15 questions
AS Computing: Data Structures

Quiz
•
10th Grade - University
15 questions
Sorting

Quiz
•
University
10 questions
Quiz Sorting

Quiz
•
University
16 questions
Searching & Sorting Algorithms

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
15 questions
Fun Random Trivia

Quiz
•
Professional Development