Search Header Logo

Battle With DSA

Authored by Shiv S

Computers

University

Used 13+ times

Battle With DSA
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

20 sec • 1 pt

Which of the following data structures can be efficiently implemented using a stack?

Queue

Binary Search Tree

Heap

Graph

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

0

1

2

Attribute error

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following highly uses the concept of an array?

Binary Search tree

Caching

Spatial locality

Scheduling of Processes

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Convert the equivalent expression to prefix

-+/abc+d*ef

/+-abcd+*ef

-/+abc+*def

/-+abc+d*ef

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the outcome of the prefix expression?

18

17

25

26

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the time complexity of the following code snippet in C++?

O(n)

O(n2)

O(logn)

O(nlogn)

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the post order traversal for the given graph?

4,12,10,18,24,22,15,31,44,35,90,66,70,50,25

4,12,10,15,18,24,22,25,31,44,35,66,90,70,50

4,10,12,15,18,22,24,25,31,35,44,50,66,70,90

4,12,10,18,24,22,15,31,44,35,66,90,70,50,25

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?