Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

10 Qs

quiz-placeholder

Similar activities

LATIAN NEH GUYS

LATIAN NEH GUYS

KG - Professional Development

15 Qs

Exponential and Logarithmic

Exponential and Logarithmic

10th Grade - University

11 Qs

Data Mining Terminology 1

Data Mining Terminology 1

University

15 Qs

División y conquista

División y conquista

University

10 Qs

20CS2018 - DAA - Batch1

20CS2018 - DAA - Batch1

University

15 Qs

Función exponencial y logarítmica

Función exponencial y logarítmica

University

10 Qs

Arreglos and ArrayLists

Arreglos and ArrayLists

University

10 Qs

PLACEMENT QUIZ

PLACEMENT QUIZ

University

12 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