Data Structures: Stack,Queue and Binary Tree

Data Structures: Stack,Queue and Binary Tree

University

•

25 Qs

quiz-placeholder

Similar activities

Ujian Posttest PTK Materi-1 (701)

Ujian Posttest PTK Materi-1 (701)

University

•

20 Qs

ELP 548- Week 5

ELP 548- Week 5

University

•

20 Qs

ARRAYS

ARRAYS

University

•

20 Qs

Foundations  Vital Signs

Foundations Vital Signs

University

•

20 Qs

EBM2193 HUMAN RESOURCE MANAGEMENT LU1&LU2

EBM2193 HUMAN RESOURCE MANAGEMENT LU1&LU2

University

•

20 Qs

QUIZ 4 : TOPIC 8 [PROCESS COSTING]

QUIZ 4 : TOPIC 8 [PROCESS COSTING]

1st Grade - University

•

20 Qs

Deaf Awareness/BSL

Deaf Awareness/BSL

5th Grade - Professional Development

•

20 Qs

Examen de Operaciones de Interdicción Marítima

Examen de Operaciones de Interdicción Marítima

University

•

20 Qs

Data Structures: Stack,Queue and Binary Tree

Data Structures: Stack,Queue and Binary Tree

Assessment

Quiz

•

Professional Development

•

University

•

Practice Problem

•

Hard

Created by

Shaik Imam

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a Stack data structure?

A linear data structure with FIFO (First-In-First-Out) access

A linear data structure with LIFO (Last-In-First-Out) access

A hierarchical data structure with parent-child relationships

A data structure that represents a collection of elements with key-value pairs

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the push and pop operations in a stack implemented using an array?

O(1) for both push and pop

O(1) for push and O(n) for pop

O(n) for push and O(1) for pop

O(n) for both push and pop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure can be used to implement a stack efficiently?

Array

Linked List

Tree

Hash Table

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a Queue data structure?

A linear data structure with FIFO (First-In-First-Out) access

A linear data structure with LIFO (Last-In-First-Out) access

A hierarchical data structure with parent-child relationships

A data structure that represents a collection of elements with key-value pairs

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the enqueue and dequeue operations in a queue implemented using an array?

O(1) for both enqueue and dequeue

O(1) for enqueue and O(n) for dequeue

O(n) for enqueue and O(1) for dequeue

O(n) for both enqueue and dequeue

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a Binary Tree data structure?

A linear data structure with FIFO (First-In-First-Out) access

A hierarchical data structure with parent-child relationships and at most two children per node

A linear data structure with LIFO (Last-In-First-Out) access

A data structure that represents a collection of elements with key-value pairs

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum number of nodes at level 'L' in a binary tree?

2L

L2

L / 2

2 * L

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?