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

Start

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

Start

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

Start

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

Start

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

Start

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

Start

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

Start

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

Start

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

Start

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

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/10

Accuracy

0%

Get Prepinsta Prime

Get all 200+ courses offered by Prepinsta

Never Miss an OffCampus Update

Get OffCampus Updates on Social Media from PrepInsta

Follow us on our Media Handles, we post out OffCampus drives on our Instagram, Telegram, Discord, Whatsdapp etc.

Get Hiring Updates
Amazon,Google,Delottie & 30+companies are hiring ! Get hiring Updates right in your inbox from PrepInsta

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.

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.

Get PrepInsta Prime Subscription

Get access to all the courses that PrepInsta offers, check the out below -

Companies

TCS, Cognizant, Delloite, Infosys, Wipro, CoCubes, KPMG, Amazone, ZS Associates, Accenture, Congnizant & other 50+ companies

Programming

Data Structures, Top 500 Codes, C, C++, Java Python & other 10+ subjects

Skills

Full Stack Web Development, Data Science, Machine Learning, AWS Cloud, & other 10+ skills and 20+ projects

Comments