Search Header Logo

Data Structure - II BCA B - 21.7.25

Authored by GINAVANEE A

Computers

University

15 Questions

Used 1+ times

Data Structure - II BCA B - 21.7.25
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?