uiz Space

January 2026 term · Modern Application Development II · BSCS2006

Modern Application Development II End Term: 10 May 2026, Set 1 (January 2026 term)

The IIT Madras BS Modern Application Development II (MAD 2) End Term paper sat on 10 May 2026, in the January 2026 term, set 1: 29 questions for 89.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
29
Marks
89.5
Duration
180 min
MCQ
23
MSQ
6

Updated

Official paper: Modern Application Development Ii 06 May 26 · No negative marking.

Question 1

+2 marksOne correct option

Which of the following statements is true regarding the "this" keyword in JavaScript?

  1. A

    "this" in an arrow function refers to the global object.

  2. B

    "this" inside a regular function refers to the object that owns the function.

  3. C

    Arrow functions do not have their own "this" and inherit it from the surrounding scope.

  4. D

    "this" always points to the window object in browser environments.

Show answer

Correct answer

  • C

    Arrow functions do not have their own "this" and inherit it from the surrounding scope.

Question 2

+2 marksOne correct option

Consider the below JavaScript program.

What will be the output of the above program?

  1. A

    0

  2. B

    3

  3. C

    6

  4. D

    9

  5. E

    12

Show answer

Correct answer

  • C

    6

Question 3

+2 marksOne correct option

What is the main advantage of using JWT over session-based authentication?

  1. A

    JWTs require server-side storage for each session.

  2. B

    JWTs are stateless and eliminate the need for server-side session storage.

  3. C

    JWTs are longer and contain more data than session IDs.

  4. D

    JWTs automatically handle token expiration without additional logic.

Show answer

Correct answer

  • B

    JWTs are stateless and eliminate the need for server-side session storage.

Question 4

+2 marksOne correct option

Which of the following HTTP methods does WebSocket use for initial handshake?

  1. A

    GET

  2. B

    POST

  3. C

    PUT

  4. D

    DELETE

Show answer

Correct answer

  • A

    GET

Question 5

+2 marksOne correct option

You are building a cricket analytics app. The file battingStats.js contains the following exports:

In another file app.js, which of the following import statements will correctly import both strikeRate and playerName ? ( Assume both files are in the same directory )

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

Correct answer

  • B

Question 6

+2 marksOne correct option
  1. A

    Encryption keys used to secure the token

  2. B

    User-related data (claims) such as identity and expiration time

  3. C

    The algorithm used for signing the token

  4. D

    The hashed signature of the token

Show answer

Correct answer

  • B

    User-related data (claims) such as identity and expiration time

Question 7

+3 marksOne correct option

Consider the below JavaScript program.

What will be the output of the above program?

  1. A

    Success!

  2. B

    Error!

  3. C

    Success! Error!

  4. D

    Error! Success!

Show answer

Correct answer

  • A

    Success!

Question 8

+3 marksOne correct option

Consider the below Vuex store configuration:

If the addItemAsync action is dispatched with the item 'React', what will be the state of items after 2 seconds?

  1. A

    ['Angular', 'Vue']

  2. B

    ['Angular', 'Vue', 'React']

  3. C

    ['React']

  4. D

    ['Angular']

Show answer

Correct answer

  • B

    ['Angular', 'Vue', 'React']

Question 9

+3 marksOne correct option

Consider the below Vue app.

What happens when the user navigates to an undefined route like "/random"?

  1. A

    Browser navigates to /random and shows a blank page.

  2. B

    Browser navigates to /random but renders nothing.

  3. C

    Browser redirects to /about and displays "About".

  4. D

    Error: No matching route.

Show answer

Correct answer

  • C

    Browser redirects to /about and displays "About".

Question 10

+3 marksOne correct option

What will be the output of the following JavaScript code?

  1. A

    number, object, false, false

  2. B

    NaN, null, true, true

  3. C

    number, object, true, false

  4. D

    NaN, null, false, false

Show answer

Correct answer

  • A

    number, object, false, false

Question 11

+3 marksOne correct option

What happens when this Flask caching code runs?

If requests for user IDs 1, 2, 1 are made within 5 minutes, what's the total response time?

  1. A

    15 seconds

  2. B

    10 seconds

  3. C

    5 seconds

  4. D

    0 seconds

Show answer

Correct answer

  • B

    10 seconds

Question 12

+3 marksOne correct option

Consider the following JavaScript program:

What will be printed in the console when the above code is executed?

  1. A

    Passed [75,75,63]

  2. B

    Failed [0,0,0]

  3. C

    Failed [75,75,63]

  4. D

    Passed [0,0,0]

Show answer

Correct answer

  • C

    Failed [75,75,63]

Question 13

+3 marksOne correct option

Match the Vue directive in Directive with its correct functionality in Description using Vue.js.

  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–C, 3–D, 4–A

  4. D

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

Show answer

Correct answer

  • D

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

Question 14

+2 marksOne or more correct options

In a Single Page Application (SPA), what are the benefits of client-side routing over server-side routing?

Select all that apply.

  1. A

    Slower navigation between pages

  2. B

    Reduced load on the backend server

  3. C

    Better SEO performance by default

  4. D

    Seamless page transitions without full reloads

Show answer

Correct answers

  • B

    Reduced load on the backend server

  • C

    Better SEO performance by default

Question 15

+2 marksOne or more correct options

Which of the following is the correct statement?

Select all that apply.

  1. A

    Cookie size can impact the website performance.

  2. B

    Cookie size does not affect performance in any practical/meaningful sense.

  3. C

    A request to static.example.com will include cookies set for example.com.

  4. D

    A request to static.example.com will not include cookies set for example.com.

Show answer

Correct answers

  • B

    Cookie size does not affect performance in any practical/meaningful sense.

  • C

    A request to static.example.com will include cookies set for example.com.

Question 16

+4.5 marksOne correct option

Consider the following Vue application with markup index.html and JavaScript file app.js.

Suppose the application is running on http://127.0.0.1:8080. What will be rendered by the browser?

  1. A

    Status: Initial -> Created -> Ready -> Mounted -> Done Value: 13

  2. B

    Status: Initial -> Ready -> Mounted -> Done Value: 8

  3. C

    Status: Initial -> Created -> Mounted -> Ready -> Done Value: 14

  4. D

    Status: Initial -> Mounted -> Ready -> Done Value: 9

Show answer

Correct answer

  • D

    Status: Initial -> Mounted -> Ready -> Done Value: 9

Question 17

+4.5 marksOne correct option

Consider the following endpoints created with a working setup of flask-security and flask-sqlalchemy.

Three requests are made to this application: GET /api/open (no authentication headers)1. GET /api/secure (no authentication headers)2. GET /api/superuser with valid authentication token but user has role 'basic' (not 'superuser')3. What will be the response status codes for these requests, respectively?

  1. A

    200, 200, 200

  2. B

    200, 401, 403

  3. C

    200, 403, 401

  4. D

    401, 403, 403

Show answer

Correct answer

  • B

    200, 401, 403

Question 18

+4.5 marksOne correct option

Consider the following code snippet running in a browser. What will be the output on the console?

  1. A

    Ambrane 20 50 30

  2. B

    Polycab 50 50 30

  3. C

    Ambrane 50 50 30

  4. D

    Ambrane 50 30 30

Show answer

Correct answer

  • C

    Ambrane 50 50 30

Question 19

+4.5 marksOne correct option

Consider the following code snippet running on a browser. What is the output on the console?

  1. A

    100 100 100

  2. B

    100 undefined 100

  3. C

    undefined undefined undefined

  4. D

    100 undefined undefined

Show answer

Correct answer

  • D

    100 undefined undefined

Question 20

+4.5 marksOne correct option

Consider the flask application app.py and an HTML file index.html:

If a user visit index.html at 10:10:10 AM, what will be logged in the console?

  1. A

    20, 50

  2. B

    20, 40

  3. C

    40, 40

  4. D

    50, 50

Show answer

Correct answer

  • B

    20, 40

Question 21

+3 marksOne or more correct options

Which of the following statement(s) is/are true about GraphQL?

Select all that apply.

  1. A

    Mutations in GraphQL can be used to change the underlying data store.

  2. B

    GraphQL services are created by defining types and fields of those types, then providing functions for each field.

  3. C

    GraphQL can only fetch data from a single source.

  4. D

    GraphQL allows only GET operations.

Show answer

Correct answers

  • A

    Mutations in GraphQL can be used to change the underlying data store.

  • B

    GraphQL services are created by defining types and fields of those types, then providing functions for each field.

Question 22

+3 marksOne or more correct options

Consider the following code:

Select all that apply.

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

    None of these

Show answer

Correct answers

  • A
  • B

Question 23

+3 marksOne or more correct options

Hamza is working on a project using Git and performs the following operations: Creates a new branch and switches to it1. Stages changes for commit2. Commits changes with a message3. Pushes the branch to a remote repository4. Which of the following commands are correctly used for these operations?

Select all that apply.

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

Correct answers

  • A
  • B
  • C
  • D

Question 24

+3 marksOne or more correct options

Prerna and Swathy are using a web application built with Vue.js for the BS Degree program. When the page loads, the sidebar content appears instantly• However, when they click on an Assignments link, the main content takes noticeable time to load • A simplified version of the component is shown below:

Which of the following statements correctly explain why the Assignments page takes time to load?

Select all that apply.

  1. A

    The sidebar is likely part of a parent component and is already rendered before the API call

  2. B

    The Assignments component waits for the API response before displaying data

  3. C

    Vue blocks rendering of all components until API calls complete

  4. D

    The delay is caused because data is fetched asynchronously after the component is created

Show answer

Correct answers

  • A

    The sidebar is likely part of a parent component and is already rendered before the API call

  • B

    The Assignments component waits for the API response before displaying data

  • D

    The delay is caused because data is fetched asynchronously after the component is created

Question 25

+3 marksOne correct option

Consider the following Vue.js application:

Based on the above data, answer the given subquestions.

How many times will "computed run" be logged in the console during the initial render?

  1. A

    0

  2. B

    1

  3. C

    Multiple times due to the loop

  4. D

    Depends on user interaction

Show answer

Correct answer

  • B

    1

Question 26

+3 marksOne correct option

Consider the following Vue.js application:

Based on the above data, answer the given subquestions.

What will happen when the button is clicked?

  1. A
  2. B
  3. C

    Only time will update

  4. D

    Vue will throw an error

Show answer

Correct answer

  • B

Question 27

+3 marksOne correct option

Consider the following Vue.js application:

Based on the above data, answer the given subquestions.

  1. A

    Computed properties are always faster than methods

  2. B

    Methods cannot access data properties

  3. C

    Computed properties are cached based on their dependencies

  4. D

    Computed properties run only once

Show answer

Correct answer

  • C

    Computed properties are cached based on their dependencies

Question 28

+4.5 marksOne correct option

Consider the following Vue 2 application:

What happens immediately after clicking "Item 2"?

  1. A
  2. B
  3. C

    The route changes, but neither watcher nor lifecycle hooks run

  4. D

    A new Vue instance is created for the route

Show answer

Correct answer

  • B

Question 29

+4.5 marksOne correct option

Consider the following Vue 2 application:

  1. A

    Because Vue Router always recreates components on navigation

  2. B

    Because lifecycle hooks run on every URL change regardless of reactivity

  3. C

    Because router-view forces a full re-render of the component tree

  4. D

    Because a watched route parameter updates parent reactive state, triggering a component update

Show answer

Correct answer

  • D

    Because a watched route parameter updates parent reactive state, triggering a component update