BUG-OFF

BUG-OFF

University

30 Qs

quiz-placeholder

Similar activities

COCAT - DAA

COCAT - DAA

University - Professional Development

25 Qs

Algorithms final

Algorithms final

University

26 Qs

ADA 1

ADA 1

University

35 Qs

3ICTH7H8DSA

3ICTH7H8DSA

University

25 Qs

 Milking Minds 17-01-24

Milking Minds 17-01-24

University

25 Qs

221 quiz questions exam 2 prep

221 quiz questions exam 2 prep

University

26 Qs

Algorithm Design

Algorithm Design

University

25 Qs

QUIZ

QUIZ

University

25 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?