Quiz Space

MAD 2 Quiz 1: 27 October 2024 (September 2024 term)

Question 1

+2 marksOne correct option

Consider the following HTML, with the correct Vue 2 CDN links included.

html
<body>
<div id="app" :class="['box', { active: isActive }]">
Vue Component
</div>
<script>
new Vue({
el: '#app',
data() {
return {
isActive: false,
};
},
});
</script>
</body>

What will be the final rendered class attribute of the <div> ?

  1. A

    box

  2. B

    active

  3. C

    box active

  4. D

    box inactive

Question 2

+2 marksOne correct option

Which of the following is an example of ephemeral state in a web application?

  1. A

    A user's authentication token stored in local storage

  2. B

    A form input value that changes as the user types

  3. C

    The list of favorite items saved in a user's profile

  4. D

    A shopping cart saved between sessions

Question 3

+3 marksOne correct option

Consider the following JavaScript code

javascript
const juices = [
{ id: 1, name: "grape", rating: 8.1 },
{ id: 2, name: "apple", rating: 5.0 },
{ id: 3, name: "orange", rating: 6.9 },
{ id: 4, name: "banana", rating: 10 },
]
mapping = { "4": 1, "3": 2, "2": 3, "1": 4 }
juices.map((juice) => { return { ...juice, rank: mapping[juice.id] } })
.sort((a, b) => a.rank - b.rank)
.map((juice) => { console.log(juice.name) })

What will be the output of the code?

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

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 27 Oct 2024 paper

The IIT Madras BS Modern Application Development II (MAD 2) Quiz 1 paper sat on 27 Oct 2024, in the September 2024 term (T3 2024): 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 27 Oct 2024 at a glance
TermSeptember 2024 term (T3 2024)
SubjectModern Application Development II
Course codeBSCS2006
Questions16
Marks50
Duration120 min
MCQ11
MSQ5
Official paperIIT M DIPLOMA AN EXAM QDD2 27 Oct 2024
Negative markingNo negative marking.
Updated

Same Quiz 1, other subjects

More MAD 2