uiz Space

May 2026 term · Modern Application Development II · BSCS2006

Modern Application Development II Quiz 1: 19 July 2026 (May 2026 term)

The IIT Madras BS Modern Application Development II (MAD 2) Quiz 1 paper sat on 19 Jul 2026, in the May 2026 term: 16 questions for 50 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
16
Marks
50
Duration
120 min
MSQ
5
MCQ
11

Updated

Official paper: Modern Application Development Ii 16 Jul 26 · No negative marking.

Question 1

+2 marksOne or more correct options

Consider running the following in Browser console:

Which of the following statements are correct?

Consider running the following in Browser console:

Select all that apply.

  1. A

    The first line prints .

  2. B

    The second line prints .

  3. C

    will work in Browser by default because V8 provides the DOM.

  4. D

    Different runtimes (browser, Node.js, etc.) can provide different APIs even if they use the same JavaScript engine.

Show answer

Correct answers

  • A

    The first line prints .

  • D

    Different runtimes (browser, Node.js, etc.) can provide different APIs even if they use the same JavaScript engine.

Question 2

+2 marksOne or more correct options

Which of the following are advantages of component-based frontend frameworks like Vue.js?

Select all that apply.

  1. A

    Code reusability

  2. B

    Better maintainability

  3. C

    Automatic SQL query optimization

  4. D

    Easier UI management

Show answer

Correct answers

  • A

    Code reusability

  • B

    Better maintainability

  • D

    Easier UI management

Question 3

+2 marksOne or more correct options

Which of the following cases is a function being used as a callback?

Select all that apply.

  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C

    —

  4. D
    Figure from the original question paper
Show answer

Correct answers

  • A
    Figure from the original question paper
  • B
    Figure from the original question paper
  • D
    Figure from the original question paper

Question 4

+3 marksOne correct option

What is the correct output order for the following code?

What is the correct output order for the following code?
  1. A

    1 2 3 4

  2. B

    1 4 2 3

  3. C

    2 1 4 3

  4. D

    4 1 2 3

Show answer

Correct answer

  • B

    1 4 2 3

Question 5

+3 marksOne correct option

A child component is initially visible using . The parent first updates a prop passed to the child, and then sets . After the child has already mounted once, which sequence can occur in the child after initial render?

  1. A

    -> -> ->

  2. B

    -> -> ->

  3. C

    -> -> ->

  4. D

    -> -> ->

Show answer

Correct answer

  • A

    -> -> ->

Question 6

+3 marksOne correct option

Consider the following JavaScript code snippet.

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

Consider the following JavaScript code snippet.
  1. A

    50 50 60 40

  2. B

    50 50 60 60

  3. C

    50 30 60 60

  4. D

    50 30 60 40

Show answer

Correct answer

  • C

    50 30 60 60

Question 7

+3 marksOne correct option

Consider the following JavaScript code snippet.

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

Consider the following JavaScript code snippet.
  1. A

    The European countries are Spain and Germany. The final numerical value is: 115.

  2. B

    The European countries are Italy and England. The final numerical value is: 65.

  3. C

    The European countries are Spain and Germany. The final numerical value is: 65.

  4. D

    The European countries are Italy and England. The final numerical value is: 115.

Show answer

Correct answer

  • C

    The European countries are Spain and Germany. The final numerical value is: 65.

Question 8

+3 marksOne correct option

Consider the following JavaScript code snippet.

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

Consider the following JavaScript code snippet.
  1. A

    The selected elements are: Gold and Argon

  2. B

    The selected elements are: Aluminium and Silver

  3. C

    The selected elements are: Argon and Neon

  4. D

    The selected elements are: Gold and Neon

  5. E

    The selected elements are: Argon and Gold

Show answer

Correct answer

  • A

    The selected elements are: Gold and Argon

Question 9

+2 marksOne correct option

Which of the following Vue directives are correctly matched with their purpose?

  1. A

    v-show → fetching api

  2. B

    v-for → Iteration over lists

  3. C

    v-bind → Conditional rendering

  4. D

    v-model → Event handling only

Show answer

Correct answer

  • B

    v-for → Iteration over lists

Question 10

+3 marksOne or more correct options

Given the following parent-child setup in Vue 2:

and inside the child:

Which statements are correct?

Given the following parent-child setup in Vue 2:
Given the following parent-child setup in Vue 2:

Select all that apply.

  1. A

    flows from parent to child through props.

  2. B

    is a custom event sent from child to parent.

  3. C

    The child should directly change to update the parent source of truth.

  4. D

    If changes in the parent, the child can receive the updated prop value.

Show answer

Correct answers

  • A

    flows from parent to child through props.

  • B

    is a custom event sent from child to parent.

  • D

    If changes in the parent, the child can receive the updated prop value.

Question 11

+3 marksOne correct option

Identify the issue in the following Vue.js code:

Why does the value not update correctly when the button is clicked?

Identify the issue in the following Vue.js code:
  1. A

    should be used instead of

  2. B

    Arrow functions do not bind their own

  3. C

    should be a function in all Vue instances

  4. D

    Vue.js does not support external methods

Show answer

Correct answer

  • B

    Arrow functions do not bind their own

Question 12

+3 marksOne or more correct options

Consider the following JavaScript code snippet.

Which of the following statements is/are correct?

Consider the following JavaScript code snippet.

Select all that apply.

  1. A

    will work correctly and return 8

  2. B

    will work correctly and return 8

  3. C

    will work correctly and return 15

  4. D

    will work correctly and return 15

Show answer

Correct answers

  • A

    will work correctly and return 8

  • C

    will work correctly and return 15

Question 13

+4.5 marksOne correct option

Consider the following JavaScript code snippet.

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

Consider the following JavaScript code snippet.
  1. A

    You are accessing: 45 You are accessing: 55

  2. B

    You are accessing: 25 You are accessing: 35

  3. C

    You are accessing: 25 You are accessing: 55

  4. D

    You are accessing: 45 You are accessing: 35

Show answer

Correct answer

  • B

    You are accessing: 25 You are accessing: 35

Question 14

+4.5 marksOne correct option

Consider the following JavaScript code snippet.

What will be the output of the above code on the browsers’ console in correct order?

Consider the following JavaScript code snippet.
  1. A

    undefined alpha beta delta Reference Error

  2. B

    zeta undefined beta delta Reference Error

  3. C

    undefined Reference Error beta charlie undefined

  4. D

    zeta Reference Error beta charlie undefined

Show answer

Correct answer

  • A

    undefined alpha beta delta Reference Error

Question 15

+4.5 marksOne correct option

Consider the following JavaScript code snippet.

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

Consider the following JavaScript code snippet.
  1. A

    ['gust', 'rch', 'ril']

  2. B

    ['rch', 'ril', 'gust']

  3. C

    ril

  4. D

    rch

Show answer

Correct answer

  • D

    rch

Question 16

+4.5 marksOne correct option

Consider the following JavaScript code snippet.

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

Consider the following JavaScript code snippet.
  1. A

    Program start First start First timeout First end Second start Second timeout Program end

  2. B

    Program start First start First end First timeout Second start Second timeout Program end

  3. C

    Program start First timeout First start First end Second timeout Second start Program end

  4. D

    Program start First start First end Second start Program end First timeout Second timeout

Show answer

Correct answer

  • D

    Program start First start First end Second start Program end First timeout Second timeout