Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

30 Qs

quiz-placeholder

Similar activities

Computer Pretest1(Arduino Grade8_t1)

Computer Pretest1(Arduino Grade8_t1)

3rd Grade - University

25 Qs

IoT Quiz - 1

IoT Quiz - 1

University - Professional Development

25 Qs

data mining

data mining

University

30 Qs

CCC14 Chapter 4 - Spreadsheet

CCC14 Chapter 4 - Spreadsheet

University

25 Qs

Information assurance and security

Information assurance and security

University

25 Qs

GDSC FET Jain University Study Jam 106

GDSC FET Jain University Study Jam 106

University

25 Qs

UTS Jaringan Nirkabel

UTS Jaringan Nirkabel

University

25 Qs

Script_programming_test

Script_programming_test

University

25 Qs

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Comprehensive Viva

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The worst case complexity of quick sort is ..............

O(n)

O(log n)

O(n2 )

O(n log n)

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the output of following function for start pointing to first node of following linked list?

1->2->3->4->5->6

void fun(struct node* start)

{ If (start == NULL) return;

printf ("%d ", start->data);

if (start->next != NULL )

fun(start->next->next);

printf ("%d ", start->data); }

1 4 6 6 4 1

1 3 5 1 3 5

1 2 3 5

1 3 5 5 3 1

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The prefix form of A-B/ (C * D ⋀ E) is?

-/*⋀ACBDE

-ABCD*⋀DE

-A/B*C⋀DE

-A/BC*⋀DE

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is a sequence container?

stack

dequeue

queue

set

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Minimum number of queues needed to implement the priority queue is ...........

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What can be said about the array representation of a circular queue when it contains only one element?

FRONT = REAR + 1

FRONT = REAR - 1

FRONT = REAR = NULL

None of these

Answer explanation

FRONT=REAR

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

+ A* - BCD is a prefix expression. If A, B, C, D have value 5,4,2,3 respectively the expression evaluates to

13

7

11

15

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?