Quiz Space

Modern Application Development II · Quiz 2 · 3 Dec 2023 · September 2023 term

Question 2: Consider the Vue application with markup index.html and J…

Question 2

+3 marksOne correct option

Consider the Vue application with markup index.html and JavaScript app.js

index.html

html
<body>
<div id="app"></div>
</body>

app.js

javascript
const NavBar = {
template: `<ul>
<li> Home </li>
<slot><li>Bowling Average</li></slot>
</ul>`,
}
const Batsman = {
template: `<NavBar><li>Batting Average</li><li>Strike
Rate</li></NavBar>`,
components: {
NavBar,
},
}
new Vue({
el: '#app',
template: `<Batsman />`,
components: {
Batsman,
},
})

Suppose the application is running on “http://localhost:8080” . What will be rendered by the browser?

  1. A

    ● Home
    ● Bowling Average

  2. B

    ● Home
    ● Bowling Average
    ● Batting Average

  3. C

    ● Home
    ● Batting Average
    ● Strike Rate

  4. D

    ● Bowling Average
    ● Batting Average

Show answer

Correct answer

  • C

    ● Home
    ● Batting Average
    ● Strike Rate

Question 2 of 16 in the IIT Madras BS Modern Application Development II (MAD 2) Quiz 2 paper sat on 3 Dec 2023, in the September 2023 term (IIT M DIPLOMA AN2 EXAM QDD2 03 Dec 2023). It carries 3 marks.

More questions from this paper

  1. Q1Consider the following JavaScript code. What will be logged on to the console?
  2. Q3Consider the following Vue app with markup index.html and JavaScript app.js. index.html app.js Suppose the application …
  3. Q4Consider the following Vue application with JavaScript app.js and markup index.html index.html app.js Suppose the appli…
  4. Q5Consider the following Vue application with markup “index.html” and javascript file “app.js”. index.html: app.js: If yo…
  5. Q6Consider the below javascript program, and predict the output assuming the variable “random_num” always has a value gre…
  6. Q7Consider the below javascript program, and predict the output if executed.
  7. Q8Consider the Vue app with markup index.html and script app.js index.html app.js Suppose the application is running on “…
  8. Q9Which of the following statements is false regarding promise in javascript?
  9. Q10Consider the following Vue app with markup index.html and JavaScript app.js. index.html app.js Suppose the application …
  10. Q11Consider the following Vue application with JavaScript app.js and markup index.html index.html app.js Suppose the appli…
  11. Q12Consider the following Vue application with markup “index.html” and javascript file “app.js”. index.html: app.js: Suppo…
  12. Q13Suppose you are organizing a ceremony to award the startup companies who have progressed considerably well in the past …
  13. Q14Which of the following is/are true regarding JSON Web Tokens?
  14. Q15Which of the following statement(s) is/are true, regarding REST and GraphQL?
  15. Q16Which of the following statement(s) is/are correct using Vuex?