WeCP DS Quiz – 1

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

Start

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

Start

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

Start

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

Start

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

Start

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

Start

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

Start

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

Start

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

Start

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

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%

Prime

Prime Mock

Complete Mock Subscription for WeCP

For WeCP
Get Prime Mock

Prime Video

Prime Video

Complete Video Course for WeCP

For WeCP
Prime Video
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