Question 1

Time: 00:00:00
In a Doubly Linked list how many nodes have atleast 1 node before and after it?

A. N+1

A. N+1

B. N

B. N

C. N-2

C. N-2

D. N-1

D. N-1

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

Please login to submit your explanation

Question 2

Time: 00:00:00
Raman is 7 years old and he wants to color a book. The book happens to be about DSA and contains a Complete binary tree with 7 levels, he wants to use different color for every tree nodes. How many colors will he need?

A. 28

A. 28

B. 31

B. 31

C. 63

C. 63

D. 127

D. 127

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

Please login to submit your explanation

Question 3

Time: 00:00:00
He again gets a book with x number of non-leaf nodes. How many total number of nodes will be there for hum color

A. 2x

A. 2x

B. x + 1

B. x + 1

C. Log x

C. Log x

D. 2x + 1

D. 2x + 1

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

Please login to submit your explanation

Question 4

Time: 00:00:00
Which of the following is true about bipartite Graph?

A. no cycle of odd length

A. no cycle of odd length

B. n^log n

B. n^log n

C. n edges

C. n edges

D. a cycle of odd length

D. a cycle of odd length

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

Please login to submit your explanation

Question 5

Time: 00:00:00
What is Dynamic Allocation in Array?

A. Allocation that takes place at compile time

A. Allocation that takes place at compile time

B.Allocation that take place as bipartite graph

B.Allocation that take place as bipartite graph

C. memory allocation that takes place during run time rendering the resizing of an Array

C. memory allocation that takes place during run time rendering the resizing of an Array

D. All of these

D. All of these

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

Please login to submit your explanation

Question 6

Time: 00:00:00
Raman is 7 years old and he wants to colour a book. The book happens to be about DSA and contains 8 vertices in an undirected graph with 7 levels, he wants to use a different colour for every node. How many colors will he need?

A. 63

A. 63

B. 64

B. 64

C. 28

C. 28

D. 32

D. 32

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

Please login to submit your explanation

Question 7

Time: 00:00:00
The height of a BST is given as h. Consider the height of the tree as the no. of edges in the longest path from root to the leaf. The maximum no. of nodes possible in the tree is?

A. 2h-1 -1

A. 2h-1 -1

B. 2h+1 -1

B. 2h+1 -1

C. 2h +1

C. 2h +1

D. 2h-1 +1

D. 2h-1 +1

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

Please login to submit your explanation

Question 8

Time: 00:00:00
Which type of traversal of binary search tree outputs the value in sorted order?

A. Post-order

A. Post-order

B. Pre-order

B. Pre-order

C. In-order

C. In-order

D. None

D. None

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

Please login to submit your explanation

Question 9

Time: 00:00:00
The run time for traversing all the nodes of a binary search tree with n nodes and printing them in an order is a) b) c) d)

A. O(n)

A. O(n)

B. O(√n)

B. O(√n)

C. O(log(n))

C. O(log(n))

D. O(nlg(n))

D. O(nlg(n))

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

Please login to submit your explanation

Question 10

Time: 00:00:00
A binary search tree is generated by inserting in order the following integers: 50, 15, 62, 5, 20, 58, 91, 3, 8, 37, 60, 24 The number of the node in the left sub-tree and right sub-tree of the root, respectively, is

A. (3, 8)

A. (3, 8)

B. (8, 3)

B. (8, 3)

C. (7, 4)

C. (7, 4)

D. (4, 7)

D. (4, 7)

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! \r\n","Keep trying! \r\n","Not bad! \r\n","Good work! \r\n","Perfect! \r\n"]

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 Assurance

Get Access to PrepInsta Placement Cell

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