MauryaHub PYQ Practice

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

Application Development - 2 · End Term · May 2026 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 2 MCQ · 2.0 marks

A JWT token contains three parts:
Source diagram or notation
. Which of the following best explains the relationship between the header and the signature in JWT authentication?
A.
The header stores the encrypted password used to generate the signature.
B.
The signature only protects the payload section; changes to the header do not affect token validation.
C.
The signature is generated using the encoded header, encoded payload, and a secret key. If the header is modified, the signature verification fails.
D.
The header contains the final signature hash generated after token creation.

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 4.5 marks

A news platform wants to send a morning digest email to all subscribers every day at 7 AM. Sweta sets up the beat schedule, starts Redis and Celery Beat, and then claims: **"The Worker is optional** **here. Beat handles the scheduling and the execution of the task, so we do not need a** **separate Worker process."** Is Sweta's claim correct? Choose the best answer.
A.
**Yes.** For tasks defined in
Source diagram or notation
, Celery Beat manages both the schedule and the execution, so running the Worker is redundant.
B.
**No.** Celery Beat cannot trigger tasks that involve database queries or email sending. Those tasks must be triggered manually using
Source diagram or notation
from the Flask app.
C.
**No.** Celery Beat is only a scheduler. At 7 AM, it pushes a task message into the Redis broker and stops there. Without a running Celery Worker to pick up that message, the digest email is never actually sent.
D.
Yes, but only when the task is defined with
Source diagram or notation
instead of inside
Source diagram or notation
.In that case, Beat handles execution too.

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 4.5 marks

A startup is building a food delivery app. The customer-facing screen shows live order status updates: **"Order Placed → Preparing → Out for Delivery → Delivered".** Each stage is triggered by the restaurant or the delivery rider updating the status on their end. The customer's screen should reflect these changes in real time without refreshing the page. Two developers debate about the right technology: **Developer A says**: "Let's use Server-Sent Events. It's the right fit here." **Developer B says**: "No, we must use WebSockets. SSE won't work." Who is correct, and why?
A.
**Developer B is correct**. SSE cannot transmit JSON data, so structured order status objects cannot be pushed to the browser.
B.
**Developer B is correct**. SSE connections do not reconnect automatically when the network is briefly interrupted, making it unreliable for a live tracker.
C.
**Developer A is correct**, but only if WebSockets are set up as a mandatory fallback, since SSE requires HTTP/2 to function.
D.
**Developer A is correct**. The tracker only requires the server to push status updates to the customer, without the customer sending data back through the same connection. SSE is purpose-built for exactly this one-way server-to-client push scenario.

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 4.5 marks

Consider the following
Source diagram or notation
and JavaScript
Source diagram or notation
for a Vue application: File: index.html "app" Flights template: data() hi", connectedTo: [ connectedTo: [ > taipur”, connectedTo: [") Hyderabad"] }, » connectedTo: [ i“, “Indore", Raipur"] } created() { destination = this.$route.params.city.toLowerCase() ; ; i < this.routes.length; i++) { connections -routes[i].connectedTo; ( j 3 J < connections.length; j++) { f (connections[j].toLowerCase() destination) { this.result = s.routes[i].city; eak;
Source diagram or notation
Suppose the application is running on
Source diagram or notation
, and the user visits the URL:
Source diagram or notation
What will be rendered by the browser? [NOTE:
Source diagram or notation
is divided in two images, consider them as one file content.]
A.
Delhi
B.
Indore
C.
Raipur
D.
Rewa

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 4.5 marks

In a Celery setup, we use two separate Redis databases:
Source diagram or notation
Which of the following best explains the conceptual difference between the broker and the backend?
A.
The backend is only needed when tasks involve sending emails; for tasks that only read from the database, only the broker is required.
B.
The broker and backend must always use different port numbers; using the same Redis port for both would cause a conflict.
C.
The broker distributes tasks evenly across multiple Celery workers, while the backend tracks which worker is currently processing which task.
D.
The broker stores task requests until a Celery worker picks and executes them, while the backend stores the task result after execution.

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 4.5 marks

Consider the following Vuex store:
Source diagram or notation
The
Source diagram or notation
getter is used in a Vue component as shown below:
Source diagram or notation
Now suppose the **Vuex getter**
Source diagram or notation
**is removed**, while the temperature state continues to be updated through Vuex mutations. Which of the following implementations correctly recreates
Source diagram or notation
in the component so that it **automatically reacts whenever** **the Vuex**
Source diagram or notation
**changes**?
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 Q7

Question 8 MCQ · 3.0 marks

A team builds an internal warehouse dashboard where multiple managers, each on a different computer, need to receive live low-stock alerts from the server in real time. They decide to use Flask-SSE with Redis. Which of the following best explains Redis's role in a Flask-SSE setup?
A.
Redis is used by Flask-SSE to authenticate connected users before events can be streamed to the browser.
B.
Redis is optional in Flask-SSE and is only recommended when the application has a very large number of concurrent users.
C.
Redis is only needed when SSE events must be stored permanently and replayed after reconnection.
D.
Flask-SSE uses Redis as a shared event channel so published messages can be delivered to connected clients.

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MCQ · 3.0 marks

Match the testing concept in **Column I** with the most appropriate description in **Column II**.
Source diagram or notation
A.
1-C, 2-B, 3-A, 4-D
B.
1-B, 2-C, 3-D, 4-A
C.
1-A, 2-D, 3-B, 4-C
D.
1-C, 2-D, 3-A, 4-B

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MCQ · 3.0 marks

Match the performance metric in **Column I** with the most appropriate description in **Column II**.
Source diagram or notation
A.
1-C, 2-D, 3-B, 4-A
B.
1-B, 2-C, 3-A, 4-D
C.
1-C, 2-B, 3-D, 4-A
D.
1-A, 2-B, 3-D, 4-C

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MCQ · 3.0 marks

A developer has just created a new Vue 2 project using Vue CLI and the following package.json was generated. package.json
Source diagram or notation
The developer wants to view the app in the browser locally for development. They run the following command: bash:
Source diagram or notation
Which of the following best describes what happens and what the developer should have run instead?
A.Source diagram or notation
launches the app on
Source diagram or notation
; the developer should have run npm start to compile for production instead.
B.Source diagram or notation
and
Source diagram or notation
do the same thing — both launch the app at
Source diagram or notation
C.Source diagram or notation
is correct for local development;
Source diagram or notation
is only used for deploying to a server.
D.Source diagram or notation
compiles and **bundles the app for production** into a
Source diagram or notation
folder — it does not start a local server. The developer should have run
Source diagram or notation
instead.

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MCQ · 3.0 marks

Consider the following JavaScript code:
Source diagram or notation
What will be output on the browser’s console?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.
None of these.

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MCQ · 3.0 marks

What is logged to the console after running the following code?
Source diagram or notation
A.
10 30 [30, 40, 50] and 100 0
B.
10 30 [40, 50] and 100 200
C.
10 20 [30, 40, 50] and undefined 0
D.
10 30 [40, 50] and 100 0

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MCQ · 3.0 marks

What is logged to the console after running the following code?
Source diagram or notation
A.Source diagram or notation
Source diagram or notation
B.Source diagram or notation
Source diagram or notation
C.Source diagram or notation
Source diagram or notation
D.
This code throws a
Source diagram or notation
, because you cannot destructure profile into nested variables and also assign it to a plain variable profile in the same statement.

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 3.0 marks

Consider the following JavaScript code:
Source diagram or notation
What is the order of console output?
A.
1, 4, 3, 5, 2, 6
B.
1, 4, 3, 5, 6, 2
C.
1, 3, 4, 5, 2, 6
D.
1, 4, 2, 3, 5, 6

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 3.0 marks

Match each Vue directive with its correct description:
Source diagram or notation
A.
1–A, 2–D, 3–C, 4–B
B.
1–D, 2–B, 3–C, 4–A
C.
1–B, 2–D, 3–C, 4–A
D.
1–B, 2–C, 3–D, 4–A

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MSQ · 3.0 marks

Which of the following is/are the advantage(s) of client-side storage?
A.
Saving web generated documents for offline use.
B.
The data can be stored across devices.
C.
Storing personalized site preferences.
D.
IndexedDB API is a kind of client-side storage which can be used for audio/video files.

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MSQ · 3.0 marks

Which of the following are valid capabilities of Lighthouse while analyzing a website?
A.
Measuring performance metrics such as FCP, LCP and TBT
B.
Simulating slow networks and throttled conditions
C.
Automatically fixing accessibility and SEO issues in the source code
D.
Emulating mobile and desktop devices

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MSQ · 3.0 marks

Given the following code, select all the statements that are **TRUE** about its execution if the code is run in a browser environment.
Source diagram or notation
A.Source diagram or notation
evaluates to
Source diagram or notation
B.Source diagram or notation
evaluates to
Source diagram or notation
C.Source diagram or notation
evaluates to
Source diagram or notation
D.Source diagram or notation
throws a
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MSQ · 4.5 marks

Consider the following Flask JWT code:
Source diagram or notation
A client first accesses
Source diagram or notation
and then tries to access
Source diagram or notation
. Which of the following statements are correct?
A.Source diagram or notation
can only be accessed if a valid JWT token is sent with the request.
B.
If the JWT token is missing or invalid, Flask-JWT-Extended returns an unauthorized error.
C.
The JWT token is typically sent in the
Source diagram or notation
header while accessing protected routes.
D.
The token generated by
Source diagram or notation
is automatically stored by Flask and reused for future requests.

A published solution is not available for this question yet.

Report a correction for Q20

Question 21 MSQ · 4.5 marks

Given the following code running in the browser, select all the statements that are
Source diagram or notation
about its output:
Source diagram or notation
Source diagram or notation
A.Source diagram or notation
logs "objectValue"
B.Source diagram or notation
logs "objectValue"
C.Source diagram or notation
logs "nestedValue"
D.Source diagram or notation
logs
Source diagram or notation
E.Source diagram or notation
logs "objectValue"
F.Source diagram or notation
logs "objectValue"

A published solution is not available for this question yet.

Report a correction for Q21

Question 22 MSQ · 4.5 marks

Consider the following code using **flask_jwt_extended**:
Source diagram or notation
Which of the following statements are correct? (Select all that apply)
A.
The
Source diagram or notation
decorator ensures that only requests with a valid JWT can access
Source diagram or notation
.
B.
The
Source diagram or notation
determines what value is stored in the "sub" field of the JWT.
C.
If
Source diagram or notation
is removed,
Source diagram or notation
will not be automatically populated.
D.
The
Source diagram or notation
directly stores the entire user object inside the JWT.
E.
If no JWT is sent in the request,
Source diagram or notation
will still execute but
Source diagram or notation
will be None.
F.
The
Source diagram or notation
object is reconstructed using the identity extracted from the JWT.

A published solution is not available for this question yet.

Report a correction for Q22

Question 23 MCQ · 2.0 marks

Consider the following javascript code:
Source diagram or notation
**Note: Each sub question runs on its own, starting from the original 'user' object.** Based on the above data, answer the given subquestions.
Source diagram or notation
What will be logged in the console ?
A.
Rahul 2
B.
Amit 3
C.
Rahul 3
D.
Amit 2

A published solution is not available for this question yet.

Report a correction for Q23

Question 24 MCQ · 3.0 marks

Consider the following javascript code:
Source diagram or notation
**Note: Each sub question runs on its own, starting from the original 'user' object.** Based on the above data, answer the given subquestions.
Source diagram or notation
What will be logged in the console ?
A.
2 3
B.
3 3
C.
2 2
D.
3 2

A published solution is not available for this question yet.

Report a correction for Q24

Question 25 MCQ · 2.0 marks

Consider the following JavaScript code:
Source diagram or notation
Based on the above data, answer the given subquestions.
What will be the output order?
A.
Start End Data Received
B.
Data Received Start End
C.
Start Data Received End
D.
End Start Data Received

A published solution is not available for this question yet.

Report a correction for Q25

Question 26 MSQ · 3.0 marks

Consider the following JavaScript code:
Source diagram or notation
Based on the above data, answer the given subquestions.
Which of the following statements are correct?
A.Source diagram or notation
pauses the execution of the
Source diagram or notation
function until the Promise resolves.
B.Source diagram or notation
immediately returns the resolved string "Data Received".
C.Source diagram or notation
functions cannot return a
Source diagram or notation
.
D.
Removing
Source diagram or notation
would cause
Source diagram or notation
to store a
Source diagram or notation
object instead of the resolved value.

A published solution is not available for this question yet.

Report a correction for Q26

Question 27 MCQ · 2.0 marks

Read the following Vue 2 component code carefully (using the Options API via CDN) and answer the given
If
Source diagram or notation
is accessed three times in a row in the template without price or discount changing in between, how many times does
Source diagram or notation
get logged?
A.
0
B.
1
C.
2
D.
3

A published solution is not available for this question yet.

Report a correction for Q27

Question 28 MCQ · 3.0 marks

Read the following Vue 2 component code carefully (using the Options API via CDN) and answer the given
If
Source diagram or notation
is changed twice in two separate updates **(100 to 120, then 120 to 150 on a later tick)**, what is the value of
Source diagram or notation
afterward?
A.
0
B.
1
C.
2
D.
3

A published solution is not available for this question yet.

Report a correction for Q28

Question 29 MCQ · 2.0 marks

Read the following code carefully and answer the given subquestions. tasks.py:
Source diagram or notation
Called from a view/script:
Source diagram or notation
Checked immediately, right after delay() — worker hasn't processed it yet:
Source diagram or notation
Called separately, after waiting for the worker to finish the task:
Source diagram or notation
What do the two print statements, **print(result)** and **print(type(result))** in the first code block output?
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 Q29

Question 30 MCQ · 3.0 marks

Read the following code carefully and answer the given subquestions. tasks.py:
Source diagram or notation
Called from a view/script:
Source diagram or notation
Checked immediately, right after delay() — worker hasn't processed it yet:
Source diagram or notation
Called separately, after waiting for the worker to finish the task:
Source diagram or notation
What do **print(check.status)** (checked immediately) and the later **print(check.get(timeout=5))** (checked after the worker finishes) output?
A.
"PENDING" **and** 10
B.
"SUCCESS" **and** 10
C.
10 **and** "SUCCESS"
D.
"PENDING" **and** "SUCCESS"

A published solution is not available for this question yet.

Report a correction for Q30

Question 31 MCQ · 2.0 marks

Read the following router and component setup carefully and answer the given
What URL does
Source diagram or notation
navigate the browser to?
A.
/#/product/42
B.
/#/product?id=42
C.
/#/product/:id
D.
/#/42

A published solution is not available for this question yet.

Report a correction for Q31

Question 32 MCQ · 2.0 marks

Read the following router and component setup carefully and answer the given
What URL does
Source diagram or notation
navigate the browser to?
A.
/#/search/shoes/2
B.
/#/search?keyword=shoes&page=2
C.
/#/search:keyword=shoes:page=2
D.
/#/search

A published solution is not available for this question yet.

Report a correction for Q32

Question 33 MCQ · 2.0 marks

Read the following router and component setup carefully and answer the given
Inside
Source diagram or notation
component, what expression correctly reads the
Source diagram or notation
value from the URL after navigation?
A.
this.$router.query.keyword
B.
this.$route.query.keyword
C.
this.query.keyword
D.
this.$router.params.keyword

A published solution is not available for this question yet.

Report a correction for Q33