Search Header Logo

Quiz2-DSA-FCPC

Authored by ALVIN CERTEZA

Others

Professional Development

Used 6+ times

Quiz2-DSA-FCPC
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A web browser maintains a history of visited pages. When you press the “Back” button, the browser retrieves the last page you visited. Which data structure best models this behavior?

Queue

Stack

Linked List

Tree

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A printer receives multiple print requests from users. It processes the first request received before the rest. Which structure is most suitable?

Stack

Queue

Heap

Tree

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A recursive function for factorial(5) calls itself until n == 1. How many total calls are made?

A. 4

B. 5

C. 6

D. Infinite

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In a customer service line, the first customer is served first. This behavior follows:

LIFO

FIFO

FILO

LILO

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A recursive function without a base case will result in:

Logical error

Stack overflow

Queue overflow

Compilation error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

During function execution, the system stores return addresses and local variables in a:

Queue

Stack

Heap

Array

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A hospital triage system prioritizes patients based on severity instead of arrival order. Which structure is not suitable?

Priority Queue

Simple Queue

Heap

Stack

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?