Data Structure - II BCA B - 21.7.25

Data Structure - II BCA B - 21.7.25

University

15 Qs

quiz-placeholder

Similar activities

Fundamentals of Data Structures-Test 1-Unit-1

Fundamentals of Data Structures-Test 1-Unit-1

University

20 Qs

Stack & Quiz

Stack & Quiz

University

20 Qs

Data Structure#1

Data Structure#1

University

10 Qs

BCSC0006 - Quiz 4 - Linked List & Stacks

BCSC0006 - Quiz 4 - Linked List & Stacks

University

10 Qs

Data Structure

Data Structure

University

14 Qs

Stack??

Stack??

University

15 Qs

DATSRUC Week 6

DATSRUC Week 6

10th Grade - University

15 Qs

Stacks

Stacks

University

20 Qs

Data Structure - II BCA B - 21.7.25

Data Structure - II BCA B - 21.7.25

Assessment

Quiz

Computers

University

Hard

Created by

GINAVANEE A

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

  1. The elements in an array are stored in:

  • Random memory locations

  • Contiguous memory locations

  • Linked manner

  • None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void solve() {

stack<int> s;

s.push(10);

s.push(20);

s.push(30);

for(int i = 1; i <= 3; i++)

{ cout << s.top() << “ “;

s.pop();

}

}

10,20,30

30

10

30,20,10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a linear data structure?


Array

AVL Tree

Binary Tree

Graphs

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a pop() operation is called on an empty queue, what is the condition called?

Overflow

Underflow

Syntax Error

Garbage Value

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. Which of the following is correct about stack and queue?

  • Stack is LIFO, Queue is FIFO

  • Both are FIFO

  • Both are LIFO

  • Both are random access structures

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. What is the postfix form of: (A + B * C) / D ?

  • A + B C * / D

  • A B C + * D /

  • A B * C + D /

  • A B C * + D /

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. In postfix expression evaluation, what happens when an operator is read?

  • Push onto stack

  • Discard it

  • Pop two operands from stack, apply operator, push result

  • Push operands only

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?