Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL : MODERN APPLICATION DEVELOPMENT 2 (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
Consider the below HTML document.

Suppose you open the “index.html” file in a browser, and click on the table cell with the text “Pihu”. Which of the following shows the correct sequence of output?
Suppose you open the “index.html” file in a browser, and click on the table cell with the text “Pihu”. Which of the following shows the correct sequence of output?
Solution
Consider the below HTML document.

Suppose you open the “index.html” file in a browser, and click on the table cell with the text “Pihu”. Which of the following shows the correct sequence of output?
Suppose you open the “index.html” file in a browser, and click on the table cell with the text “Pihu”. Which of the following shows the correct sequence of output?
Solution
Consider the following JavaScript program, and predict the output if executed.

Solution
Match the Vue directives / constructs with their function.

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


Suppose the application is deployed under a subdirectory named “/myapp/” of a domain named “https://appdev2-may2023.com”, and you want to navigate to a page that renders “Hello First Component !!”. What should be the correct URL to get the desired output?
Suppose the application is deployed under a subdirectory named “/myapp/” of a domain named “https://appdev2-may2023.com”, and you want to navigate to a page that renders “Hello First Component !!”. What should be the correct URL to get the desired output?
Solution
Consider the below Vue application with markup file “index.html” and javascript file “app.js”.


Suppose you open the “index.html” file in a browser, and click on the link with the text “Home”. What will be rendered by the browser except the router links in the navigation menu?
Suppose you open the “index.html” file in a browser, and click on the link with the text “Home”. What will be rendered by the browser except the router links in the navigation menu?
Solution
Consider the below javascript program, and predict the output, if executed.

Solution
Which of the following statements is true regarding long polling?
Solution
Consider the following flask application.

Solution
What will be the output of the following javascript code.

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

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



Solution
Which of the following is/are not the example(s) of ephemeral state?
Solution
Which of the following statement(s) is/are true in general?
Solution
Which of the following statement(s) is/are correct regarding the execution context in JavaScript?
Solution
Which of the following statements is/are correct regarding the prototype in javascript?
Solution
Which of the following statements is/are correct?
Solution
Which of the following statements is/are true regarding the celery in python?
Solution
Which of the following statements is false regarding async and await?
Solution
Which of the following statements is false regarding HTTP and fetch API?
Solution
Consider the following Vue application with markup “index.html” and javascript file “app.js”.

Suppose you open “index.html” file in a browser, and type the text “App Dev II” in the text box shown (after removing the previous text, if any), and hard refresh the page once, without clicking anywhere. What will be the value shown in the text box, and the “age” placeholder, respectively?
Suppose you open “index.html” file in a browser, and type the text “App Dev II” in the text box shown (after removing the previous text, if any), and hard refresh the page once, without clicking anywhere. What will be the value shown in the text box, and the “age” placeholder, respectively?
Solution
Consider the below flask app, and an HTML file named “index.html”.


Suppose you open the “index.html” in a browser. What will be the approximate time taken by the second fetch call (i.e., "http://127.0.0.1:5000/endpoint2") to complete and log the data on the console?
Suppose you open the “index.html” in a browser. What will be the approximate time taken by the second fetch call (i.e., "http://127.0.0.1:5000/endpoint2") to complete and log the data on the console?
Solution
Consider the flask application.

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


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



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



Solution
Consider the below Vue component and a Vuex store implementation.

You are supposed to invoke the mutation function “update_total_cost” from the method named “update_store_cost” of the Vue component “product”. The “update_total_cost” mutation function should update the store data variable “total_cost” with an appropriate value. The cost is the product of “count” and “price” parameters of the function “update_store_cost”. Assume that both these parameters are of Numeric type, and need not be typecasted.
Which of the following is/are the possible replacements for “placeholder1” and “placeholder2”?
You are supposed to invoke the mutation function “update_total_cost” from the method named “update_store_cost” of the Vue component “product”. The “update_total_cost” mutation function should update the store data variable “total_cost” with an appropriate value. The cost is the product of “count” and “price” parameters of the function “update_store_cost”. Assume that both these parameters are of Numeric type, and need not be typecasted.
Which of the following is/are the possible replacements for “placeholder1” and “placeholder2”?
Solution
Consider the given 2 implementations.


Suppose there are currently 1000 users in the database, and the application is supposed to generate 1000 HTML reports. Which of the following statement(s) is/are true (assuming there are more than 1 worker available in the celery system)?
Suppose there are currently 1000 users in the database, and the application is supposed to generate 1000 HTML reports. Which of the following statement(s) is/are true (assuming there are more than 1 worker available in the celery system)?
Solution
Which of the following statement(s) is/are true regarding flask_caching and caching in general?
Solution
Which of the following statements is/are true?
Solution
Solution
Which of the following statement is/are true in context of lighthouse?
Solution
Shape
Thickness [ / ]
3
All colors