Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

10 Qs

quiz-placeholder

Similar activities

Software Engineering Quiz 1

Software Engineering Quiz 1

University

10 Qs

QUIZ 2: CUM21022

QUIZ 2: CUM21022

University

10 Qs

Estructuras de Información

Estructuras de Información

University

10 Qs

Review of Multiplication

Review of Multiplication

4th Grade - University

10 Qs

Logs and Exponents Review

Logs and Exponents Review

11th Grade - University

15 Qs

Metodología Greedy

Metodología Greedy

University

10 Qs

PLACEMENT QUIZ

PLACEMENT QUIZ

University

12 Qs

Assessing Time Complexity Skills

Assessing Time Complexity Skills

University

10 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