uiz Space

May 2026 term · Modern Application Development II · BSCS2006

Modern Application Development II End Term: 13 September 2026, Set S2 (May 2026 term)

The IIT Madras BS Modern Application Development II (MAD 2) End Term paper sat on 13 Sept 2026, in the May 2026 term, set S2: 31 questions for 95.5 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
31
Marks
95.5
Duration
180 min
MCQ
24
MSQ
7

Updated

Official paper: Modern Application Development Ii 13 Sep 26 (Session 2) · No negative marking.

Question 1

+2 marksOne correct option
  1. A

    The header stores the encrypted password used to generate the signature.

  2. B

    The signature only protects the payload section; changes to the header do not affect token validation.

  3. C

    The signature is generated using the encoded header, encoded payload, and a secret key. If the header is modified, the signature verification fails.

  4. D

    The header contains the final signature hash generated after token creation.

Show answer

Correct answer

  • C

    The signature is generated using the encoded header, encoded payload, and a secret key. If the header is modified, the signature verification fails.

Question 2

+4.5 marksOne correct option

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.

  1. A
  2. B
  3. 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.

  4. D
Show answer

Correct answer

  • 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.

Question 3

+4.5 marksOne correct option

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?

  1. A

    Developer B is correct. SSE cannot transmit JSON data, so structured order status objects cannot be pushed to the browser.

  2. B

    Developer B is correct. SSE connections do not reconnect automatically when the network is briefly interrupted, making it unreliable for a live tracker.

  3. C

    Developer A is correct, but only if WebSockets are set up as a mandatory fallback, since SSE requires HTTP/2 to function.

  4. 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.

Show answer

Correct answer

  • 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.

Question 4

+4.5 marksOne correct option

File: app.js

  1. A

    Delhi

  2. B

    Indore

  3. C

    Raipur

  4. D

    Rewa

Show answer

Correct answer

  • D

    Rewa

Question 5

+4.5 marksOne correct option

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?

  1. A

    The backend is only needed when tasks involve sending emails; for tasks that only read from the database, only the broker is required.

  2. B

    The broker and backend must always use different port numbers; using the same Redis port for both would cause a conflict.

  3. C

    The broker distributes tasks evenly across multiple Celery workers, while the backend tracks which worker is currently processing which task.

  4. D

    The broker stores task requests until a Celery worker picks and executes them, while the backend stores the task result after execution.

Show answer

Correct answer

  • D

    The broker stores task requests until a Celery worker picks and executes them, while the backend stores the task result after execution.

Question 6

+3 marksOne correct option

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?

  1. A

    Redis is used by Flask-SSE to authenticate connected users before events can be streamed to the browser.

  2. B

    Redis is optional in Flask-SSE and is only recommended when the application has a very large number of concurrent users.

  3. C

    Redis is only needed when SSE events must be stored permanently and replayed after reconnection.

  4. D

    Flask-SSE uses Redis as a shared event channel so published messages can be delivered to connected clients.

Show answer

Correct answer

  • D

    Flask-SSE uses Redis as a shared event channel so published messages can be delivered to connected clients.

Question 7

+3 marksOne correct option

Match the testing concept in Column I with the most appropriate description in Column II.

  1. A

    1-C, 2-B, 3-A, 4-D

  2. B

    1-B, 2-C, 3-D, 4-A

  3. C

    1-A, 2-D, 3-B, 4-C

  4. D

    1-C, 2-D, 3-A, 4-B

Show answer

Correct answer

  • D

    1-C, 2-D, 3-A, 4-B

Question 8

+3 marksOne correct option

Match the performance metric in Column I with the most appropriate description in Column II.

  1. A

    1-C, 2-D, 3-B, 4-A

  2. B

    1-B, 2-C, 3-A, 4-D

  3. C

    1-C, 2-B, 3-D, 4-A

  4. D

    1-A, 2-B, 3-D, 4-C

Show answer

Correct answer

  • A

    1-C, 2-D, 3-B, 4-A

Question 9

+3 marksOne correct option

A developer has just created a new Vue 2 project using Vue CLI and the following package.json was generated.
package.json

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • D

Question 10

+3 marksOne correct option

Consider the following JavaScript code:

What will be output on the browser’s console?

  1. A

    (A figure from the original paper is missing from the source site.)

  2. B

    (A figure from the original paper is missing from the source site.)

  3. C

    (A figure from the original paper is missing from the source site.)

  4. D

    None of these.

Show answer

Correct answer

  • C

    (A figure from the original paper is missing from the source site.)

Question 11

+3 marksOne correct option

What is logged to the console after running the following code?

  1. A

    10 30 [30, 40, 50] and 100 0

  2. B

    10 30 [40, 50] and 100 200

  3. C

    10 20 [30, 40, 50] and undefined 0

  4. D

    10 30 [40, 50] and 100 0

Show answer

Correct answer

  • D

    10 30 [40, 50] and 100 0

Question 12

+3 marksOne correct option

What is logged to the console after running the following code?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 13

+3 marksOne correct option

Consider the following JavaScript code:

What is the order of console output?

  1. A

    1, 4, 3, 5, 2, 6

  2. B

    1, 4, 3, 5, 6, 2

  3. C

    1, 3, 4, 5, 2, 6

  4. D

    1, 4, 2, 3, 5, 6

Show answer

Correct answer

  • A

    1, 4, 3, 5, 2, 6

Question 14

+3 marksOne correct option

Match each Vue directive with its correct description:

  1. A

    1–A, 2–D, 3–C, 4–B

  2. B

    1–D, 2–B, 3–C, 4–A

  3. C

    1–B, 2–D, 3–C, 4–A

  4. D

    1–B, 2–C, 3–D, 4–A

Show answer

Correct answer

  • C

    1–B, 2–D, 3–C, 4–A

Question 15

+3 marksOne or more correct options

Which of the following is/are the advantage(s) of client-side storage?

Select all that apply.

  1. A

    Saving web generated documents for offline use.

  2. B

    The data can be stored across devices.

  3. C

    Storing personalized site preferences.

  4. D

    IndexedDB API is a kind of client-side storage which can be used for audio/video files.

Show answer

Correct answers

  • A

    Saving web generated documents for offline use.

  • C

    Storing personalized site preferences.

  • D

    IndexedDB API is a kind of client-side storage which can be used for audio/video files.

Question 16

+3 marksOne or more correct options

Which of the following are valid capabilities of Lighthouse while analyzing a website?

Select all that apply.

  1. A

    Measuring performance metrics such as FCP, LCP and TBT

  2. B

    Simulating slow networks and throttled conditions

  3. C

    Automatically fixing accessibility and SEO issues in the source code

  4. D

    Emulating mobile and desktop devices

Show answer

Correct answers

  • A

    Measuring performance metrics such as FCP, LCP and TBT

  • B

    Simulating slow networks and throttled conditions

  • D

    Emulating mobile and desktop devices

Question 17

+3 marksOne or more correct options

Given the following code, select all the statements that are TRUE about its execution if the code is run in a browser environment.

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • B
  • C

Question 18

+4.5 marksOne or more correct options

Consider the following Flask JWT code:

Select all that apply.

  1. A
  2. B

    If the JWT token is missing or invalid, Flask-JWT-Extended returns an unauthorized error.

  3. C
  4. D
Show answer

Correct answers

  • A
  • B

    If the JWT token is missing or invalid, Flask-JWT-Extended returns an unauthorized error.

  • C

Question 19

+4.5 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
  5. E
  6. F
Show answer

Correct answers

  • A
  • C
  • D
  • E

Question 20

+4.5 marksOne or more correct options

Consider the following code using flask_jwt_extended:

Which of the following statements are correct? (Select all that apply)

Select all that apply.

  1. A
  2. B
  3. C
  4. D
  5. E
  6. F
Show answer

Correct answers

  • A
  • B
  • C
  • F

Question 21

+2 marksOne correct option

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 ?

  1. A

    Rahul 2

  2. B

    Amit 3

  3. C

    Rahul 3

  4. D

    Amit 2

Show answer

Correct answer

  • C

    Rahul 3

Question 22

+3 marksOne correct option

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 ?

  1. A

    2 3

  2. B

    3 3

  3. C

    2 2

  4. D

    3 2

Show answer

Correct answer

  • A

    2 3

Question 23

+2 marksOne correct option

Consider the following JavaScript code:

Based on the above data, answer the given subquestions.

What will be the output order?

  1. A

    Start End Data Received

  2. B

    Data Received Start End

  3. C

    Start Data Received End

  4. D

    End Start Data Received

Show answer

Correct answer

  • C

    Start Data Received End

Question 24

+3 marksOne or more correct options

Consider the following JavaScript code:

Based on the above data, answer the given subquestions.

Which of the following statements are correct?

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • D

Question 25

+2 marksOne correct option

Read the following Vue 2 component code carefully (using the Options API via CDN) and answer the given sub questions.

  1. A

    0

  2. B

    1

  3. C

    2

  4. D

    3

Show answer

Correct answer

  • B

    1

Question 26

+3 marksOne correct option

Read the following Vue 2 component code carefully (using the Options API via CDN) and answer the given sub questions.

  1. A

    0

  2. B

    1

  3. C

    2

  4. D

    3

Show answer

Correct answer

  • C

    2

Question 27

+2 marksOne correct option

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?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 28

+3 marksOne correct option

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?

  1. A

    "PENDING" and 10

  2. B

    "SUCCESS" and 10

  3. C

    10 and "SUCCESS"

  4. D

    "PENDING" and "SUCCESS"

Show answer

Correct answer

  • A

    "PENDING" and 10

Question 29

+2 marksOne correct option

Read the following router and component setup carefully and answer the given sub questions: Router setup:

component's method:

  1. A

    /#/product/42

  2. B

    /#/product?id=42

  3. C

    /#/product/:id

  4. D

    /#/42

Show answer

Correct answer

  • A

    /#/product/42

Question 30

+2 marksOne correct option

Read the following router and component setup carefully and answer the given sub questions: Router setup:

component's method:

  1. A

    /#/search/shoes/2

  2. B

    /#/search?keyword=shoes&page=2

  3. C

    /#/search:keyword=shoes:page=2

  4. D

    /#/search

Show answer

Correct answer

  • B

    /#/search?keyword=shoes&page=2

Question 31

+2 marksOne correct option

Read the following router and component setup carefully and answer the given sub questions: Router setup:

component's method:

  1. A

    this.$router.query.keyword

  2. B

    this.$route.query.keyword

  3. C

    this.query.keyword

  4. D

    this.$router.params.keyword

Show answer

Correct answer

  • B

    this.$route.query.keyword