BUG-OFF

BUG-OFF

University

30 Qs

quiz-placeholder

Similar activities

Linear Binary Search

Linear Binary Search

11th Grade - University

25 Qs

Adversarial Search and CSP Quiz

Adversarial Search and CSP Quiz

University

26 Qs

Algorithms final

Algorithms final

University

26 Qs

UAS-UP-ADA-17122021

UAS-UP-ADA-17122021

University

35 Qs

Sorting Techniques

Sorting Techniques

University

25 Qs

CA mcq

CA mcq

University

25 Qs

Data Structures 1

Data Structures 1

University

25 Qs

Hard-very- Hard

Hard-very- Hard

University

26 Qs

BUG-OFF

BUG-OFF

Assessment

Quiz

Computers

University

Hard

Created by

Pruthvi Deepam

Used 3+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

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

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?