Quiz Space

MAD 2 Quiz 1: 23 February 2025 (January 2025 term)

Question 1

+2 marksOne correct option

Which of the following statements is true regarding “v-if” and “v-show” directives in VueJS?

  1. A

    The “v-if” directive adds/removes elements from the DOM, while v-show only toggles visibility using CSS.

  2. B

    The “v-show” directive adds/removes elements from the DOM, while v-if only toggles visibility using CSS.

  3. C

    Both the “v-if” and “v-show” directives add/remove elements from the DOM.

  4. D

    Both the “v-if” and “v-show” directives toggle visibility using CSS.

Question 2

+2 marksOne correct option

Consider the below JavaScript program.

javascript
let x = 5;
(function () {
console.log(x);
let x = 10;
})();

What will be the output of the above program?

  1. A
    Option figure from the original question paper
  2. B
  3. C
  4. D
  5. E

Question 3

+2 marksOne correct option

What is the output of this code?

javascript
console.log(myVar);
console.log(myFunc());
var myVar = "hello";
function myFunc() {
return "world";
}
  1. A

    hello, world

  2. B

    undefined, world

  3. C

    ReferenceError

  4. D

    undefined, undefined

13 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the MAD 2 Quiz 1 23 Feb 2025 paper

The IIT Madras BS Modern Application Development II (MAD 2) Quiz 1 paper sat on 23 Feb 2025, in the January 2025 term: 16 questions for 50 marks in 120 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureMAD 2 Quiz 1 23 Feb 2025 at a glance
TermJanuary 2025 term
SubjectModern Application Development II
Course codeBSCS2006
Questions16
Marks50
Duration120 min
MCQ15
MSQ1
Official paperIIT M DIPLOMA AN EXAM QDD2 23 Feb 2025
Negative markingNo negative marking.
Updated

Same Quiz 1, other subjects

More MAD 2