Question 1

Time: 00:00:00
Which of the following correctly declares an array?

 

(A) int prepinsta[20];

(A) int prepinsta[20];

(B) int prepinsta;

(B) int prepinsta;

(C) prepinsta{20};

(C) prepinsta{20};

(D) array prepinsta[20];

(D) array prepinsta[20];

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 highly uses the concept of an array?

Binary Search tree

Binary Search tree

Caching

Caching

Spatial locality

Spatial locality

Scheduling of Processes

Scheduling of Processes

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

Please login to submit your explanation

Question 3

Time: 00:00:00
Which one of the following is not the application on the stack data structure?

String reversal

String reversal

Recursion

Recursion

Backtracking

Backtracking

Asynchronous data transfer

Asynchronous data transfer

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 the infix expression?

A+B*C

A+B*C

+A*BC

+A*BC

ABC+*

ABC+*

None of the above

None of the above

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

Please login to submit your explanation

Question 5

Time: 00:00:00
If the elements '1', '2', '3' and '4' are added in a stack, so what would be the order for the removal?

1234

1234

2134

2134

4321

4321

None of the above

None of the above

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

Please login to submit your explanation

Question 6

Time: 00:00:00
What is the outcome of the prefix expression +, -, *, 3, 2, /, 8, 4, 1?

12

12

11

11

5

5

4

4

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

Please login to submit your explanation

Question 7

Time: 00:00:00
What is another name for the circular queue among the following options?

 

Square buffer

Square buffer

Rectangle buffer

Rectangle buffer

Ring buffer

Ring buffer

None of the above

None of the above

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

Please login to submit your explanation

Question 8

Time: 00:00:00
If the elements '1', '2', '3' and '4' are inserted in a queue, what would be the order for the removal?

1234

1234

4321

4321

3241

3241

None of the above

None of the above

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

Please login to submit your explanation

Question 9

Time: 00:00:00
Which one of the following is not the application of the Queue data structure?

Resource shared between various systems

Resource shared between various systems

Data is transferred asynchronously

Data is transferred asynchronously

Load balancing

Load balancing

Balancing of symbols

Balancing of symbols

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

Please login to submit your explanation

Question 10

Time: 00:00:00
What would be the output after performing the following operations in a Deque?

  • Insertfront(10);



  • Insertfront(20);



  • Insertrear(30);



  • Insertrear(40);



  • Deletefront();



  • Insertfront(50);



  • Deleterear();

  • Display();

10, 20, 30

10, 20, 30

50, 10, 30

50, 10, 30

40, 20, 30

40, 20, 30

None of the above

None of the above

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