Programming

Programming

Professional Development

15 Qs

quiz-placeholder

Similar activities

Data Structure Quiz

Data Structure Quiz

University - Professional Development

10 Qs

DATASTRUCTURE

DATASTRUCTURE

Professional Development

11 Qs

BSc IT-3 DS Unit-1 Quiz dt-10-08-22 by DrARD

BSc IT-3 DS Unit-1 Quiz dt-10-08-22 by DrARD

University - Professional Development

10 Qs

Accounting Coach (3/8/2024)

Accounting Coach (3/8/2024)

Professional Development

11 Qs

Data Structures and Algorithms Quiz2

Data Structures and Algorithms Quiz2

Professional Development

15 Qs

Fun with ML

Fun with ML

10th Grade - Professional Development

20 Qs

DSA 2

DSA 2

Professional Development

13 Qs

Structure Data Review

Structure Data Review

University - Professional Development

10 Qs

Programming

Programming

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Sayani Maity

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a linear data structure?

Array

AVL trees

Binary Tree

Graphs

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Process of removing an element from stack is called__?

Create

Push

Evaluation

Pop

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which one of the following statements is TRUE about the time complexity of algorithms that solve the above problem in O(1) space?

It is not possible to reverse a singly linked list in O(1) space.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the difference between Queue and Stack?

a) Stack is LIFO; Queue is FIFO

b) Queue is LIFO; Stack is FIFO

c) Stack and Queue is FIFO

d) Stack and Queue is LIFO

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct method used to insert and delete items from the queue?

a) push and pop

b) enqueue and dequeue

c) enqueue and peek

d) add and remove

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In a stack, if a user tries to remove an element from an empty

stack it is called __?

Overflow

Empty collection

Underflow

Garbage Collection

Answer explanation

Underflow occurs when the user performs a pop operation on an empty stack. Overflow occurs when the stack is full and the user performs a push operation. Garbage Collection is used to recover the memory occupied by objects that are no longer used

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Where does a new element be inserted in linked list implementation of a queue?

a) Head of list

b) Tail of list

c) At the centre of list

d) All the old entries are pushed and then the new element is inserted

Answer explanation

To maintain FIFO, newer elements are inserted to the tail of the list.

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?