Search Header Logo

Data Structures and Algorithms

Authored by mukilan selvaraj

Computers

University

Used 4+ times

Data Structures and Algorithms
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Queue

Stack

Linked List

Tree

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of accessing an element in a Python list by its index?

O(1)

O(n)

O(log n)

O(n²)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a mutable data structure in Python?

Tuple

String

List

Frozenset

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to initialize a dictionary in Python?

dict = []

dict = {}

dict = ()

dict = set()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which algorithm uses a divide-and-conquer approach?

Bubble Sort

Merge Sort

Linear Search

Insertion Sort

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst-case time complexity of the Bubble Sort algorithm?

O(n)

O(n log n)

O(n²)

O(log n)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure is used for implementing a FIFO (First In, First Out) principle?

Stack

Queue

Array

Graph

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers