Quiz Space

Modern Application Development II · Quiz 2 · 4 Aug 2024 · May 2024 term

MAD 2 Quiz 2 4 Aug 2024 — Question 11

Question 11

+2 marksOne or more correct options

Select all that apply.

  1. A

    The classes, namely “classA” and “classB” will always be applied to the div element.

  2. B

    The class, namely “classB” will always be applied to the div element.

  3. C

    The class, namely “classA” will only be applied to the div element, if the variable “isClassA” evaluates to true.

  4. D

    The class, namely “classB” will only be applied to the div element, if no variable with name “isClassA” exists.

Show answer

Correct answers

  • B

    The class, namely “classB” will always be applied to the div element.

  • C

    The class, namely “classA” will only be applied to the div element, if the variable “isClassA” evaluates to true.

Question 11 of 16 in the IIT Madras BS Modern Application Development II (MAD 2) Quiz 2 paper sat on 4 Aug 2024, in the May 2024 term (IIT M DIPLOMA AN EXAM QDD2 4 Aug 2024). It carries 2 marks.

More questions from this paper

  1. Q1Consider the below JavaScript program. What will be the output of the above program, if executed?
  2. Q2Consider the following Vue application with markup “index.html” and JavaScript file “app.js”. index.html: app.js: Suppo…
  3. Q3Consider the following application with markup index.html and script app.js. index.html: app.js: Suppose the applicatio…
  4. Q4Consider the below JavaScript program. What will be the output of the above program?
  5. Q5Consider the following Vue application with markup “index.html” and JavaScript file “app.js”. index.html: app.js: Suppo…
  6. Q6Consider the below JavaScript program, and predict the output, if executed.
  7. Q7Consider the following Vue application with markup index.html and JavaScript file app.js. File: index.html File: script…
  8. Q8Consider the following JavaScript code. What will be the output of the above code snippet on the console of the browser?
  9. Q9Consider the following HTML snippet that uses Vue 2 using CDN in the script.js file Filename: index.html Filename: scri…
  10. Q10Suppose you are organizing a felicitation program for the students with exemplary performance in the BS program. You ha…
  11. Q12Which of the following statement(s) is/are incorrect regarding Vuex?
  12. Q13Consider the following HTML, with Vue 2 CDN attached to it. Filename: index.html Filename: script.js What will be logge…
  13. Q14Analyze the given HTML with embedded script. What will be the final state of HTML elements, after all the setTimeout() …
  14. Q15Consider the following HTML document embedded with Vue CDN and the script file shown below. Filename: index.html Filena…
  15. Q16Consider the below Vue component template and script definitions that use Vue router. Vue component template Filename: …