Data Structures - Training: Quiz 1

Data Structures - Training: Quiz 1

University

11 Qs

quiz-placeholder

Similar activities

Función CONTAR

Función CONTAR

KG - Professional Development

10 Qs

Python Quiz 1.4

Python Quiz 1.4

University

12 Qs

Redes Vlan

Redes Vlan

University

15 Qs

REDES

REDES

University

15 Qs

Computational Thinking in Python[Quiz 3]

Computational Thinking in Python[Quiz 3]

University

15 Qs

TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)

TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)

University

10 Qs

Teste 1 - Inteligência Artificial

Teste 1 - Inteligência Artificial

University

10 Qs

Data Structures - Training: Quiz 1

Data Structures - Training: Quiz 1

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

S Sampath Kumar

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which sorting algorithm can be used to sort a random linked list with minimum time complexity?

Insertion Sort

Quick Sort

Heap Sort

Merge Sort

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Suppose each set is represented as a linked list with elements in arbitrary order. Which operations among union, intersection, membership, cardinality will be the slowest? (GATE CS 2004)

union

membership

cardinality

union, intersection

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the optimal time complexity to count the number of nodes in a linked list?

O(n)

O(1)

O(log n)

O(n log n)

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following algorithms is not feasible to implement in a linked list?

Insertion Sort

Quick Sort

Heap Sort

Binary Search

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the time complexity to insert an element to the front of a LinkedList (head pointer given)?

O(n)

O(1)

O(log n)

O(n log n)

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the time complexity of a program to reverse a linked list?

O(n)

O(1)

O(log n)

O(n log n)

7.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following problems can be solved using 2 pointers on linked list?

Detecting cycle in a Linked List

Finding intersection of two linked lists

Finding middle of a linked lists

None of the above

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?

Discover more resources for Computers