Data Structure - II BCA B - 21.7.25

Data Structure - II BCA B - 21.7.25

University

15 Qs

quiz-placeholder

Similar activities

Antrean dan Tumpukan (BK) XA

Antrean dan Tumpukan (BK) XA

10th Grade - University

10 Qs

DS-U2-QUIZ2

DS-U2-QUIZ2

University

12 Qs

Data Structures

Data Structures

University

12 Qs

Pretest Tumpukan dan Antrean

Pretest Tumpukan dan Antrean

10th Grade - University

10 Qs

Quiz 2 - Stack

Quiz 2 - Stack

University

12 Qs

special

special

University

10 Qs

Basics of Data Structure

Basics of Data Structure

University

20 Qs

Data Structure Revision Continuous

Data Structure Revision Continuous

University

10 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?