Robert Bosch Arrays, Linked Lists, Trees, Graphs Quiz 2

Question 1

Time: 00:00:00
In the worst case, number of comparisons are required to search for a specific element in a singly linked list of length n are

Logn

Logn

n^2

n^2

n

n

n/2

n/2

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

Please login to submit your explanation

Question 2

Time: 00:00:00
Which of the following operations depends on the length of the linked list if you are given pointers to the start and last nodes of a singly linked list?

Eliminate the first element.

Eliminate the first element.

Add a fresh element as the initial element.

Add a fresh element as the initial element.

Remove the list's final element.

Remove the list's final element.

Extend the list by one more element.

Extend the list by one more element.

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

Please login to submit your explanation

Question 3

Time: 00:00:00
Which of these is not a linked list application.

Random Access of elements

Random Access of elements

To implement file systems

To implement file systems

For separate chaining in hash-tables

For separate chaining in hash-tables

To implement non-binary trees

To implement non-binary trees

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

Please login to submit your explanation

Question 4

Time: 00:00:00
Assume that every set is a linked list with members in any order.
Which of the following procedures will be the slowest:

membership, and cardinality

membership, and cardinality

union only

union only

intersection, membership

intersection, membership

membership, cardinality

membership, cardinality

union, intersection

union, intersection

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

Please login to submit your explanation

Question 5

Time: 00:00:00
Which of the following operations depends on how long the linked list is if you are given pointers to its initial and last nodes

Delete the first element

Delete the first element

Insert a new element as a first element

Insert a new element as a first element

Delete the last element of the list

Delete the last element of the list

Add a new element at the end of the list

Add a new element at the end of the list

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

Please login to submit your explanation

Question 6

Time: 00:00:00
Let P be a singly linked list. Let Q be the pointer to an intermediate node x in the list. What is the worst-case time complexity of the best known algorithm to delete the node Q from the list

O(1)

O(1)

O(n)

O(n)

O(logn)

O(logn)

O(n^2)

O(n^2)

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

Please login to submit your explanation

Question 7

Time: 00:00:00
Which of the following is true about circular linked list.

All of the components are sequentially linked together.

All of the components are sequentially linked together.

There is neither a start nor a finish.

There is neither a start nor a finish.

The components are organised in a hierarchy.

The components are organised in a hierarchy.

Traversal within the list in both directions is allowed.

Traversal within the list in both directions is allowed.

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

Please login to submit your explanation

Question 8

Time: 00:00:00
In which directions, traversal can be performed in circular linked list.

In forward directions

In forward directions

In reverse direction

In reverse direction

In both direction

In both direction

None of these

None of these

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

Please login to submit your explanation

Question 9

Time: 00:00:00
The number of pointers affected for an insertion operation in doubly linked list will be

2

2

4

4

None of these

None of these

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

Please login to submit your explanation

Question 10

Time: 00:00:00
In which of the variant of the linked list, none of the nodes have a NULL pointer.

Singly Linked list

Singly Linked list

Doubly Linked list

Doubly Linked list

Circular Linked list

Circular Linked list

None

None

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

Please login to submit your explanation

["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%

Get over 200+ Courses under One Subscription

mute

Don’t settle Learn from the Best with PrepInsta Prime Subscription

Learn from Top 1%

One Subscription, For Everything

The new cool way of learning and upskilling -

Limitless Learning

One Subscription access everything

Job Assistance

Get Access to PrepInsta Prime

Top Faculty

from FAANG/IITs/TOP MNC's

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.

Comments