
DSA Basic Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Moushmee Kuri
Used 5+ times
FREE Resource
Enhance your content in a minute
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?
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.
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 -
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
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 -
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?
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;
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Cuestionario sobre seguridad en línea
Quiz
•
2nd Grade - University
20 questions
IT 101 - Quiz 3
Quiz
•
University
20 questions
COA_QUIZ_UNIT I
Quiz
•
University
16 questions
Algo Quiz
Quiz
•
University
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
11 questions
Computer Science (1-9) - Identifying & Preventing Threats
Quiz
•
University
18 questions
Quiz on Misinformation and Bias
Quiz
•
10th Grade - University
20 questions
DI (EM24) - Diseño de Contenidos (T8)
Quiz
•
University - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
