DSA Basic Quiz

DSA Basic Quiz

University

15 Qs

quiz-placeholder

Similar activities

1D Arrays

1D Arrays

9th Grade - University

14 Qs

Stack & Quiz

Stack & Quiz

University

20 Qs

BCSC0006 - Quiz 4 - Linked List & Stacks

BCSC0006 - Quiz 4 - Linked List & Stacks

University

10 Qs

651-114-ADT

651-114-ADT

University

10 Qs

DATSRUC Week 6

DATSRUC Week 6

10th Grade - University

15 Qs

Data Structure & Algorithm

Data Structure & Algorithm

University

10 Qs

Array

Array

University

10 Qs

Collections C#

Collections C#

University

20 Qs

DSA Basic Quiz

DSA Basic Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Moushmee Kuri

Used 5+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?