Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL : MODERN APPLICATION DEVELOPMENT II (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
What of the following is the primary objective of a CSRF token?
Solution
Suppose an application is being loaded from the origin https://example.com. Which of the following origins will the browser allow while making a fetch call, by default?
Solution
What is the correct sequence of steps to update the state in Vuex when handling an asynchronous operation?
Solution
Suppose you are developing an application for millions of users that will perform intensive data analysis and return the results asynchronously. Arrange the following set of actions/operations to achieve an efficient and scalable design.
I) Save the result to a database
II) Invoke a callback URL
III) Queue the analysis job
I) Save the result to a database
II) Invoke a callback URL
III) Queue the analysis job
Solution
Which of the following statements about Redis is true?
Solution
Which of the following scenarios is an example of a Cross-Site Request Forgery (CSRF) attack?
Solution
Match the following technologies with their typical use cases:

Solution
Solution
Solution
Solution
Solution
Solution
Which of the following statement(s) is/are true about webhooks?
Solution
Which of the following statement(s) is/are true regarding javascript?
Solution
Which of the following scenarios are best suited for using Celery tasks?
Solution
Which of the following statements is/are true regarding webhooks and server sent events (SSE)?
Solution
Which of the following is/are the correct ways to achieve the following.
1. Always apply class named “errorClass”,
2. The class named “activeClass” should only be applied when the Vue data variable “isActive” is truthy
1. Always apply class named “errorClass”,
2. The class named “activeClass” should only be applied when the Vue data variable “isActive” is truthy
Solution
Which of the following is/are true about Server-Sent Events (SSE)?
Solution
Which of the following HTTP header(s) can be used to control caching behavior in web applications?
Solution
Which of the following statement(s) is/are true regarding long and short polling?
Solution
Consider the following Vue.js 2 component using CDN.

After entering "Orange" in the input box and clicking the "Add" button, what will be seen in the browser?
After entering "Orange" in the input box and clicking the "Add" button, what will be seen in the browser?
Solution
Consider the following javascript code running on browser

What will be the output in the browser console?
What will be the output in the browser console?
Solution
Solution
Consider the below flask application.

1. First visit
2. Second visit after 2 minutes and 30 seconds
3. Third visit after 1 minute from the second visit
What will be the approximate difference in response times between the first and third requests?
1. First visit
2. Second visit after 2 minutes and 30 seconds
3. Third visit after 1 minute from the second visit
What will be the approximate difference in response times between the first and third requests?
Solution
Consider the below JavaScript program.


What will be the output of the above program?
What will be the output of the above program?
Solution
In a Vue CLI project with Vuex, you have the following configuration:


Solution
Solution
Two requests are given to localhost:5000/compute/10/20 and localhost:5000/compute/5/10 within 60 seconds. What would be the json response from the server respectively?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Which code snippet represents aWebhook receiverimplementation?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Which code snippet represents aPub/Subimplementation?
Solution
Comprehension Passage
Solution
Comprehension Passage
Solution
Shape
Thickness [ / ]
3
All colors