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)
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)
Solution
A JWT token contains three parts:
. Which of the following best explains the relationship between the header and the signature in JWT authentication?
Solution
A news platform wants to send a morning digest email to all subscribers every day at 7 AM. Sweta sets up the beat schedule, starts Redis and Celery Beat, and then claims:"The Worker is optional here. Beat handles the scheduling and the execution of the task, so we do not need a separate Worker process."
Is Sweta's claim correct? Choose the best answer.
Is Sweta's claim correct? Choose the best answer.
Solution
A startup is building a food delivery app. The customer-facing screen shows live order status updates:"Order Placed → Preparing → Out for Delivery → Delivered".
Each stage is triggered by the restaurant or the delivery rider updating the status on their end. The customer's screen should reflect these changes in real time without refreshing the page.
Two developers debate about the right technology:
Developer A says: "Let's use Server-Sent Events. It's the right fit here."
Developer B says: "No, we must use WebSockets. SSE won't work."
Who is correct, and why?
Each stage is triggered by the restaurant or the delivery rider updating the status on their end. The customer's screen should reflect these changes in real time without refreshing the page.
Two developers debate about the right technology:
Developer A says: "Let's use Server-Sent Events. It's the right fit here."
Developer B says: "No, we must use WebSockets. SSE won't work."
Who is correct, and why?
Solution
Consider the following
and JavaScript
for a Vue application:
File: index.html

File: app.js


Suppose the application is running on
, and the user visits the URL:

What will be rendered by the browser?
[NOTE:
is divided in two images, consider them as one file content.]
File: index.html
File: app.js
Suppose the application is running on
What will be rendered by the browser?
[NOTE:
Solution
Read the following component code carefully.
file: script.js

file:index.html

Select all statements that correctly describe the console output:
file: script.js
file:index.html
Select all statements that correctly describe the console output:
Solution
A Vue 2 application fetches a list of courses from an API and wants to display them in the template.

Assume the API returns:

Complete the missing code so that all course names are rendered correctly. Which of the following code snippets can correctly replace
?
Assume the API returns:
Complete the missing code so that all course names are rendered correctly. Which of the following code snippets can correctly replace
Solution
Consider the following Flask JWT code:

A client first accesses
and then tries to access
. Which of the following statements are correct?
A client first accesses
Solution
Given the following code running in the browser, select all the statements that are
about its output:


Solution
Consider the following code usingflask_jwt_extended:

Which of the following statements are correct? (Select all that apply)
Which of the following statements are correct? (Select all that apply)
Solution
Pratham builds a Flask route that generates a PDF report and sends it to the user via email, all inside the route handler without using Celery. A tester notices that the browser takes about 12 seconds to respond, and during that time other users are unable to use the app normally. Which of the following correctly explain this behaviour and what Celery would change?
Solution
Which of the following is/are the advantage(s) of client-side storage?
Solution
Which of the following are valid capabilities of Lighthouse while analyzing a website?
Solution
Given the following code, select all the statements that areTRUEabout its execution if the code is run in a browser environment.

Solution
A team builds an internal warehouse dashboard where multiple managers, each on a different computer, need to receive live low-stock alerts from the server in real time. They decide to use Flask-SSE with Redis.
Which of the following best explains Redis's role in a Flask-SSE setup?
Which of the following best explains Redis's role in a Flask-SSE setup?
Solution
Match the testing concept inColumn Iwith the most appropriate description inColumn II.

Solution
Match the performance metric inColumn Iwith the most appropriate description inColumn II.

Solution
What is the value ofresultafter running the following code?

Solution
A developer has just created a new Vue 2 project using Vue CLI and the following package.json was generated.
package.json

The developer wants to view the app in the browser locally for development. They run the following command:
bash:

Which of the following best describes what happens and what the developer should have run instead?
package.json
The developer wants to view the app in the browser locally for development. They run the following command:
bash:
Which of the following best describes what happens and what the developer should have run instead?
Solution
Consider the following JavaScript code:

What will be output on the browser’s console?
What will be output on the browser’s console?
Solution
What is logged to the console after running the following code?

Solution
A developer runs the following code in Tab 1 of a browser, then opens the same website in a new Tab 2 (not a duplicate, but a fresh tab typed into the address bar).

Which of the following statements correctly describes what happens in Tab 2?
Which of the following statements correctly describes what happens in Tab 2?
Solution
Comprehension Passage
Consider the following Vue 2 + Vuex application:



Note: All three image above are of one html.
Based on the above data, answer the given subquestions.
Note: All three image above are of one html.
Based on the above data, answer the given subquestions.
What will be displayed after clicking theIncrease Temperaturebutton once?
Solution
Comprehension Passage
Consider the following Vue 2 + Vuex application:



Note: All three image above are of one html.
Based on the above data, answer the given subquestions.
Note: All three image above are of one html.
Based on the above data, answer the given subquestions.
Why does the watcher ontemperatureexecute after clicking the button?
Solution
Comprehension Passage
Consider the following JavaScript code:

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
What will be printed in the console?
Solution
Comprehension Passage
Consider the following JavaScript code:

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Which of the following statements correctly explain the behaviour of the code?
Solution
Comprehension Passage
Read the following Vue 2 component code carefully and answer the given subquestions: index.html

What text appears on the button when the app first renders?
Solution
Comprehension Passage
Read the following Vue 2 component code carefully and answer the given subquestions: index.html

After the button is clicked once, what is the value of log in the parent?
Solution
Comprehension Passage
Read the following Vuex setup carefully and answer the given subquestions: store.js

component

component
Inside
, what values are logged by the two
statements, immediately after commit and dispatch are called (before the 1-second timeout completes)?
Solution
Comprehension Passage
Read the following Vuex setup carefully and answer the given subquestions: store.js

component

component
Which statement correctly describes why
is defined as a
while
is defined as an
?
Solution
Comprehension Passage
Read the following code carefully and answer the given subquestions:

Select all statements that are TRUE about the output:
Solution
Comprehension Passage
Read the following code carefully and answer the given subquestions:

Select all statements that are TRUE about the output :
Solution
Shape
Thickness [ / ]
3
All colors