Question 1 | MCQ
Solution
Which of the following is the correct way to define immediately invoked function expressions in javascript language?
Solution
Say you are trying to make an app where users can play “bullet” chess with each other - the entire game has to be completed within 40 seconds. Which one of the following design considerations is most important here?
Solution
Which of the following statement(s) is/are true regarding javascript language?
Solution
Which of the following statement(s) is/are true regarding Vue framework?
Solution
Consider the following Vue application with markup index.html and javascript file app.js.
index.html:

What will be rendered on the browser screen (ignore the formatting and styling)?
index.html:
What will be rendered on the browser screen (ignore the formatting and styling)?
Solution
Consider the following javascript program and predict the output if executed.

Solution
Consider the following program. What will be logged on the console?

Solution
Consider the following javascript program.

What will be logged on to the console?
What will be logged on to the console?
Solution
Consider the following javascript program.

What will be logged on to the console?
What will be logged on to the console?
Solution
Consider the following Vue application with markup index.html and javascript file app.js.
index.html:

What will be the color of the text “Welcome to the MAD2 Quiz”, after clicking the button “Danger” 6 times (for a normal browser which shows black colored text on a white background)?
index.html:
What will be the color of the text “Welcome to the MAD2 Quiz”, after clicking the button “Danger” 6 times (for a normal browser which shows black colored text on a white background)?
Solution
Consider the following Vue application with markup index.html and javascript file app.js.

If the user clicks on the button “click me” 5 times, what will be rendered inside the div with ID “total-run”?
If the user clicks on the button “click me” 5 times, what will be rendered inside the div with ID “total-run”?
Solution
Consider the following HTML document.

What will be rendered inside the div element along with the color of the text (for a normal browser which shows black colored text on a white background)?
What will be rendered inside the div element along with the color of the text (for a normal browser which shows black colored text on a white background)?
Solution
Consider the following javascript program.

What will be the output of the above program after 10 seconds?
What will be the output of the above program after 10 seconds?
Solution
Consider the following Vue application with markup index.html and javascript file app.js.

What will be the color and background color of the text “Welcome to the MAD2 Quiz” respectively, if the user selects the radio button “Light” (for a normal browser which shows black colored text on a white background)?
What will be the color and background color of the text “Welcome to the MAD2 Quiz” respectively, if the user selects the radio button “Light” (for a normal browser which shows black colored text on a white background)?
Solution
Consider the following Vue application with markup index.html and javascript file app.js.

What will be rendered inside the div with ID “current-postion”, if the user clicks on the button “Next Move” thrice?
What will be rendered inside the div with ID “current-postion”, if the user clicks on the button “Next Move” thrice?
Solution
Consider the following Vue application with markup index.html and javascript file app.js.

If the user clicks on the button “New Person” 7 times. What will be the background color of div with class “light”?
If the user clicks on the button “New Person” 7 times. What will be the background color of div with class “light”?
Solution
Shape
Thickness [ / ]
3
All colors