Question 1 | MCQ
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.
index.html:

app.js:


Say you open the file “index.html” in the browser, and enter the text “iitm” in the text box shown (after removing the existing text from the input box), and click on the button with the text “Click Me”. After that, you refresh the page twice. What will be the text shown in the text input box, and the value of the “refreshes” placeholder, respectively?
index.html:
app.js:
Say you open the file “index.html” in the browser, and enter the text “iitm” in the text box shown (after removing the existing text from the input box), and click on the button with the text “Click Me”. After that, you refresh the page twice. What will be the text shown in the text input box, and the value of the “refreshes” placeholder, respectively?
Solution
Suppose you are organizing a ceremony to award the startup companies who have progressed considerably well in the past few years. You have received a lot of registrations. The committee has decided to shortlist the companies based on the following 2 criteria:
1. The company must have a website
2. The company must have a capital of more than 40000
Fill in thecode1&code2, which can be used in Vuex Store to update the “awardees” state variable with the objects of those companies who satisfy the above-mentioned criteria.

1. The company must have a website
2. The company must have a capital of more than 40000
Fill in thecode1&code2, which can be used in Vuex Store to update the “awardees” state variable with the objects of those companies who satisfy the above-mentioned criteria.
Solution
Consider the following JavaScript program running in a browser environment.

Consider the ‘dummyUrl’ returns the HTML as payload. What will be logged on to the console?
Consider the ‘dummyUrl’ returns the HTML as payload. 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:

app.js:

Suppose the application is running on“http://127.0.0.1:8080”. What will be the value of message property of Create component for “http://127.0.0.1:8080/#/?update=true” ?
index.html:
app.js:
Suppose the application is running on“http://127.0.0.1:8080”. What will be the value of message property of Create component for “http://127.0.0.1:8080/#/?update=true” ?
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.
index.html:

app.js:

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


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

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

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

app.js:

Say you open the file “index.html” in the browser, and enter the text “nptel” in the text box shown (after removing the existing text from the input box). After that, you refresh the page thrice. What be the text shown in the text input box, and the value of the “refreshes” placeholder, respectively?
index.html:
app.js:
Say you open the file “index.html” in the browser, and enter the text “nptel” in the text box shown (after removing the existing text from the input box). After that, you refresh the page thrice. What be the text shown in the text input box, and the value of the “refreshes” placeholder, respectively?
Solution
Consider the following javascript program running in a browser environment.

What will be logged on to the console in (value, t) format, where “t” represents the approximate
time in seconds (from the start of the execution of the program), and “value” represents the output value logged on to the console. For example: If 2 is logged on to console after 5 seconds, answer is (2, 5).
What will be logged on to the console in (value, t) format, where “t” represents the approximate
time in seconds (from the start of the execution of the program), and “value” represents the output value logged on to the console. For example: If 2 is logged on to console after 5 seconds, answer is (2, 5).
Solution
Which of the following statement(s) is/are true regarding GraphQL and REST API?
Solution
Which of the following statement(s) is/are correct regarding Vuex?
Solution
Which of the following is correct regarding JWT?
Solution
Which of the following is true regarding CORS?
Solution
Which of the following statement(s) is/are false regarding PWA and SPA?
Solution
Which of the following statement(s) is/are false regarding token based authentication?
Solution
Shape
Thickness [ / ]
3
All colors