uiz Space

May 2026 term · Modern Application Development II · BSCS2006

Modern Application Development II Quiz 2: 16 August 2026 (May 2026 term)

The IIT Madras BS Modern Application Development II (MAD 2) Quiz 2 paper sat on 16 Aug 2026, in the May 2026 term: 15 questions for 47 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
15
Marks
47
Duration
120 min
MCQ
11
MSQ
4

Updated

Official paper: Modern Application Development Ii 14 Aug 26 · No negative marking.

Question 1

+2 marksOne correct option

A developer opens the Node.js REPL and runs the following line:

Why does this fail?

  1. A

    Node.js cannot execute JavaScript from the terminal.

  2. B
  3. C
  4. D

    V8 can execute only arithmetic expressions, not DOM code.

Show answer

Correct answer

  • B

Question 2

+2 marksOne correct option

Consider the following javascript code:

The above code is initially loaded on the browser and then the browser is refreshed two times. What will be the final output?

  1. A

    ['Tablet', 'Tablet']

  2. B

    ['Tablet', 'Tablet', 'Tablet']

  3. C

    [{ id: 3, name: 'Tablet' }]

  4. D

    [undefined]

Show answer

Correct answer

  • B

    ['Tablet', 'Tablet', 'Tablet']

Question 3

+2 marksOne correct option

Point out the error with the following code that is used to display user data?

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

Correct answer

  • B

Question 4

+3 marksOne correct option

What is the correct output order for the following code?

  1. A

    A B C D

  2. B

    C A D B

  3. C

    A D C B

  4. D

    A D B C

Show answer

Correct answer

  • C

    A D C B

Question 5

+3 marksOne correct option

Consider the following code:

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

    The code throws an error because nested objects cannot be copied with spread syntax.

Show answer

Correct answer

  • B

Question 6

+3 marksOne correct option

Consider the following JavaScript code snippet?

What will be the output of above code on the browser’s console?

  1. A

    1 → 2 → 3: done → 4

  2. B

    1 → 4 → 2 → 3: done

  3. C

    1 → 2 → 4 → 3: done

  4. D

    1 → 2 → 4 (3 never prints due to unresolved promise)

Show answer

Correct answer

  • C

    1 → 2 → 4 → 3: done

Question 7

+3 marksOne or more correct options

Suppose the following HTML exists:

Which of the following statements are correct?

Select all that apply.

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

Correct answers

  • A
  • B
  • C

Question 8

+3 marksOne or more correct options

A Vue frontend, a mobile app, and another backend service all call the same Flask API deployed on multiple servers. The team chooses JWT authentication. Which of the following statements are correct?

Select all that apply.

  1. A

    Each request can carry the token, so any server can validate it without storing a per-user session in memory.

  2. B
  3. C
  4. D

    Session-based authentication is usually easier to scale across multiple servers because no shared storage is needed. The team should have chosen this.

Show answer

Correct answers

  • A

    Each request can carry the token, so any server can validate it without storing a per-user session in memory.

  • B
  • C

Question 9

+4.5 marksOne or more correct options

A Vue 2 component does the following: •loads initial task data from an API, •starts a timer after the component appears on the page, •clears that timer before the component is removed. Which hook choices are appropriate?

Select all that apply.

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

Correct answers

  • A
  • B
  • C

Question 10

+2 marksOne or more correct options

Select all that apply.

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

    Vue Router removes the need for route components.

Show answer

Correct answers

  • A
  • B
  • C

Question 11

+4.5 marksOne correct option

Fill in Code1, inside a mutation handler, which can be used to reduce the price of each of the products in the state by a certain discount. app.js:

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

Correct answer

  • B

Question 12

+4.5 marksOne correct option

Consider the following Vuex store and component code. store.js

Component.vue

  1. A

    All three methods will update the cart and all changes will be visible in Vue DevTools mutation history.

  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 13

+4.5 marksOne correct option

Read the following component carefully.

What will be logged in the console when this component first loads?

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

Correct answer

  • C

Question 14

+3 marksOne correct option

Read the following code carefully and answer the given sub questions:
file1: router/index.js

file2: ProfileComponent.vue

What should be filled in at Line A to correctly read the username from the URL?

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

Correct answer

  • B

Question 15

+3 marksOne correct option

Read the following code carefully and answer the given sub questions:
file1: router/index.js

file2: ProfileComponent.vue

What should be filled in at Line B to navigate to the Settings page?

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

Correct answer

  • C