DSA Day 4

DSA Day 4

University

7 Qs

quiz-placeholder

Similar activities

DS Quiz1

DS Quiz1

University

10 Qs

DATA STRUCTURE QUIZ 1- INTRO TO DATA STRUCTURES

DATA STRUCTURE QUIZ 1- INTRO TO DATA STRUCTURES

University

10 Qs

Basic Computer Quiz

Basic Computer Quiz

University

11 Qs

AdvancedProgramming_intro

AdvancedProgramming_intro

University

10 Qs

SELECTION SORT QUIZ

SELECTION SORT QUIZ

University

11 Qs

DSA - Intro

DSA - Intro

University

10 Qs

Data Structure

Data Structure

University

10 Qs

Data Structures Quiz

Data Structures Quiz

University

10 Qs

DSA Day 4

DSA Day 4

Assessment

Quiz

Computers

University

Hard

Created by

Skill Chaze

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is not an application of a linked list?

To implement file systems

To implement file systems

To implement non-binary trees

Random Access of elements

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a disadvantage to the usage of array?

Fixed size

There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size

Insertion based on position

Accessing elements at specified positions

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of inserting at the end in dynamic arrays?

O(1)

O(n)

O(logn)

Either O(1) or O(n)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following points is/are true about Linked List data structure when it is compared with array?

Arrays have better cache locality that can make them better in terms of performance.

It is easy to insert and delete elements in Linked List

Random access is not allowed in a typical implementation of Linked Lists

The size of array has to be pre-decided, linked lists can change their size any time.

All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following sorting algorithms can be used to sort a random linked list with minimum time complexity?

Insertion Sort

Quick Sort

Heap Sort

Merge Sort

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of following function in which start is pointing to the first node of the following linked list 1->2->3->4->5->6 ?

1 4 6 6 4 1

1 3 5 1 3 5

1 2 3 5

1 3 5 5 3 1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variant of the linked list in which none of the node contains NULL pointer is?

Singly linked list

Doubly linked list

Circular linked list

None