
Data structure(Stack) MCQ

Quiz
•
Computers
•
University
•
Hard
HEMALATHA 221701020
FREE Resource
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
enter the output for the code
LETSFINDC
declare a stack of characters
while(there are more characters in the word)
{
read a ch
push the ch on the stack}
while(stack in not empty)
{
pop a ch off the stack
print on screen
}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following sequence of operations is performed on stack: PUSH (10),PUSH (20),POP,PUSH (10),PUSH (20),POP,POP,POP,PUSH (20),POP The sequence of the value popped out is
10,20,20,10,20
20,20,10,20,10
20,10,20,10,20
20,20,10,10,20
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
processes of inserting an element in stack is called?
push
pop
delete
none of these
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following sequence of operations on an empty stack.
push(54); push(52); pop(); push(55); push(62); s = pop();
Consider the following sequence of operations on an empty queue.
enqueue(21); enqueue(24); dequeue(); enqueue(28); enqueue(32); q = dequeue();
The value of s + q is ______
76
96
64
86
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
the process of accessing data stored in a serial access memory is similar to manipulating data on a
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The postfix expression for the infix expression A + B (C + D) / F + D E is
AB+CD+*F/D+E*
ABCD+*F/+DE*+
A*B+CD/F*DE++
A+*BCD/F*DE++
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Entries in a stack are “ordered”. What is the meaning of this statement?
A collection of stacks is sortable
Stack entries may be compared with the ‘<‘ operation
The entries are stored in a linked list
There is a Sequential entry that is one by one
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Kuis Informatika KelasX

Quiz
•
University
15 questions
DS ASSIGNMENT1

Quiz
•
University
8 questions
stack

Quiz
•
University
15 questions
Struktur Data dan Algoritma

Quiz
•
University
10 questions
Stacks Review

Quiz
•
University
15 questions
DATA STRUCTURES QUIZ

Quiz
•
University
10 questions
Quiz 1 - AK2 Section

Quiz
•
University
15 questions
Qûîz

Quiz
•
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