Question 1 | MCQ
Solution
Which of the following statement(s) is/are true regarding JavaScript language?
Solution
Which of the following statement(s) is/are false?
Solution
Which of the following statement(s) is/are true regarding Celery and Redis?
Solution
Which of the following statement(s) is/are true regarding webhooks and polling?
Solution
Which of the following statement(s) is/are true regarding cookies?
Solution
Which of the following statement(s) is/are true regarding OAuth?
Solution
Which of the following is true regarding the Closure in JavaScript?
Solution
Which of the following shows the correct output if the javascript program written below is executed?

Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.

Suppose you open “index.html” file in a browser, and type the text “IIT Madras” in the text box shown (after removing the previous text, if any), and hard refresh the page twice, without clicking anywhere. What will be the value shown in the text box, and the “age” placeholder, respectively?
Suppose you open “index.html” file in a browser, and type the text “IIT Madras” in the text box shown (after removing the previous text, if any), and hard refresh the page twice, without clicking anywhere. What will be the value shown in the text box, and the “age” placeholder, respectively?
Solution
Which of the following statements is false regarding CORS and CSRF?
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.


What will be the color of text rendered inside the div with ID “run”, if the user clicks on the button with text “Six”, 3 times and the button with text “Four”, 4 times?
What will be the color of text rendered inside the div with ID “run”, if the user clicks on the button with text “Six”, 3 times and the button with text “Four”, 4 times?
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.


What will be the color and font-weight of the text “IITM online degree”?
What will be the color and font-weight of the text “IITM online degree”?
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.


What will be rendered on the screen?
What will be rendered on the screen?
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.


What will be rendered inside the div with ID “collections”, when the user selects the option “Type Two” ?
What will be rendered inside the div with ID “collections”, when the user selects the option “Type Two” ?
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.

Suppose the user types “Apple” in the input box (after removing the existing text, if any). What will be rendered inside the div with ID “result”?
Suppose the user types “Apple” in the input box (after removing the existing text, if any). What will be rendered inside the div with ID “result”?
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.


Suppose the application is running on ‘http://127.0.0.1:8080/’. If the user visits the application for the first time and clicks on the button “Go to profile”, what will be displayed on the screen?
Suppose the application is running on ‘http://127.0.0.1:8080/’. If the user visits the application for the first time and clicks on the button “Go to profile”, what will be displayed on the screen?
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.


Suppose the application is running on ‘http://127.0.0.1:8080/’. What will be rendered for the URL “ http://127.0.0.1:8080/#/” ?
Suppose the application is running on ‘http://127.0.0.1:8080/’. What will be rendered for the URL “ http://127.0.0.1:8080/#/” ?
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.

What will be rendered inside the “custom-comp” component?
What will be rendered inside the “custom-comp” component?
Solution
Which of the following is the correct way to do class binding in Vue (to apply ‘classA’ on the div element), if the data object in the Vue constructor is defined as below?

Solution
Which of the following statement(s) is/are false?
Solution
Which of the following statement(s) is/are true regarding Celery and Redis, assuming a task named “send_email” is defined using 2 approaches given below?
Approach 1: send_email.delay()
Approach 2: send_email.apply_async(countdown = 10)
Approach 1: send_email.delay()
Approach 2: send_email.apply_async(countdown = 10)
Solution
Which of the following statement(s) is/are false regarding Vuex and Vue router?
Solution
Which of the following statement(s) is/are true regarding fetch API?
Solution
Which of the following shows the correct output, if the javascript program written below is executed?

Solution
Solution
Consider the following javascript program, and predict the output, if executed.

Solution
Consider the following javascript program, and predict the output, if executed. Also, predict the minimum time taken (in seconds) to log the value “Executing” 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 Vue application with markup “index.html” and javascript file “app.js”.


What will be rendered inside the div for ID “run”, if the user clicks on the button with text “Six”, 3 times and the button with text “Four”, 4 times?
What will be rendered inside the div for ID “run”, if the user clicks on the button with text “Six”, 3 times and the button with text “Four”, 4 times?
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.


What will be rendered inside the div with ID “collections”, when the browser loads the application for the first time?
What will be rendered inside the div with ID “collections”, when the browser loads the application for the first time?
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.


What will be rendered inside the router-view component of Movies component for the URL “ http://127.0.0.1:8080/#/hindi”?
What will be rendered inside the router-view component of Movies component for the URL “ http://127.0.0.1:8080/#/hindi”?
Solution
Which of the following statement(s) is/are correct regarding cookies, local storage, and session storage?
Solution
Shape
Thickness [ / ]
3
All colors