Linked Lists

Linked Lists

University

10 Qs

quiz-placeholder

Similar activities

QUIZ 1 DS1E

QUIZ 1 DS1E

University

10 Qs

DS UNIT-2 TEST-2

DS UNIT-2 TEST-2

University

13 Qs

Programación (Estructuras, acceso a miembro y mem. dinámica)

Programación (Estructuras, acceso a miembro y mem. dinámica)

University

10 Qs

Linked List (Chapter 2)

Linked List (Chapter 2)

University

15 Qs

Linked List

Linked List

University

14 Qs

CLLANDDLL

CLLANDDLL

University

10 Qs

Data structures

Data structures

University

12 Qs

DS Quiz1

DS Quiz1

University

10 Qs

Linked Lists

Linked Lists

Assessment

Quiz

Computers

University

Medium

Created by

RAVIKANTH K

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

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

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity to count the number of elements in the linked list?

O(1)

O(n)

O(logn)

O(n2)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

void fun1(struct node* head) {

if(head == NULL) return;

fun1(head->next);

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

}

Prints all nodes of linked lists

Prints all nodes of linked list in reverse order

Prints alternate nodes of Linked List

Prints alternate nodes in reverse order

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A linear collection of data elements where the linear node is given by means of pointer is called?

linked list

node list

primitive list

None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is an application of linked lists?

To implement file systems

For separate chaining in hash-tables

To implement non-binary trees

All of the mentioned

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Insertion of an element at the middle of a linked list requires the modification of how many pointers?

2

1

3

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Insertion of an element at the front of a linked list requires the modification of how many pointers?

2

1

3

4

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?