DSA Basic Quiz

DSA Basic Quiz

University

15 Qs

quiz-placeholder

Similar activities

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

CS100||MsWord

CS100||MsWord

University

10 Qs

Skill Competition Quiz 2024

Skill Competition Quiz 2024

10th Grade - University

20 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Introducción Redes Tele1 IB

Introducción Redes Tele1 IB

10th Grade - University

15 Qs

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

Software dan Hardware

Software dan Hardware

University

10 Qs

DSA Basic Quiz

DSA Basic Quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Moushmee Kuri

Used 5+ 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

30 sec • 1 pt

  1. If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?

ABCD

DCBA

DCAB

ABDC


2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. How many stacks are needed to implement a queue. Consider the situation where no other data structure like arrays, linked list is available to you.

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. The following postfix expression with single digit operands is evaluated using a stack:  8 2 3 ^ / 2 3 + 5 1 -

Note that ^ is the exponentiation operator. The result is:


3

4

12

2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. If the sequence of operations - push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop are performed on a stack, the sequence of popped out values

2,2,1,1,2


2,2,1,2,2

2,1,2,2,1

2,1,2,2,2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. What will be the postfix form of the above expression -

(A+B)∗(C∗D-E)∗F/G


A B + C  ∗ D  E − F G ∗ / ∗


A B + C D ∗ E − F G ∗ / ∗

A B + C D E ∗ − F G / ∗ ∗

A B + C D ∗ E - ∗ F ∗ G /

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. What is the value in the head -> next -> next below?

12


4600

1600

88

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. What is the operation of the below statements?

  2. newNode--->link = head;

  3. head = newNode;

Create a new node for a linked list


Insert a new node to the front of a linked list

Delete a new node from a linked list

Insert a new node to the end of the linked list

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