DSA & Code Snippets

DSA & Code Snippets

University

15 Qs

quiz-placeholder

Similar activities

IMPORTANT BRANDING DECISSIONS

IMPORTANT BRANDING DECISSIONS

University

15 Qs

PRE AND POST METODOLOGI PENELITIAN KONVERSI

PRE AND POST METODOLOGI PENELITIAN KONVERSI

University

11 Qs

What is water

What is water

KG - Professional Development

10 Qs

HUC110

HUC110

University

20 Qs

Research Sampling

Research Sampling

University

15 Qs

Teacher Roles

Teacher Roles

University - Professional Development

10 Qs

Computer Knowledge

Computer Knowledge

1st Grade - Professional Development

10 Qs

Singapore

Singapore

12th Grade - Professional Development

15 Qs

DSA & Code Snippets

DSA & Code Snippets

Assessment

Quiz

Education

University

Practice Problem

Medium

Created by

Shanmuga Priya M

Used 32+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which one of the following is an application of Stack Data Structure?

Managing function calls

The stock span problem

Arithmetic expression evaluation

All of the above

Answer explanation

Media Image

Arithmatic expression evaluation - Prefix, Infix, Postfix

Stock span problem can be solved using stack

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following represents the Postorder Traversal of a Binary Tree?

Left -> Right -> Root

Left -> Root -> Right

Right -> Left -> Root

Right -> Root -> Left

Answer explanation

Media Image

Preorder : 1 2 4 5 8 3 6 9 7

Inorder : 4 2 8 5 1 6 9 3 7

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a linear data structure?

Array

AVL Trees

Binary Trees

Graphs

Answer explanation

Media Image

Refer the Image for Classification of Data Structures

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a pop() operation is called on an empty queue, what is the condition called?

Overflow

Underflow

Syntax Error

Garbage Value

Answer explanation

Media Image

Underflow -> popping out an element from empty stack

Overflow -> pushing an element into full stack

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Divide and Conquer algorithm?

Bubble Sort

Selection Sort

Heap Sort

Merge Sort

Answer explanation

Media Image

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following algorithms are used to find the shortest path from a source node to all other nodes in a weighted graph?

BFS - Best First Search

Djikstra’s Algorithm

Prims Algorithm

Kruskal’s Algorithm

Answer explanation

Dijkstra’s algorithm finds the shortest path, but Prim’s algorithm finds the MST

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which data structure is mainly used for implementing the recursive algorithm?

Queue

Stack

Array

List

Answer explanation

Stack is mainly used in recursion for implementing recursive function calls

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?