Data Structures Quiz

Data Structures Quiz

University

10 Qs

quiz-placeholder

Similar activities

Computational Thinking in Python[Quiz 3]

Computational Thinking in Python[Quiz 3]

University

15 Qs

JRB2 Quiz 4

JRB2 Quiz 4

University

10 Qs

TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)

TOOLS FOR AD & TECHNOLOGY DEVELOPMENT (W4-W6)

University

10 Qs

Understanding Email, Contacts and Calendaring

Understanding Email, Contacts and Calendaring

University

10 Qs

Tes Awal Modul 5 CC

Tes Awal Modul 5 CC

University

10 Qs

BB

BB

University

10 Qs

Tree and Planar Graph

Tree and Planar Graph

University

10 Qs

CodeMonkey for B.Ed IT

CodeMonkey for B.Ed IT

University

10 Qs

Data Structures Quiz

Data Structures Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Jeevitha P

Used 160+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 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

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the following function do for a given Linked List with first node as head?


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

3.

MULTIPLE CHOICE QUESTION

45 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

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following operations is performed more efficiently by doubly linked list than by singly linked list?

Deleting a node whose location in given

Searching of an unsorted list for a given item

Inverting a node after the node with given location

Traversing a list to process each node

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In linked list each node contain minimum of two fields. One field is data field to store the data second field is?

Pointer to character

Pointer to integer

Pointer to node

Node

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

A variant of linked list in which last node of the list points to the first node of the list is?

Singly linked list

Doubly linked list

Circular linked list

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What kind of linked list is best to answer question like “What is the item at position n?”

Singly linked list

Doubly linked list

Circular linked list

Array implementation of linked list

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?