
Data Structures Through C (C-21) (UNIT 3 & 4)

Quiz
•
Computers
•
12th Grade
•
Hard
Battala Krishna
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the best time complexity of bubble sort (optimized)?
N^2
N logN
N
N(logN)^2
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the worst case time complexity of insertion sort where position of the data to be inserted is calculated using binary search?
N
N*log(N)
N2
N*log(N)2
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which sorting algorithm will take least time when all elements of input array are identical?
Insertion Sort
Bubble Sort
Merge Sort
Selection Sort
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following sorting algorithms has the lowest worst-case complexity?
Bubble Sort
Quick Sort
Merge Sort
Selection Sort
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider an array of elements arr[5]= {5,4,3,2,1} , what are the steps of insertions done while doing insertion sort in the array.
4 5 3 2 1
2 3 4 5 1
3 4 5 2 1
1 2 3 4 5
5 4 3 1 2
5 4 1 2 3
5 1 2 3 4
1 2 3 4 5
4 3 2 1 5
3 2 1 5 4
2 1 5 4 3
1 5 4 3 2
4 5 3 2 1
3 4 5 2 1
2 3 4 5 1
1 2 3 4 5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct order of the following algorithms with respect to their time Complexity in the best case ?
Merge sort > Quick sort >Insertion sort > selection sort
Merge sort > selection sort > quick sort > insertion sort
insertion sort < Quick sort < Merge sort < selection sort
Merge sort > Quick sort > selection sort > insertion sort
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the best sorting algorithm to use for the elements in array are more than 1 million in general?
Merge sort.
Quick sort.
Bubble sort.
Insertion sort.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Struktur Data

Quiz
•
9th - 12th Grade
17 questions
AP CS ArrayLists

Quiz
•
12th Grade
20 questions
BK Data

Quiz
•
9th - 12th Grade
15 questions
Unit 8 - Searching and Sorting

Quiz
•
9th - 12th Grade
25 questions
PH-SUSULAN

Quiz
•
1st Grade - University
18 questions
Binary and Linear Search

Quiz
•
9th - 12th Grade
20 questions
19.2 Recursion Cambridge iA 9618

Quiz
•
12th Grade
20 questions
BÀI 5 - TIN 12 - Access 2016

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade