Quiz Space

MAD 2 End Term: 11 December 2022, Set ETD1 (September 2022 term)

Question 1

+2 marksOne correct option

Consider the below Vue component and Vuex store definition.

javascript
const store = new Vuex.Store({
state : {
stateA : 10,
stateB : 20,
stateC : 30,
}
}
Vue.component('Vuex-demo', {
template : `
<div>
state A : {{stateA}}
state B : {{stateB}}
state C : {{stateC}}
</div>
`,
computed : code
})

Which of the following is the best suitable definition of the “code” placeholder in the above app (assuming the store is binded with the Vue app, and the mapState is imported appropriately)?

  1. A

    …mapState(['state_1', 'state_2', 'state_3'])

  2. B

    mapState(['state_1', 'state_2', 'state_3'])

  3. C

    Both …mapState(['state_1', 'state_2', 'state_3']) and mapState(['state_1', 'state_2', 'state_3'])

  4. D

    A Vue component cannot access Vuex store state.

Also asked in End Term 11 Dec 2022

Question 2

+2 marksOne correct option

Suppose you are writing an application to be used by lakhs of people, which will run a brute force algorithm and gives back the result to the user of the application when ready. Considering this context, arrange the below set of actions/operations to achieve a desirable and practical design. I. Invoke the webhook
II. Relieve the worker
III. Dispatch a backend job

  1. A

    I, III, II

  2. B

    III, I, II

  3. C

    I, II, III

  4. D

    The polling will be a better design.

Also asked in End Term 11 Dec 2022

Question 3

+2 marksOne correct option

Which of the following statements is false regarding caching?

  1. A

    A shared cache is generally suitable for storing the personalized responses.

  2. B

    A private cache is usually tied to a specific client.

  3. C

    The caching helps in improving the performance of a web application.

  4. D

    Caching at browser level provides the least latency, if compared with proxy level.

29 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 End Term 11 Dec 2022 Set ETD1 paper

The IIT Madras BS Modern Application Development II (MAD 2) End Term paper sat on 11 Dec 2022, in the September 2022 term, set ETD1: 32 questions for 100 marks in 180 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 End Term 11 Dec 2022 Set ETD1 at a glance
TermSeptember 2022 term
SubjectModern Application Development II
Course codeBSCS2006
Questions32
Marks100
Duration180 min
MCQ25
MSQ7
Official paperIIT M DIPLOMA AN1 EXAM ETD1 11 Dec 2022
Negative markingNo negative marking.
Updated

Other sets that day

Same End Term, other subjects

More MAD 2