
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
11 questions
1.4.(c) Data Structures (video)

Quiz
•
12th Grade
10 questions
Web Development Quiz

Quiz
•
Professional Development
15 questions
Linked List

Quiz
•
Professional Development
15 questions
Crash Course Computer Science #14 - Data Structures

Quiz
•
9th - 12th Grade
7 questions
Binary Search Tree

Quiz
•
University
10 questions
Data structures

Quiz
•
University
15 questions
Stacks and Queues Quiz

Quiz
•
University
10 questions
DS Quiz1

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
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade