
DataStructures
Quiz
•
Other
•
Professional Development
•
Practice Problem
•
Hard
Mohanapriya P
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
1. Which of the following is not the application of stack?
1. Which of the following is not the application of stack?
a) Data Transfer between two asynchronous process
b) Compiler Syntax Analyzer
c) Tracking of local variables at run time
d) A parentheses balancing program
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
2. What is a data structure?
a) A programming language
b) A collection of algorithms
c) A way to store and organize data
d) A type of computer hardware
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
3. Which of the following statement(s) about stack data structure is/are NOT correct?
3. Which of the following statement(s) about stack data structure is/are NOT correct?
a) Top of the Stack always contain the new node
b) Stack is the FIFO data structure
c) Null link is present in the last node at the bottom of the stack
d) Linked List are used for implementing Stacks
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
4. Which of the following is not the type of queue?
4. Which of the following is not the type of queue?
a) Priority queue
b) Circular queue
c) Single ended queue
d) Ordinary queue
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5.What will be the output?
import java.util.*;
class Main
{
public static void main(String args[])
{
String str="Technical";
Stack<Character> s=new Stack<>();
for(int i=0;i<str.length();i++)
{
char c=str.charAt(i);
s.push(c);
}
s.pop();
s.peek();
s.pop();
System.out.println(s);
}
}
[T, e, c, h, n, i, c]
[T, e, c, h, n, i, c, a]
[T, e, c, h, n, i]
[T, e, c, h, n, i, c, a, l]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. What will be the output?
6. What will be the output?
public class Main
{
public static void main(String args[])
{
int []arr = {1,2,3,4,5};
System.out.println(arr[4]);
System.out.println(arr[5]);
}
}
a)
4
5
b) ArrayIndexOutOfBoundsException
5
c) ArrayIndexOutOfBoundsException
d)
5
ArrayIndexOutOfBoundsException
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
8. Which of the real world scenarios would you associate with a stack data structure?
8. Which of the real world scenarios would you associate with a stack data structure?
a) offer services based on the priority of the customer
b) piling up of the chairs one after the other
c) people standing a line to be serviced at a counter
d) tatkal ticket booking in IRCTC
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
12 questions
TRAZABILIDAD CoC Global GAP
Quiz
•
Professional Development
10 questions
Suku Huaulu_Pekan Nusantara
Quiz
•
7th Grade - Professio...
13 questions
Cuisine française
Quiz
•
Professional Development
11 questions
OSH - Module 1
Quiz
•
Professional Development
15 questions
World Water Day 2024
Quiz
•
Professional Development
10 questions
CMPS QUIZ
Quiz
•
Professional Development
10 questions
Tabligh Akbar 2023
Quiz
•
Professional Development
10 questions
Casos empresariales de Motivación
Quiz
•
Professional Development
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
Discover more resources for Other
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
