Quiz Space

MAD 2 End Term: 3 September 2023, Set QPD1-S1 (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">Abhishek</td>
<td id = "cell_id_2">10th</td>
</tr>
<tr>
<td id = "cell_id_3">Narendra</td>
<td id = "cell_id_4">11th</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 “Abhishek”. Which of the following shows the correct sequence of output?

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

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">Abhishek</td>
<td id = "cell_id_2">10th</td>
</tr>
<tr>
<td id = "cell_id_3">Narendra</td>
<td id = "cell_id_4">11th</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 “Abhishek”. Which of the following shows the correct sequence of output?

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

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(this.first);
}
}
obj2 = {
'first' : 3,
'second' : function some () {
console.log("Function Invoked !!");
this.second();
}
}
obj2.second.call(obj1);
  1. A
  2. B
  3. C
  4. D

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-S1 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-S1: 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-S1 at a glance
TermMay 2023 term
SubjectModern Application Development II
Course codeBSCS2006
Questions32
Marks100
Duration180 min
MCQ19
MSQ13
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