BCA_DS

BCA_DS

University

20 Qs

quiz-placeholder

Similar activities

Algo Quiz

Algo Quiz

University

16 Qs

Quiz on Misinformation and Bias

Quiz on Misinformation and Bias

10th Grade - University

18 Qs

DI (EM24) - Diseño de Contenidos (T8)

DI (EM24) - Diseño de Contenidos (T8)

University - Professional Development

20 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

IT 101 - Quiz 3

IT 101 - Quiz 3

University

20 Qs

DWDM Unit1 Quiz

DWDM Unit1 Quiz

University

21 Qs

COA_QUIZ_UNIT I

COA_QUIZ_UNIT I

University

20 Qs

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

BCA_DS

BCA_DS

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

rangan chellam

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the primary characteristic of a stack in computer science?

It follows a First In, First Out (FIFO) order.
It can only store integers.
It allows random access to elements.
It follows a Last In, First Out (LIFO) order.

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In a stack, what happens to the last item added when an item is removed?

It remains in the stack until the stack is empty.
It is ignored by the stack.
It is moved to the bottom of the stack.
It becomes the first item to be removed.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following operations would you use to remove the top element from a stack?

Pop
Push
isEmpty
Peek

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which operation is used to add an element to the top of a stack?

Pop
Push
Size
Peek

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the Size operation do in a stack?

It returns the top element of the stack.
It checks if the stack is empty.
It returns the number of elements in the stack.
It removes the last element added.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How can a stack be compared to a real-world object?

Like a pile of clothes that can be sorted at any time.
Like a box of assorted items that can be accessed from any side.
Like a stack of plates where the top plate is the first to be taken.
Like a line of people waiting for a bus.

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In a stack implemented using an array, what variable indicates the index of the top element?

base
top
index
count

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?

Discover more resources for Computers