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?

[a] String reversal

[a] String reversal

[b] Recursion

[b] Recursion

[c] Backtracking

[c] Backtracking

[d] Asynchronous data transfer

[d] 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/0

Accuracy

0%

Comments