DataStructures

DataStructures

Professional Development

10 Qs

quiz-placeholder

Similar activities

Drainage level 3

Drainage level 3

Professional Development

15 Qs

Python Dictionary

Python Dictionary

Professional Development

14 Qs

Skateboarding

Skateboarding

KG - Professional Development

12 Qs

TECHNICAL MCQ

TECHNICAL MCQ

Professional Development

15 Qs

Service Order Enhancements and the new Vacation Process

Service Order Enhancements and the new Vacation Process

Professional Development

10 Qs

POP SMOKE!!!!

POP SMOKE!!!!

KG - Professional Development

14 Qs

Sanitation System Quiz PT1

Sanitation System Quiz PT1

Professional Development

10 Qs

Data Structures

Data Structures

University - Professional Development

5 Qs

DataStructures

DataStructures

Assessment

Quiz

Other

Professional Development

Hard

Created by

Mohanapriya P

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?