Which of the following is a valid sorting algorithm in C?
BUG-OFF

Quiz
•
Computers
•
University
•
Hard
Pruthvi Deepam
Used 3+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quick Sort
Binary Search
Depth-First Search
Breadth-First Search
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is ideal for implementing Dijkstra's Algorithm?
Stack
Queue
Priority Queue
Linked List
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the complexity of linear search in an unsorted array of n elements?
O(n)
O(log n)
O(n^2)
O(n log n)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C, which header file is used for dynamic memory allocation functions?
stdio.h
math.h
stdlib.h
string.h
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm works by repeatedly finding the minimum element from the unsorted part and putting it at the beginning?
Insertion Sort
Bubble Sort
Selection Sort
Merge Sort
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true for binary search?
It requires a sorted array
It works with linked lists
It has O(n) time complexity
It can search unsorted arrays
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function in C allocates memory but does not initialize it?
malloc()
calloc()
realloc()
free()
Create a free account and access millions of resources
Similar Resources on Quizizz
27 questions
Algorithm

Quiz
•
University
25 questions
DSA_Unit3

Quiz
•
University
25 questions
Technical quiz(Medium-Level)

Quiz
•
University
31 questions
Chapt 14

Quiz
•
University
28 questions
Computer Science quiz

Quiz
•
11th Grade - University
30 questions
Data Structures and Algorithm

Quiz
•
11th Grade - Professi...
25 questions
Data Structures 1

Quiz
•
University
25 questions
Code Sprint

Quiz
•
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