Search Header Logo

Linked Lists

Authored by RAVIKANTH K

Computers

University

Used 2+ times

Linked Lists
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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