
DS Quiz-1

Quiz
•
Computers
•
KG - University
•
Medium
SUBHASH AGRAWAL
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following pseudocode that uses a stack
declare a stack of characters
while ( there are more characters in the word to read )
{
read a character
push the character on the stack
}
while ( the stack is not empty )
{
pop a character off the stack
write the character to the screen
}
geeksquizgeeksquiz
ziuqskeeg
geeksquiz
ziuqskeegziuqskeeg
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following correctly declares an array?
(A) int geeks[20];
(B) int geeks;
(C) geeks{20};
(D) array geeks[20];
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Process of inserting an element in stack is called ____________
a) Create
b) Push
c) Evaluation
d) Pop
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Process of removing an element from stack is called __________
a) Create
b) Push
c) Evaluation
d) Pop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a stack, if a user tries to remove an element from empty stack it is called _________
a) Underflow
b) Empty collection
c) Overflow
d) Garbage Collection
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Pushing an element into stack already having five elements and stack size of 5, then stack becomes
a) Overflow
b) Crash
c) Underflow
d) User flow
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In linked list each node contain minimum of two fields. One field is data field to store the data second field is?
a) Pointer to character
b) Pointer to integer
c) Pointer to node
d) Node
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
DS UNIT-2 TEST-3

Quiz
•
University
12 questions
Quiziz C++

Quiz
•
University
15 questions
Stack??

Quiz
•
University
10 questions
Q3 ADT ArrayList

Quiz
•
1st Grade
10 questions
2022年第二届苏州软件比武大赛—热身题

Quiz
•
2nd Grade
14 questions
C++ Обобщение

Quiz
•
10th Grade
13 questions
DS UNIT-2 TEST-2

Quiz
•
University
10 questions
“Классная” работа с динамической памятью

Quiz
•
9th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade