Home / Study library / Application Development - 2 / End Term · Sep 2024 Application Development - 2 · End Term · Sep 2024 · AN
Application Development - 2 · End Term · Sep 2024 AN
← Course papers · Start practice / exam
This page contains the reliably extracted subset, not the complete original paper.
Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.
0 / 34 published solutions
Q273 Q274 Q276 Q277 Q278 Q279 Q280 Q281 Q282 Q283 Q284 Q285 Q286 Q287 Q288 Q289 Q290 Q291 Q292 Q293 Q294 Q295 Q296 Q297 Q298 Q299 Q300 Q301 Q302 Q303 Q304 Q305 Q306 Q307
Question 273 MCQ · 2.0 marks A published solution is not available for this question yet.
Report a correction for Q273
Question 274 NAT · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q274
Question 276 MCQ · 3.0 marks A. secure=False and samesite='Strict'
B. secure=True and samesite='None'
C. secure=True and samesite='Strict'
D. secure=False and samesite='Lax'
A published solution is not available for this question yet.
Report a correction for Q276
Question 277 MCQ · 3.0 marks Which of the following is **true** regarding long polling?
A. Long polling opens multiple connections between the client and the server,
and the server continuously sends updates to the client in real-time.
B. Long polling allows the client to make a single request to the server, where the
server holds the connection open until new data is available and then sends the response.
C. Long polling involves the client repeatedly sending requests at fixed intervals
to the server to check for updates, regardless of whether new data is available.
D. Long polling uses WebSockets to maintain a persistent, bidirectional
connection between the client and the server.
A published solution is not available for this question yet.
Report a correction for Q277
Question 278 MCQ · 3.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q278
Question 279 MCQ · 3.0 marks
What will be the output on the console?
A published solution is not available for this question yet.
Report a correction for Q279
Question 280 MCQ · 3.0 marks A. Begin, Start, 5, End, Finish
B. Begin, Start, Finish, 5, End
C. Begin, Finish, Start, 5, End
D. Begin, Finish, Start, End, 5
A published solution is not available for this question yet.
Report a correction for Q280
Question 281 MCQ · 3.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q281
Question 282 MCQ · 3.0 marks A. The paragraph with the text “This paragraph is hidden” will be displayed.
B. The paragraph with the text “This paragraph is visible” will be displayed.
C. Both paragraphs will be displayed because of the v-if and v-else bindings.
D. No change will happen, since v-if and v-else do not update the DOM.
A published solution is not available for this question yet.
Report a correction for Q282
Question 283 MCQ · 3.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q283
Question 284 MCQ · 3.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q284
Question 285 MCQ · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q285
Question 286 MCQ · 3.0 marks A. The new value will be stored in session storage, and the “userName” data
property will be updated.
B. The new value will be stored in session storage, but the “userName” data
property will be reset to an empty string on page refresh.
C. The “userName” data property will be reset to an empty string, and the
session storage value will be ignored on refresh.
D. The “userName” data property will not be updated in session storage because
session storage doesn't persist across refreshes.
A published solution is not available for this question yet.
Report a correction for Q286
Question 287 MCQ · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q287
Question 288 MCQ · 2.0 marks Which of the following statements is FALSE?
A. Cache-Control: no-store prevents caching
B. Data stored in sessionStorage remains available even after the browser is
closed and reopened.
C. ETag helps validate cache freshness
D. localStorage has larger storage limit than cookies
A published solution is not available for this question yet.
Report a correction for Q288
Question 289 MCQ · 2.0 marks Which of the following statements is false when using the “async” and “await” keywords in
JavaScript?
A. The “await” keyword can only be used inside an async function.
B. The async functions run synchronously, but their await statements execute
asynchronously.
C. The “await” keyword pauses the execution of the surrounding async function
until the promise resolves.
D. The async functions always return a promise, even if the return value is not a
promise.
A published solution is not available for this question yet.
Report a correction for Q289
Question 290 MCQ · 2.0 marks A. B. C. D. E. A published solution is not available for this question yet.
Report a correction for Q290
Question 291 MCQ · 2.0 marks You have a Celery task send_email that needs to run every 10 minutes. How can you schedule it?
A. Using @app.task_periodic to run the task every 10 minutes.
B. Using @app.on_periodic to schedule a periodic task.
C. Using Celery Beat to schedule periodic tasks.
D. Celery doesn't support scheduling tasks at fixed intervals; you need to use an
external scheduler.
A published solution is not available for this question yet.
Report a correction for Q291
Question 292 MCQ · 4.5 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q292
Question 293 MCQ · 4.5 marks A. The increment mutation will be called immediately after the dispatch.
B. The incrementAsync action will be executed synchronously, and increment will
be committed before the promise resolves.
C. The state will be updated after the asynchronous operation completes.
D. The action will be skipped since mutations cannot be called inside actions.
A published solution is not available for this question yet.
Report a correction for Q293
Question 294 MCQ · 4.5 marks A. The watcher will be triggered and log "User object changed: { name: 'Bob',
age: 30 }".
B. The watcher will not be triggered because “name” is a nested property of
“user” object.
C. The watcher will be triggered, but it will only log the new “name” value, i.e.,
“Dev”, and not the entire user object.
D. The watcher will throw an error because deep watching is not supported on
nested objects.
A published solution is not available for this question yet.
Report a correction for Q294
Question 295 MCQ · 4.5 marks A published solution is not available for this question yet.
Report a correction for Q295
Question 296 MCQ · 4.5 marks B. Invalid format, Email exists, Required
D. Validating..., Required
A published solution is not available for this question yet.
Report a correction for Q296
Question 297 MCQ · 4.5 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q297
Question 298 MCQ · 4.5 marks A. The task will immediately execute and print the result 'Task completed'.
B. The task will execute asynchronously, and 'Task completed' will be printed
after a 10-second delay.
C. The task will execute synchronously, blocking the main thread for 10 seconds.
A published solution is not available for this question yet.
Report a correction for Q298
Question 299 MCQ · 4.5 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q299
Question 300 MSQ · 2.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q300
Question 301 MSQ · 2.0 marks Which of the following statements are **true** about Lighthouse?
A. Lighthouse measures various performance metrics, including Time to
Interactive and Speed Index.
B. Lighthouse generates a single score for UI design only.
C. It can emulate network throttling and device types during performance
evaluation.
D. Lighthouse focuses exclusively on performance and ignores accessibility.
A published solution is not available for this question yet.
Report a correction for Q301
Question 302 MSQ · 2.0 marks Which of the following statement(s) is/are correct regarding the behavior of local storage in Vue.js
applications?
A. The local storage data persists even after the browser is closed and reopened.
B. The local storage data is automatically cleared every session.
C. The local storage can only store strings, and storing objects requires manual
serialization and de-serialization.
D. Vue's reactivity system automatically updates the local storage when bound to
a Vue data property.
A published solution is not available for this question yet.
Report a correction for Q302
Question 303 MSQ · 2.0 marks A. The class, namely “classB” will always be applied to the div element.
B. The classes, namely “classA” and “classB” will always be applied to the div
element.
C. The class, namely “classA” will only be applied to the div element, if the
variable “isClassA” evaluates to true.
D. The class, namely “classB” will only be applied to the div element, if no variable
with name “isClassA” exists.
A published solution is not available for this question yet.
Report a correction for Q303
Question 304 MSQ · 3.0 marks Which of the following statements correctly describe the use of asynchronous messaging systems
and frameworks?
A. Celery allows web servers to offload long-running tasks to worker processes,
decoupling task execution from user requests.
B. Push queues are used for real-time operations, while pull queues are better
suited for batch processing.
C. Server-Sent Events (SSE) provide a persistent connection between server and
client, enabling bi-directional communication.
D. Redis is a high-performance in-memory database that supports Pub/Sub.
A published solution is not available for this question yet.
Report a correction for Q304
Question 305 MSQ · 3.0 marks Which of the following statement(s) is/are true about Webhooks?
A. A Webhook is a method for a server to send real-time data to another server
as an HTTP POST request.
B. Webhooks are typically used for sending periodic updates at regular intervals.
C. A client must continuously poll a Webhook URL to receive data.
D. Webhooks are usually used in event-driven architectures, where an event
triggers an HTTP POST request to a specified endpoint.
A published solution is not available for this question yet.
Report a correction for Q305
Question 306 MSQ · 3.0 marks Which of the following statement(s) is/are true regarding Server-Sent Events (SSE) and
WebSockets?
A. SSE is a two-way communication protocol, while WebSockets are
unidirectional.
B. WebSockets are more suited for scenarios requiring bi-directional
communication.
C. SSE is based on HTTP and can only be used for server-to-client communication,
while WebSockets are based on TCP and support both directions.
D. SSE is an extension of WebSockets, providing enhanced support for server-to-
client communication.
A published solution is not available for this question yet.
Report a correction for Q306
Question 307 MSQ · 3.0 marks Which of the following is/are typical use case(s) for Celery tasks?
A. Processing time-consuming or resource-intensive background jobs
asynchronously.
B. Directly handling incoming HTTP requests in web servers.
C. Scheduling periodic tasks like sending emails or cleaning up the database.
D. Serving real-time notifications over WebSockets.
**MLT**
**Section Id :** 64065375508
**Section Number :** 11
**Section type :** Online
**Mandatory or Optional :** Mandatory
**Number of Questions :** 17
**Number of Questions to be attempted :** 17
**Section Marks :** 50
**Display Number Panel :** Yes
**Section Negative Marks :** 0
**Group All Questions :** No
**Enable Mark as Answered Mark for Review and**
No
**Clear Response :**
**Section Maximum Duration :** 0
**Section Minimum Duration :** 0
**Section Time In :** Minutes
**Maximum Instruction Time :** 0
A published solution is not available for this question yet.
Report a correction for Q307