Search Header Logo

final_quiz_2023

Authored by K.vinay kumar

Computers

University

Used 1+ times

final_quiz_2023
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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–

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?