BUG-OFF

BUG-OFF

University

30 Qs

quiz-placeholder

Similar activities

Programming Logic & Design

Programming Logic & Design

KG - University

28 Qs

OCR J277 GCSE Paper 1 Recap

OCR J277 GCSE Paper 1 Recap

9th Grade - University

35 Qs

COCSIT C language test 23_04_2023

COCSIT C language test 23_04_2023

University

30 Qs

test_3_01/02

test_3_01/02

University

29 Qs

Analisis Data dan Algoritma Pemrograman

Analisis Data dan Algoritma Pemrograman

8th Grade - University

25 Qs

Algorithm Quiz 30 Questions

Algorithm Quiz 30 Questions

University

30 Qs

Searching and Sorting

Searching and Sorting

10th Grade - University

25 Qs

Design And Analysis of Algorithms

Design And Analysis of Algorithms

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?