
DSA Basic Quiz

Quiz
•
Computers
•
University
•
Hard
Moushmee Kuri
Used 5+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
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
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
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
What is the value in the head -> next -> next below?
12
4600
1600
88
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the operation of the below statements?
newNode--->link = head;
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
Similar Resources on Wayground
12 questions
Лекция 15. Контейнеры STL

Quiz
•
University
16 questions
Technical quiz

Quiz
•
University
10 questions
informatika

Quiz
•
7th Grade - University
20 questions
OPERATING SYSTEMS UNIT 1 QUIZ

Quiz
•
University
17 questions
Data Structures and Algorithms Quiz

Quiz
•
University
15 questions
Data Structures and Algorithms Quiz No.1

Quiz
•
1st Grade - Professio...
15 questions
REMEDI UH INFORMATIKA BAB 2 "BERPIKIR KOMPUTASIONAL"

Quiz
•
10th Grade - University
20 questions
Latihan PSAS Kelas 9

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University