Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

10 Qs

quiz-placeholder

Similar activities

CS 2050 Recitation 6 - efficiency and algos

CS 2050 Recitation 6 - efficiency and algos

University

9 Qs

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

10 Qs

logaritmo propiedades

logaritmo propiedades

1st Grade - University

11 Qs

Časovna Zahtevnost

Časovna Zahtevnost

University

10 Qs

03 - Tree & BST

03 - Tree & BST

University

15 Qs

Quiz 1 - Analysis of Algorithms

Quiz 1 - Analysis of Algorithms

University

5 Qs

Calcul de logarithmes

Calcul de logarithmes

10th Grade - University

10 Qs

BSCS 2-5 DSA Group 2 Webinar

BSCS 2-5 DSA Group 2 Webinar

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?