final_quiz_2023

final_quiz_2023

University

8 Qs

quiz-placeholder

Similar activities

BCSC0006 - Quiz 4 - Linked List & Stacks

BCSC0006 - Quiz 4 - Linked List & Stacks

University

10 Qs

DS UNIT-2 TEST-2

DS UNIT-2 TEST-2

University

13 Qs

KofiNketiaAckaahGyasi_CSCI2380_03Pre2

KofiNketiaAckaahGyasi_CSCI2380_03Pre2

University

10 Qs

C++ linked lists

C++ linked lists

University

9 Qs

Kuis Susulan ASD

Kuis Susulan ASD

University

10 Qs

UNIT 3

UNIT 3

University

10 Qs

Data Structures

Data Structures

University

12 Qs

Graph Traversal Algorithms Quiz

Graph Traversal Algorithms Quiz

12th Grade - University

13 Qs

final_quiz_2023

final_quiz_2023

Assessment

Quiz

Computers

University

Hard

Created by

K.vinay kumar

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be the solution to the given prefix notation?

14

15

12

18

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To implement a stack using queue(with only enqueue and dequeue operations), how many queues will you need?

1

2

4

3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you calculate the pointer difference in a memory efficient double linked list?

head xor tail

pointer to previous node xor pointer to next node

pointer to previous node – pointer to next node

pointer to next node – pointer to previous node

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the worst case time complexity of inserting a node in a doubly linked list?

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst case time complexity of inserting a node in a doubly linked list?

O(nlogn)

O(logn)

O(n)

O(1)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a binary search tree, which of the following traversals would print the numbers in the ascending order?

Level-order traversal

Pre-order traversal

In-order traversal

Post-order traversal

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a circular queue, how do you increment the rear end of the queue?

rear++

(rear+1) % CAPACITY

(rear % CAPACITY)+1

rear–

8.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the postfix expression for the corresponding infix expression?

a+b*c+(d*e)

abc*+de*++

abc+*de*+

a+bc*de+*

abc*+de*+