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 developer opens the Node.js REPL and runs the following line:

Why does this fail?
Why does this fail?
Solution
Consider the following javascript code:

The above code is initially loaded on the browser and then the browser is refreshed two times. What will be the final output?
The above code is initially loaded on the browser and then the browser is refreshed two times. What will be the final output?
Solution
Point out the error with the following code that is used to display user data?

Solution
What is the correct output order for the following code?

Solution
Consider the following code:

What happens to
?
What happens to
Solution
Consider the following JavaScript code snippet?

What will be the output of above code on the browser’s console?
What will be the output of above code on the browser’s console?
Solution
Consider the following Vuex store snippets. Which of the following demonstrates thecorrect usage of a mutationas per its definition?
Solution
Suppose the following HTML exists:

Which of the following statements are correct?
Which of the following statements are correct?
Solution
A Vue frontend, a mobile app, and another backend service all call the same Flask API deployed on multiple servers. The team chooses JWT authentication.
Which of the following statements are correct?
Which of the following statements are correct?
Solution
A Vue 2 component does the following:
- loads initial task data from an API,
- starts a timer after the component appears on the page,
- clears that timer before the component is removed.
Which hook choices are appropriate?
- loads initial task data from an API,
- starts a timer after the component appears on the page,
- clears that timer before the component is removed.
Which hook choices are appropriate?
Solution
In a Vue Router app, a developer uses:
-
inside a parent route,
-
,
-
inside a method.
Which statements are correct?
-
-
-
Which statements are correct?
Solution
Fill inCode1, inside a mutation handler, which can be used to reduce the price of each of the products in the state by a certain discount.
app.js:

app.js:
Solution
Consider the following Vuex store and component code.
store.js

Component.vue

After triggering all three methods (
,
and
) one by one, which of the following statements iscorrect?
store.js
Component.vue
After triggering all three methods (
Solution
Read the following component carefully.

What will be logged in the console when this component first loads?
What will be logged in the console when this component first loads?
Solution
Comprehension Passage
Read the following code carefully and answer the given sub questions:
file1: router/index.js

file2: ProfileComponent.vue

file1: router/index.js
file2: ProfileComponent.vue
What should be filled in at Line A to correctly read theusernamefrom the URL?
Solution
Comprehension Passage
Read the following code carefully and answer the given sub questions:
file1: router/index.js

file2: ProfileComponent.vue

file1: router/index.js
file2: ProfileComponent.vue
What should be filled in at Line B to navigate to the Settings page?
Solution
Shape
Thickness [ / ]
3
All colors