Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

10 Qs

quiz-placeholder

Similar activities

PLACEMENT QUIZ

PLACEMENT QUIZ

University

12 Qs

Exponential to Logarithmic

Exponential to Logarithmic

8th Grade - University

15 Qs

Quiz 1 - Analysis of Algorithms

Quiz 1 - Analysis of Algorithms

University

5 Qs

Descuento Compuesto

Descuento Compuesto

University

13 Qs

Calcul de logarithmes

Calcul de logarithmes

10th Grade - University

10 Qs

Software Engineering Quiz 3

Software Engineering Quiz 3

University

10 Qs

Semana 2 ADDI

Semana 2 ADDI

University

7 Qs

LOGARITHMS AND THEIR PROPERTIES A

LOGARITHMS AND THEIR PROPERTIES A

9th Grade - University

15 Qs

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

Assessment

Quiz

Mathematics

University

Hard

Created by

KARE OSS

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of accessing an element in an array?

O(n)

O(log n)

O(1)

O(n^2)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure uses LIFO (Last In, First Out) principle?

Queue

Stack

Array

Linked List

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst-case time complexity of bubble sort?

O(n)

O(n log n)

O(n^2)

O(n^3)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a type of tree?

Binary Tree

AVL Tree

Hash Tree

B-Tree

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a linked list, what is the time complexity to insert a node at the beginning?

O(n)

O(log n)

O(1)

O(n^2)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which algorithm is used for finding the shortest path in a weighted graph?

Depth-First Search

Dijkstra's Algorithm

Bubble Sort

Prim's Algorithm

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main disadvantage of a linked list over an array?

No dynamic sizing

Slower access time

More memory usage

No flexibility in data types

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?

Discover more resources for Mathematics