Search Header Logo

All Quizes for ADS: Test Your Understanding

Authored by mins mins

Other

12th Grade

Used 1+ times

All Quizes for ADS: Test Your Understanding
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

38 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of inserting a new element at the beginning of a linked list?

a) O(1)

b) O(log n)

c) O(n)

d) O(n log n)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the degree of a vertex in a graph?

a) The number of edges connected to it.

b) The number of vertices adjacent to it.

c) The number of paths that pass through it.

d) The distance from the root node to the vertex.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an adjacency list?

a) A list of all edges in a graph.

b) A list of all vertices in a graph.

c) A list of vertices adjacent to a given vertex.

d) A list of paths in a graph.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an adjacency list used for in graph representation?

a) Representing the connections between vertices using a list of lists.

b) Storing the weights of edges in a graph.

c) Creating a list of all vertices in a graph.

d) Storing the degree of each vertex in a graph.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of searching for a specific element in a sorted array using binary search?

a) O(1)

b) O(log n)

c) O(n)

d) O(n log n)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an adjacency matrix used for in graph representation?

a) Storing the weights of edges in a graph.

b) Representing the connections between vertices using a 2D array.

c) Creating a list of all vertices in a graph.

d) Storing the degree of each vertex in a graph.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the peek operation in a Queue when the queue is empty?

O(1)

O(n)

O(log n)

O(n^2)

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?