Algorithm Quiz

Algorithm Quiz

University

23 Qs

quiz-placeholder

Similar activities

TechOdeyssey

TechOdeyssey

University

20 Qs

Data Structures - Interim Sem 2021-22

Data Structures - Interim Sem 2021-22

University

18 Qs

CSD201

CSD201

University

22 Qs

Sorting techniques Quiz

Sorting techniques Quiz

University

20 Qs

Competitive Coding Quiz

Competitive Coding Quiz

University

20 Qs

TECHTRIX2025 BUGHUNT SET3

TECHTRIX2025 BUGHUNT SET3

University

20 Qs

Robotics Challenge 2020 SMKTU2

Robotics Challenge 2020 SMKTU2

7th Grade - University

20 Qs

COA Quiz FH2020

COA Quiz FH2020

University

18 Qs

Algorithm Quiz

Algorithm Quiz

Assessment

Quiz

Other

University

Hard

Created by

Jyothi CSE

Used 2+ times

FREE Resource

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the algorithm that runs a loop from 0 to n?

O(n^2)

O(1)

O(n)

O(log n)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of asymptotic notations?

To define programming languages

To create data structures

To measure algorithm efficiency

To visualize algorithms

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the term 'space complexity' refer to?

Memory usage of an algorithm

Output size of an algorithm

Input size of an algorithm

Time taken by an algorithm

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a characteristic of a recursive function?

It cannot return a value

It cannot call itself

It must have a base case

It is always faster than iterative solutions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the GCD algorithm using Euclid's method?

O(log n)

O(n)

O(n^2)

O(1)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which algorithm is used to find the maximum element in a list?

Linear Search

Binary Search

Insertion Sort

Selection Sort

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary goal of the Sieve of Eratosthenes?

To find prime numbers

To sort a list

To calculate GCD

To search for an element

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?