CYBERSYNAPSE

CYBERSYNAPSE

University

15 Qs

quiz-placeholder

Similar activities

C Programming Day-10

C Programming Day-10

University

10 Qs

Internal Lab Quiz-1 CSECS

Internal Lab Quiz-1 CSECS

University

10 Qs

Unit 1: Introduction to microcontrollers

Unit 1: Introduction to microcontrollers

University

12 Qs

LEVELLING FOR CIVIL ENGINEERING

LEVELLING FOR CIVIL ENGINEERING

University

20 Qs

CRYPTIC HEIST ROUND-1 FOR TEAM MEMBER-1

CRYPTIC HEIST ROUND-1 FOR TEAM MEMBER-1

University

10 Qs

Air Tech - Airframe and Undercarriage

Air Tech - Airframe and Undercarriage

University

11 Qs

Online Webinar by Krunal Talsaniya

Online Webinar by Krunal Talsaniya

University

20 Qs

SIM- Module 1

SIM- Module 1

University

10 Qs

CYBERSYNAPSE

CYBERSYNAPSE

Assessment

Quiz

Engineering

University

Practice Problem

Hard

Created by

SANTHOSH G

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following sorting algorithms has the best worst-case time complexity?

Merge Sort

Quick Sort

Bubble Sort

Selection Sort

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which algorithm is used to find the shortest path in an unweighted graph?

Bellman-Ford Algorithm

Kruskal’s Algorithm

Dijkstra’s Algorithm

Breadth-First Search

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which data structure is best suited for implementing a priority queue?

Stack

Queue

Heap

Graph

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In hashing, which technique is used to reduce collisions by mapping two keys to different slots?

Open Addressing

Chaining

Dynamic Rehashing

Dynamic Rehashing

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the time complexity of following code?

int a = 0, i = N;

while (i > 0) {

a += i; i /= 2;

}

O(sqrt(N) )

O(log(N))

O(N)

O(N/2)

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The given array is arr = {1, 2, 4, 3}. Bubble sort is used to sort the array elements. How many iterations will be done to sort the array?

4

2

1

0

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider a binary tree with n nodes, where each node can have at most two children. The height of the tree is defined as the maximum number of edges between the root node and any leaf node. Which of the following statements is true regarding the height h of this binary tree?

The height of the tree is always equal to n-1

The height of the tree can be greater than or equal to n-1

The height of the tree is always equal to log₂(n)

The height of the tree can be greater than or equal to log₂(n)

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?