Data Structures Quiz

Data Structures Quiz

Professional Development

40 Qs

quiz-placeholder

Similar activities

TEST 3 2023 P56

TEST 3 2023 P56

Professional Development

39 Qs

hard-english

hard-english

1st Grade - Professional Development

35 Qs

Working with Docker Registries, Images and Containers

Working with Docker Registries, Images and Containers

Professional Development

44 Qs

Cam11 - Test 2 - L3 R2

Cam11 - Test 2 - L3 R2

Professional Development

42 Qs

Chủ đề Hợp đồng, Tiếp thị, Bảo hiểm (10/04/2024)

Chủ đề Hợp đồng, Tiếp thị, Bảo hiểm (10/04/2024)

Professional Development

40 Qs

Test Unit 8 Level 4

Test Unit 8 Level 4

Professional Development

35 Qs

Test 5 ETS 2020

Test 5 ETS 2020

Professional Development

38 Qs

E12 - BỘ 2020 - ĐỀ 1

E12 - BỘ 2020 - ĐỀ 1

Professional Development

40 Qs

Data Structures Quiz

Data Structures Quiz

Assessment

Quiz

English

Professional Development

Medium

Created by

Chitharanjan K

Used 2+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the time complexity of the push operation in a stack implemented using an array?

O(1)

O(n

O(log n)

O(n^2)

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A stack is a data structure that follows the principle of:

LIFO (Last In First Out)

FIFO (First In First Out)

Priority based

Random access

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following operations is performed at the front of the queue?

Enqueue

Dequeue

Peek

All of the above

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following operations is not supported by a deque?



Insertion at the front

Insertion at the rear

Deletion from the front

Random access of elements

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In a circular queue of size 5, if the front is at index 2 and the rear is at index 4, how many elements are there in the queue?

2

3

4

5

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider a queue with elements A, B, C, D (A is at the front). After two dequeue operations and one
enqueue operation of E, what will be the queue?

C, D, E

E, C, D

D,E

E,D

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The primary advantage of postfix expressions over infix expressions is:




Easier to evaluate

Less memory usage

Easier to parse

All of the above

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?