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
In a Celery setup, we use two separate Redis databases:

Which of the following best explains the conceptual difference between the broker and the backend?
Which of the following best explains the conceptual difference between the broker and the backend?
Solution
Consider the following Vuex store:

The
getter is used in a Vue component as shown below:

Now suppose theVuex getter
is removed, while the temperature state continues to be updated through Vuex mutations. Which of the following implementations correctly recreates
in the component so that itautomatically reacts whenever the Vuex
changes?
The
Now suppose theVuex getter
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
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
What is logged to the console after running the following code?

Solution
Consider the following JavaScript code:

What is the order of console output?
What is the order of console output?
Solution
Match each Vue directive with its correct description:

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
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
Comprehension Passage
Consider the following javascript code:

Note: Each sub question runs on its own, starting from the original 'user' object.
Based on the above data, answer the given subquestions.
Note: Each sub question runs on its own, starting from the original 'user' object.
Based on the above data, answer the given subquestions.
What will be logged in the console ?
Solution
Comprehension Passage
Consider the following javascript code:

Note: Each sub question runs on its own, starting from the original 'user' object.
Based on the above data, answer the given subquestions.
Note: Each sub question runs on its own, starting from the original 'user' object.
Based on the above data, answer the given subquestions.
What will be logged 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.
What will be the output order?
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 are correct?
Solution
Comprehension Passage
Read the following Vue 2 component code carefully (using the Options API via CDN) and answer the given sub questions.

If
is accessed three times in a row in the template without price or discount changing in between, how many times does
get logged?
Solution
Comprehension Passage
Read the following Vue 2 component code carefully (using the Options API via CDN) and answer the given sub questions.

If
is changed twice in two separate updates(100 to 120, then 120 to 150 on a later tick), what is the value of
afterward?
Solution
Comprehension Passage
Read the following code carefully and answer the given subquestions. tasks.py:

Called from a view/script:

Checked immediately, right after delay() — worker hasn't processed it yet:

Called separately, after waiting for the worker to finish the task:

Called from a view/script:
Checked immediately, right after delay() — worker hasn't processed it yet:
Called separately, after waiting for the worker to finish the task:
What do the two print statements,print(result)andprint(type(result))in the first code block output?
Solution
Comprehension Passage
Read the following code carefully and answer the given subquestions. tasks.py:

Called from a view/script:

Checked immediately, right after delay() — worker hasn't processed it yet:

Called separately, after waiting for the worker to finish the task:

Called from a view/script:
Checked immediately, right after delay() — worker hasn't processed it yet:
Called separately, after waiting for the worker to finish the task:
What doprint(check.status)(checked immediately) and the laterprint(check.get(timeout=5)) (checked after the worker finishes) output?
Solution
Comprehension Passage
Read the following router and component setup carefully and answer the given sub questions: Router setup:

component's method:

component's method:
What URL does
navigate the browser to?
Solution
Comprehension Passage
Read the following router and component setup carefully and answer the given sub questions: Router setup:

component's method:

component's method:
What URL does
navigate the browser to?
Solution
Comprehension Passage
Read the following router and component setup carefully and answer the given sub questions: Router setup:

component's method:

component's method:
Inside
component, what expression correctly reads the
value from the URL after navigation?
Solution
Shape
Thickness [ / ]
3
All colors