TCS Ninja Linked List Quiz-2

Question 1

Time: 00:00:00
 Which of the following code is for creating a new node?

ptr=(Node*)malloc(sizeOf(node));

ptr=(Node*)malloc(sizeOf(node));

ptr=(Node*)malloc(node);

ptr=(Node*)malloc(node);

ptr=(Node*)malloc(sizeOf(node*));

ptr=(Node*)malloc(sizeOf(node*));

ptr=(Node)malloc(sizeOf(node));

ptr=(Node)malloc(sizeOf(node));

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 2

Time: 00:00:00
 What type of memory is referred for the linked list.

Static memory allocation

Static memory allocation

Local memory

Local memory

Dynamic memory allocation

Dynamic memory allocation

All type of memory can assigned

All type of memory can assigned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 3

Time: 00:00:00
 The linked list used to implement

Stack

Stack

Queue

Queue

Graph

Graph

All of these.

All of these.

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 4

Time: 00:00:00
What are the applications that uses the linked list?

Queue

Queue

Stack

Stack

Both a and b

Both a and b

None of them

None of them

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 5

Time: 00:00:00
What is the biggest advantage of the linked list.

There is no need to specify fixed size of lt

There is no need to specify fixed size of lt

Add only certain element.

Add only certain element.

Add only specify data

Add only specify data

None of them

None of them

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 6

Time: 00:00:00
In linked list implementation what type of data a node is carried?

Data

Data

Link

Link

both a and b

both a and b

None of them

None of them

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 7

Time: 00:00:00
 In which linked list the last node of linked list is pointed to the first node of the linked list.

Singly Linked List

Singly Linked List

Doubly linked list

Doubly linked list

Circular linked list

Circular linked list

All of these

All of these

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 8

Time: 00:00:00
 Linked List data structure usage offer considerable saving in

Computational time

Computational time

None

None

Computational time and space utilization

Computational time and space utilization

Space utilization

Space utilization

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 9

Time: 00:00:00
 Suppose the linked list is used to implement the stack then which for the following node is considered as a top.

Any node

Any node

Middle node

Middle node

Last node

Last node

First node

First node

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

Question 10

Time: 00:00:00
The link field of the linked list carries

Zero value

Zero value

Link of next node

Link of next node

Link of the first node.

Link of the first node.

None

None

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Start

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Completed

0/0

Accuracy

0%