Quiz Space

MAD 2 End Term: 3 September 2023, Set QPD1-S2 (May 2023 term)

Question 1

+3 marksOne correct option

Consider the below HTML document.

index.html:

html
<table id ="table_id">
<tr>
<th>Name</th>
<th>Standard</th>
</tr>
<tr>
<td id = "cell_id_1">Pihu</td>
<td id = "cell_id_2">BA</td>
</tr>
<tr>
<td id = "cell_id_3">Sonali</td>
<td id = "cell_id_4">BCA</td>
</tr>
</table>
<script>
document.getElementById("table_id").addEventListener("click", () =>
console.log("Table Clicked !!"), true);
document.getElementById("cell_id_1").addEventListener("click", () =>
console.log("Cell Clicked !!"), true);
</script>

Suppose you open the “index.html” file in a browser, and click on the table cell with the text “Pihu”. Which of the following shows the correct sequence of output?

  1. A

    Cell Clicked !!
    Table Clicked !!

  2. B

    Table Clicked !!
    Cell Clicked !!

  3. C

    Cell Clicked !!

  4. D

    Table Clicked !!

Question 2

+3 marksOne correct option

Consider the below HTML document.

index.html:

html
<table id ="table_id">
<tr>
<th>Name</th>
<th>Standard</th>
</tr>
<tr>
<td id = "cell_id_1">Pihu</td>
<td id = "cell_id_2">BA</td>
</tr>
<tr>
<td id = "cell_id_3">Sonali</td>
<td id = "cell_id_4">BCA</td>
</tr>
</table>
<script>
document.getElementById("table_id").addEventListener("click", () =>
console.log("Table Clicked !!"));
document.getElementById("cell_id_1").addEventListener("click", () =>
console.log("Cell Clicked !!"));
</script>

Suppose you open the “index.html” file in a browser, and click on the table cell with the text “Pihu”. Which of the following shows the correct sequence of output?

  1. A

    Cell Clicked !!
    Table Clicked !!

  2. B

    Table Clicked !!
    Cell Clicked !!

  3. C

    Cell Clicked !!

  4. D

    Table Clicked !!

Question 3

+3 marksOne correct option

Consider the following JavaScript program, and predict the output if executed.

javascript
var first = 1;
obj1 = {
'first' : 2,
'second' : function some () {
console.log(first);
}
}
obj2 = {
'first' : 3,
'second' : function some () {
console.log("Function Invoked !!");
this.second();
}
}
obj2.second.call(obj1);
  1. A

    Function Invoked !!
    1

  2. B

    Function Invoked !!
    2

  3. C

    Function Invoked !!
    3

  4. D

    The program will cause an infinite loop and keep printing the message “Function Invoked !!”

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 3 Sept 2023 Set QPD1-S2 paper

The IIT Madras BS Modern Application Development II (MAD 2) End Term paper sat on 3 Sept 2023, in the May 2023 term, set QPD1-S2: 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 3 Sept 2023 Set QPD1-S2 at a glance
TermMay 2023 term
SubjectModern Application Development II
Course codeBSCS2006
Questions32
Marks100
Duration180 min
MCQ20
MSQ12
Official paperIIT M FOUNDATION ET1 EXAM QPF1 S1 03 Sep
Negative markingNo negative marking.
Updated

Other sets that day

Same End Term, other subjects

More MAD 2