Quiz Space

MAD 2 Quiz 1: 16 October 2022 (September 2022 term)

Question 1

+2 marksOne correct option

Which of the following statements is correct regarding javascript language?

  1. A

    The equality operator “==” is used to avoid coercion in the language.

  2. B

    A variable declared using the keyword “var” can be used anywhere in the program.

  3. C

    The keyword “break” is used to terminate the execution of the program in the language.

  4. D

    None of these

Question 2

+2 marksOne correct option

Consider the following Vue application with markup “index.html” and javascript file “app.js”.

index.html:

html
<div id = "app">
<h3> Header Content </h3>
<main></main>
<h3> Footer Content </h3>
</div>
<script src="app.js"></script>

app.js:

javascript
const main = {
template : `
<div>
<h3> Main Content </h3>
</div>
`
}
const comp = {
'main' : main
}
new Vue({
el : "#app"
})

If the file “index.html” is opened with the help of a browser. What will be rendered on the browser?

  1. A

    Header Content
    Main Content
    Footer Content

  2. B

    The app will show a warning, and nothing will be shown on the browser.

  3. C

    Header Content
    Footer Content

  4. D

    The app will not show any warning, but nothing will be shown on the browser.

Question 3

+3 marksOne correct option

Consider the below javascript program, and predict the output, if executed.

javascript
var num = 20;
function demo () {
num = 50;
function num () {
console.log("Number is:", num)
}
}
demo()
console.log("Number is:", num)
  1. A

    Number is: 20

  2. B

    Number is: 50

  3. C

    Number is: undefined

  4. D

    Number is:

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 16 Oct 2022 paper

The IIT Madras BS Modern Application Development II (MAD 2) Quiz 1 paper sat on 16 Oct 2022, in the September 2022 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 16 Oct 2022 at a glance
TermSeptember 2022 term
SubjectModern Application Development II
Course codeBSCS2006
Questions16
Marks50
Duration120 min
MCQ14
MSQ2
Official paperIIT M QUIZ 1 FOUNDATION DAD DIPLOMA QPD2 16 Oct 2022
Negative markingNo negative marking.
Updated

Same Quiz 1, other subjects

More MAD 2