1. Which of the following sorting algorithms is the fastest for sorting small arrays?

Data Structure quiz 1

Quiz
•
Computers
•
University
•
Medium
GOMATHI P
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a) Quick sort
b) Shell sort
c) Insertion sort
d) Heap sort
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the advantage of selection sort over other sorting techniques?
a) It is faster than any other sorting technique
b) It is scalable
c) It works best for inputs which are already sorted
d) It requires no additional storage space
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following method is used for sorting in merge sort?
partitioning
b) merging
c) exchanging
d) selection
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Merge sort uses which of the following method to implement sorting?
a) selection
b) exchanging
c) merging
d) partitioning
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following sorting algorithms is the fastest?
a) Merge sort
b) Shell sort
c) Insertion sort
d) Quick sort
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Shell sort algorithm is an example of?
a) Bottom-up sorting
b) In-place sorting
c) Internal sorting
d) External sorting
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not an advantage of optimised bubble sort over other sorting techniques in case of sorted elements?
a) It is faster
b) Consumes less memory
c) Detects whether the input is already sorted
d) Consumes less time
Answer explanation
Optimised Bubble sort is one of the simplest sorting techniques and perhaps the only advantage it has over other techniques is that it can detect whether the input is already sorted. It is faster than other in case of sorted array and consumes less time to describe whether the input array is sorted or not. It consumes same memory than other sorting techniques. Hence it is not an advantage.
Create a free account and access millions of resources
Similar Resources on Quizizz
23 questions
Data Structures and Algorithms Quiz - BATCH 1

Quiz
•
University
21 questions
Sorting algorithms I

Quiz
•
University
20 questions
Midterm Exam Content ITEC 204

Quiz
•
University
30 questions
BUG-OFF

Quiz
•
University
20 questions
Advanced Excel

Quiz
•
KG - University
30 questions
Latihan Algotima

Quiz
•
University
25 questions
QUIZ

Quiz
•
University
20 questions
JDVP Activity

Quiz
•
12th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade