MauryaHub PYQ Practice

Application Development - 2 · End Term · May 2025 · AN

Application Development - 2 · End Term · May 2025 AN

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 32 published solutions

Question 99 MCQ · 2.0 marks

In a message queue system, if the consumer is slower than the producer, what is likely to occur first?
A.
Messages will be dropped
B.
Messages will accumulate in the queue
C.
The consumer will speed up automatically
D.
The producer will block until the consumer is ready

A published solution is not available for this question yet.

Report a correction for Q99

Question 100 MCQ · 2.0 marks

What does "reactivity" mean in the context of frontend frameworks like Vue.js?
A.
The component will reload when data changes
B.
All function calls become asynchronous
C.
It disables direct access to state
D.
The DOM updates automatically when the underlying reactive data changes

A published solution is not available for this question yet.

Report a correction for Q100

Question 101 MCQ · 2.0 marks

In Flask, what is the main benefit of using the @cache.cached() decorator?
A.
It stores output in session storage
B.
It enables token authentication
C.
It sends compressed response headers
D.
It skips route execution for repeated inputs

A published solution is not available for this question yet.

Report a correction for Q101

Question 102 MCQ · 2.0 marks

What is the primary purpose of CORS (Cross-Origin Resource Sharing)?
A.
To encrypt data between client and server
B.
To compress HTTP responses
C.
To authenticate users across applications
D.
To control which domains can access resources

A published solution is not available for this question yet.

Report a correction for Q102

Question 103 MSQ · 2.0 marks

Which of the following practices help protect against supply chain attacks?
A.
Storing keys only in environment variables
B.
Version pinning
C.
Using only packages with over 1000 stars on GitHub
D.
Reduce Dependencies

A published solution is not available for this question yet.

Report a correction for Q103

Question 104 MSQ · 2.0 marks

Which of the following factors directly affect the speed and performance of a web page load?
A.
The number of CSS selectors in the stylesheet
B.
Use of semantic HTML tags
C.
Number of HTTP requests made
D.
File size of resources (like images, JS)

A published solution is not available for this question yet.

Report a correction for Q104

Question 105 MSQ · 2.0 marks

Which of the following is/are the potential benefits of using a message broker?
A.
A message broker makes the network scalable for adding more servers to the network.
B.
A message broker allows two servers in a network to directly communicate with each other, without an intermediary.
C.
A message broker is not suited in case of traffic spikes, as messages are retained in the queue until processed.
D.
A message broker can be used for batch processing of messages.

A published solution is not available for this question yet.

Report a correction for Q105

Question 106 MSQ · 2.0 marks

Which statements about webhooks are correct?
A.
They enable real-time data delivery
B.
They use HTTP POST requests typically
C.
They're designed for server-to-server communication
D.
They require polling from the client

A published solution is not available for this question yet.

Report a correction for Q106

Question 107 MCQ · 3.0 marks

A popular e-commerce platform needs to notify multiple third-party services (inventory management, email marketing, analytics) whenever a customer places an order. The development team is considering different approaches to handle these notifications. Scenario: When an order is placed, the system needs to: ● Update inventory levels in an external warehouse system ● Send a welcome email through a third-party email service ● Log analytics data to an external tracking service ● Update customer loyalty points in a CRM system Which of the following statements about using webhooks for this scenario is MOST accurate?
A.
Webhooks are not suitable for this use case because they require the e- commerce platform to continuously poll each third-party service to check if they're ready to receive data, which would create unnecessary network overhead.
B.
Webhooks should be avoided in this scenario because they operate synchronously, meaning the customer's order placement would be delayed until all third-party services have successfully processed their notifications.
C.
Webhooks provide an ideal solution as they allow the e-commerce platform to push real-time notifications to all subscribed third-party services immediately when an order is placed, eliminating the need for these services to repeatedly poll for updates.
D.
Webhooks are primarily designed for read-only operations and cannot handle complex data payloads like order information, making them unsuitable for e-commerce transaction notifications.

A published solution is not available for this question yet.

Report a correction for Q107

Question 108 MCQ · 3.0 marks

What is the main advantage of using caching in a Flask-based web application?
A.
It eliminates the need for client-side rendering
B.
It reduces server load by reusing responses for repeated requests
C.
It encrypts data transmission between server and client
D.
It avoids the need for database interactions completely

A published solution is not available for this question yet.

Report a correction for Q108

Question 109 MCQ · 3.0 marks

Source diagram or notation
A.
R P Q S
B.
P R S Q
C.
R S P Q
D.
R P S Q

A published solution is not available for this question yet.

Report a correction for Q109

Question 110 MCQ · 3.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q110

Question 111 MCQ · 3.0 marks

Consider the following javascript program.
Source diagram or notation
What will be the output of the above program on the browser’s console?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q111

Question 112 MCQ · 3.0 marks

Source diagram or notation
A.
App 1 only shows data
B.
Both show “Hello from App 2”
C.
Both show “Hello from App 1”
D.
Each renders its own message independently

A published solution is not available for this question yet.

Report a correction for Q112

Question 113 MCQ · 3.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q113

Question 114 MSQ · 3.0 marks

Which factors directly impact the Lighthouse "Performance" score?
A.
First Contentful Paint (FCP)
B.
Time to Interactive (TTI)
C.
Layout Shift
D.
HTTPS usage

A published solution is not available for this question yet.

Report a correction for Q114

Question 115 MSQ · 3.0 marks

Which statements are true about handling background tasks in Flask with Celery?
A.
Using time.sleep() blocks the event loop and is recommended for async tasks
B.
Celery allows long-running tasks to be executed asynchronously
C.
Polling is a strategy to check task status periodically
D.
Flask + Celery + Redis is a common stack for async task management

A published solution is not available for this question yet.

Report a correction for Q115

Question 116 MSQ · 3.0 marks

Which of the following are true about mutations and actions in Vuex?
A.
Actions can be asynchronous
B.
Only actions can call APIs through fetch call
C.
Mutations should modify state directly
D.
Mutations can be asynchronous

A published solution is not available for this question yet.

Report a correction for Q116

Question 117 MSQ · 3.0 marks

Source diagram or notation
A.
The class "active" will only be applied to the div element if the variable "isActive" evaluates to true.
B.
The class "disabled" will be applied to the div element when the variable "isEnabled" evaluates to false.
C.
The class "text-bold" will always be applied to the div element regardless of the "hasBoldText" variable value.
D.
All three classes ("active", "text-bold", "disabled") will always be applied to the div element.
E.
If "isEnabled" is undefined, the "disabled" class will not be applied to the div element.
F.
The class "text-bold" will only be applied if the variable "hasBoldText" exists and evaluates to a truthy value.

A published solution is not available for this question yet.

Report a correction for Q117

Question 118 MCQ · 3.0 marks

Source diagram or notation
Source diagram or notation
Scenario 1. The component is loaded. 2. User clicks "Mark Complete" for the task named **Build Project.** 3. User clicks "Show Completed" button again.
After step 2 (Mark Completed is clicked), what tasks are shown?
A.
Learn Vue
B.
Learn Vue, Build Project, Test App
C.
Test App only
D.
None

A published solution is not available for this question yet.

Report a correction for Q118

Question 119 MCQ · 3.0 marks

Source diagram or notation
Source diagram or notation
Scenario 1. The component is loaded. 2. User clicks "Mark Complete" for the task named **Build Project.** 3. User clicks "Show Completed" button again.
After step 3 (Mark Complete is clicked on Build Project), how many completed tasks are reported in the UI?
A.
1
B.
2
C.
3
D.
0

A published solution is not available for this question yet.

Report a correction for Q119

Question 120 MSQ · 3.0 marks

Source diagram or notation
Source diagram or notation
Scenario 1. The component is loaded. 2. User clicks "Mark Complete" for the task named **Build Project.** 3. User clicks "Show Completed" button again.
Which of the following are true about this component’s behavior?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q120

Question 121 MCQ · 4.5 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q121

Question 122 MCQ · 4.5 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q122

Question 123 MCQ · 4.5 marks

Source diagram or notation
A.
UserProfile
B.
User
C.
NotFound
D.
UserSettings

A published solution is not available for this question yet.

Report a correction for Q123

Question 124 MCQ · 4.5 marks

Source diagram or notation
A.
Request succeeds
B.
CORS error occurs
C.
404 error
D.
The server crashes

A published solution is not available for this question yet.

Report a correction for Q124

Question 125 MCQ · 4.5 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q125

Question 126 MSQ · 4.5 marks

Source diagram or notation
Assuming that the root Vue instance has already been created and mounted to div app. Which of the following statements are CORRECT?
A.
The header slot will display "Welcome John" when loading is true
B.
The content slot will render 3 list items with "item1 (3 total)", "item2 (3 total)", "item3 (3 total)"
C.
The default slot will display "No data available" from the fallback prop
D.
If we change isLoading: true in data-provider, the header will show "Loading..."
E.
Changing v-slot:default to just v-slot in parent-component would break the functionality

A published solution is not available for this question yet.

Report a correction for Q126

Question 127 MCQ · 4.5 marks

Answer the given Subquestions:
Consider the following Vue Router configuration in a Vue 2 application:
Source diagram or notation
In a Vue component, you have these navigation methods:
Source diagram or notation
What URLs will be generated when the user clicks each navigation element?
A.
User button: /user, Product button: /product, Home link: /home
B.
User button: /user/123, Product button: /product/electronics/456, Home link: /
C.
User button: /UserProfile/123, Product button: /ProductDetail/electronics/456, Home link: /Home
D.
User button: /user?id=123, Product button: /product?category=electronics&id=456, Home link: /

A published solution is not available for this question yet.

Report a correction for Q127

Question 128 MSQ · 4.5 marks

Answer the given Subquestions:
Using the same Vue Router configuration from the previous question, Select ALL correct statements about these navigation methods.
A.
The "View User" link will navigate to /user/789 and match the UserProfile route
B.
The navigateOne() method will create URL /user/555?tab=settings
C.
The $router.replace() method adds a new entry to the browser history
D.
The $router.go(-1) method navigates to the previous page in browser history

A published solution is not available for this question yet.

Report a correction for Q128

Question 129 MCQ · 3.0 marks

Prashant and Nikita are creating a quiz question paper collaboratively. They are each working on different sections — and complete their tasks in parallel. Meanwhile, Mayur is enjoying a single- player game that finishes when the game loop ends. To compare productivity: ● If Prashant and Nikita (together) finish faster than Mayur, the winner is "Team". ● If Mayur finishes faster, he wins. ● If both take the same time, Mayur wins by default. You are simulating this scenario in the browser.Prashant and Nikita are represented using parallel Promises. Mayur is represented using a single Promise. The frontend must calculate who finishes first using asynchronous logic, and display the result.
Source diagram or notation
Based on the above data, answer the given subquestions.
If Prashant and Nikita finish together in 3 seconds (since Promise.all waits for both), and Mayur finishes in 4 seconds, who wins?
A.
Mayur
B.
Team
C.
Nikita
D.
Race condition prevents output

A published solution is not available for this question yet.

Report a correction for Q129

Question 130 MCQ · 3.0 marks

Prashant and Nikita are creating a quiz question paper collaboratively. They are each working on different sections — and complete their tasks in parallel. Meanwhile, Mayur is enjoying a single- player game that finishes when the game loop ends. To compare productivity: ● If Prashant and Nikita (together) finish faster than Mayur, the winner is "Team". ● If Mayur finishes faster, he wins. ● If both take the same time, Mayur wins by default. You are simulating this scenario in the browser.Prashant and Nikita are represented using parallel Promises. Mayur is represented using a single Promise. The frontend must calculate who finishes first using asynchronous logic, and display the result.
Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
The Team takes 5 seconds in total. Mayur takes 2 seconds. According to the logic of app2.js, who is the winner?
A.
Mayur
B.
Team
C.
Nikita
D.
Error due to async logic       **Sw Testing** **Section Id :** 64065399827 **Section Number :** 6 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 20 **Number of Questions to be attempted :** 20 **Section Marks :** 100 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No

A published solution is not available for this question yet.

Report a correction for Q130