Home / Study library / Application Development - 2 / End Term · May 2026 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
Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 Q19 Q20 Q21 Q22 Q23 Q24 Q25 Q26 Q27 Q28 Q29 Q30 Q31 Q32 Q33
Question 2 MCQ · 2.0 marks A JWT token contains three parts:
. 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
, 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
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
instead of inside
.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
and JavaScript
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;
Suppose the application is running on
, and the user visits the URL:
What will be rendered by the browser?
[NOTE:
is divided in two images, consider them as one file content.]
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:
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:
The
getter is used in a Vue component as shown below:
Now suppose the **Vuex getter**
**is removed**, while the temperature state
continues to be updated through Vuex mutations. Which of the following implementations
correctly recreates
in the component so that it **automatically reacts whenever**
**the Vuex**
**changes**?
A. B. C. D. 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**.
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**.
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
The developer wants to view the app in the browser locally for development. They run the
following command:
bash:
Which of the following best describes what happens and what the developer should have run
instead?
A. launches the app on
; the developer should have run npm
start to compile for production instead.
B. and
do the same thing — both launch the
app at
C. is correct for local development;
is only
used for deploying to a server.
D. compiles and **bundles the app for production** into a
folder — it does not start a local server. The developer should have run
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:
What will be output on the browser’s console?
A. B. C. 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?
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?
A.
B.
C.
D. This code throws a
, 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:
What is the order of console output?
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:
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.
A. evaluates to
B. evaluates to
C. evaluates to
D. throws a
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:
A client first accesses
and then tries to access
. Which of the following
statements are correct?
A. 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
header while accessing
protected routes.
D. The token generated by
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
about its
output:
A. logs "objectValue"
B. logs "objectValue"
C. logs "nestedValue"
D. logs
E. logs "objectValue"
F. 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**:
Which of the following statements are correct? (Select all that apply)
A. The
decorator ensures that only requests with a valid JWT
can access
.
B. The
determines what value is stored in the "sub"
field of the JWT.
C. If
is removed,
will not be automatically
populated.
D. The
directly stores the entire user
object inside the JWT.
E. If no JWT is sent in the request,
will still execute but
will be None.
F. The
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:
**Note: Each sub question runs on its own, starting from the original 'user' object.**
Based on the above data, answer the given subquestions.
What will be logged in the console ?
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:
**Note: Each sub question runs on its own, starting from the original 'user' object.**
Based on the above data, answer the given subquestions.
What will be logged in the console ?
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:
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:
Based on the above data, answer the given subquestions.
Which of the following statements are correct?
A. pauses the execution of the
function until the Promise
resolves.
B. immediately returns the resolved string "Data Received".
C. functions cannot return a
.
D. Removing
would cause
to store a
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
is accessed three times in a row in the template without price or discount
changing in between, how many times does
get logged?
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
is changed twice in two separate updates **(100 to 120, then 120 to 150 on a later tick)**,
what is the value of
afterward?
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:
Called from a view/script:
Checked immediately, right after delay() — worker hasn't processed it yet:
Called separately, after waiting for the worker to finish the task:
What do the two print statements, **print(result)** and **print(type(result))** in the first code block
output?
A. B. C. D. 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:
Called from a view/script:
Checked immediately, right after delay() — worker hasn't processed it yet:
Called separately, after waiting for the worker to finish the task:
What do **print(check.status)** (checked immediately) and the later **print(check.get(timeout=5))**
(checked after the worker finishes) output?
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
navigate the browser to?
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
navigate the browser to?
B. /#/search?keyword=shoes&page=2
C. /#/search:keyword=shoes:page=2
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
component, what expression correctly reads the
value from the
URL after navigation?
A. this.$router.query.keyword
B. this.$route.query.keyword
D. this.$router.params.keyword
A published solution is not available for this question yet.
Report a correction for Q33