MauryaHub PYQ Practice

Application Development - 2 · Quiz 2 · Jan 2024

Application Development - 2 · Quiz 2 · Jan 2024

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 16 published solutions

Question 173 MCQ · 3.0 marks

Consider the below javascript program.
Source diagram or notation
What will be the output of the program, if executed in a REPL environment?
6406532577646.Source diagram or notation
6406532577647.Source diagram or notation
6406532577648.Source diagram or notation
6406532577649.Source diagram or notation
6406532577650.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q173

Question 174 MCQ · 3.0 marks

Consider the below JavaScript code.
Source diagram or notation
What will be the output of the above program, assuming the value of the variable “some_value” is less than 18?
6406532577651.Source diagram or notation
6406532577652.Source diagram or notation
6406532577653.Source diagram or notation
6406532577654.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q174

Question 175 MCQ · 3.0 marks

Consider the below JavaScript program.
Source diagram or notation
What will be the output of the above program, if executed?
6406532577655.Source diagram or notation
6406532577656.Source diagram or notation
6406532577657.Source diagram or notation
6406532577658.Source diagram or notation
6406532577659.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q175

Question 176 MCQ · 3.0 marks

Consider the following Script embedded in an HTML document.
Source diagram or notation
What will be the output on console, if the HTML document is rendered using a browser?
6406532577688.Source diagram or notation
6406532577689.Source diagram or notation
6406532577690.Source diagram or notation
6406532577691.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q176

Question 177 MCQ · 3.0 marks

Source diagram or notation
6406532577700.Source diagram or notation
6406532577701.Source diagram or notation
6406532577702.Source diagram or notation
6406532577703.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q177

Question 178 MCQ · 2.0 marks

Consider the following JavaScript code snippet.
Source diagram or notation
What will be the values of 'storedUsername', 'removedUsername', and 'clearedStorage' after the execution of the above code snippets?
6406532577692.Source diagram or notation
6406532577693.Source diagram or notation
6406532577694.Source diagram or notation
6406532577695.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q178

Question 179 MCQ · 4.5 marks

Consider the below JavaScript program.
Source diagram or notation
Considering the asynchronous nature of promises in the above JavaScript program, what is the minimum time (in seconds) it will take for the entire execution to complete?
6406532577660.
The program will never end
6406532577661.
0 second
6406532577662.
1 second
6406532577663.
7 seconds
6406532577664.
9 seconds

A published solution is not available for this question yet.

Report a correction for Q179

Question 180 MCQ · 4.5 marks

Consider the following Vue application with markup “index.html” and JavaScript file “app.js”.
Source diagram or notation
Suppose you open “index.html” file in a browser, and type the text “App Dev” in the text box shown (after removing the previous text, if any), and hard refresh the page twice, without clicking anywhere. What will be the value shown in the text box, and the “age” placeholder, respectively?
6406532577712.
MAD_II, admin
6406532577713.
App, Dev
6406532577714.
App, App
6406532577715.
Dev, App

A published solution is not available for this question yet.

Report a correction for Q180

Question 181 MSQ · 2.0 marks

Which of the following statement(s) is/are correct regarding web storage APIs?
6406532577665.
Web Storage APIs provide a way to store key-value pairs persistently on the client side.
6406532577666.
Web Storage APIs include “localStorage” and “sessionStorage”.
6406532577667.
Data stored in “localStorage” is automatically cleared when the browser session ends.
6406532577668.
The “sessionStorage” allows data to persist across browser sessions.

A published solution is not available for this question yet.

Report a correction for Q181

Question 182 MSQ · 2.0 marks

Which of the following is a valid function signature for an action function in Vuex?
6406532577673.Source diagram or notation
6406532577674.Source diagram or notation
6406532577675.Source diagram or notation
6406532577676.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q182

Question 183 MSQ · 2.0 marks

Select the statements that incorrectly describe characteristics or practices related to RESTful APIs.
6406532577683.
Stateless communication
6406532577684.
Use of SOAP for data exchange
6406532577685.
Emphasis on nouns (resources) in URIs
6406532577686.
Strict requirement for XML as the data format
6406532577687.
Utilization of standard HTTP methods

A published solution is not available for this question yet.

Report a correction for Q183

Question 184 MSQ · 3.0 marks

Which of the following statement(s) is/are true regarding Single Page Applications (SPA) and Progressive Web Apps (PWA)?
6406532577677.
SPAs load entire web pages from the server for each user interaction.
6406532577678.
PWAs can be installed on a user's device and accessed from the home screen.
6406532577679.
SPAs often rely on client-side routing to update the content dynamically.
6406532577680.
PWAs always require an internet connection to function.
6406532577681.
SPAs may result in faster user experiences as they avoid full-page reloads.
6406532577682.
PWAs use service workers to enable offline capabilities.

A published solution is not available for this question yet.

Report a correction for Q184

Question 185 MSQ · 3.0 marks

Identify the correct statement(s) about the behavior of promise chains in JavaScript.
6406532577696.
A "finally" block always comes at the end of the promise chain.
6406532577697.
Every "catch" block must always be preceded by a "then" block.
6406532577698.
A promise chain may consist of a number of "then" blocks.
6406532577699.
The "finally" block always gets executed, irrespective of the promise outcome.

A published solution is not available for this question yet.

Report a correction for Q185

Question 186 MSQ · 3.0 marks

Consider the below Vue class binding.
Source diagram or notation
Which of the following statements is/are true, assuming both code 1 and code 2 are part of app object?
6406532577704.
The code snippet 1 will render the div element with class “completed”, if the “completed” property of “classObj” is set to true.
6406532577705.
The code snippet 2 will render the div element with class “completed”, if the data variable “status” is set to true.
6406532577706.
Both the code snippets will render same HTML
6406532577707.
Both the code snippets will render different HTML

A published solution is not available for this question yet.

Report a correction for Q186

Question 187 MSQ · 4.5 marks

Consider the below Vue component template and script definitions that use Vue router.
Source diagram or notation
Assuming that the corresponding routes are properly configured, what does this component structure accomplish?
6406532577669.Source diagram or notation
6406532577670.Source diagram or notation
6406532577671.Source diagram or notation
6406532577672.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q187

Question 188 MSQ · 4.5 marks

Consider the below application with markup “index.html” and JavaScript file “app.js”.
Source diagram or notation
Suppose the application is running on “http://127.0.0.1:8080”, select the correct option(s)?
6406532577708.Source diagram or notation
6406532577709.Source diagram or notation
6406532577710.Source diagram or notation
6406532577711.Source diagram or notation
      **MLT** **Section Id :** 64065353268 **Section Number :** 12 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 12 **Number of Questions to be attempted :** 12 **Section Marks :** 50 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** Yes **Clear Response :** **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Report a correction for Q188