MauryaHub PYQ Practice

Application Development - 2 · End Term · Sep 2022 · AN

Application Development - 2 · End Term · Sep 2022 AN

← 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 / 32 published solutions

Question 309 MCQ · 2.0 marks

Consider the below Vue component and Vuex store definition.
Source diagram or notation
Which of the following is the best suitable definition of the “code” placeholder in the above app (assuming the store is binded with the Vue app, and the mapState is imported appropriately)?
A.
…mapState(['state_1', 'state_2', 'state_3'])
B.
mapState(['state_1', 'state_2', 'state_3'])
C.
Both …mapState(['state_1', 'state_2', 'state_3']) and mapState(['state_1', 'state_2', 'state_3'])
D.
A Vue component cannot access Vuex store state.

A published solution is not available for this question yet.

Report a correction for Q309

Question 310 MCQ · 2.0 marks

Suppose you are writing an application to be used by lakhs of people, which will run a brute force algorithm and gives back the result to the user of the application when ready. Considering this context, arrange the below set of actions/operations to achieve a desirable and practical design. I. Invoke the webhook II. Relieve the worker III. Dispatch a backend job
A.
I, III, II
B.
III, I, II
C.
I, II, III
D.
The polling will be a better design.

A published solution is not available for this question yet.

Report a correction for Q310

Question 311 MCQ · 2.0 marks

Which of the following statements is false regarding caching?
A.
A shared cache is generally suitable for storing the personalized responses.
B.
A private cache is usually tied to a specific client.
C.
The caching helps in improving the performance of a web application.
D.
Caching at browser level provides the least latency, if compared with proxy level.

A published solution is not available for this question yet.

Report a correction for Q311

Question 312 MCQ · 2.0 marks

Suppose you want to store some data on the client, which has to be sent back to the server with every subsequent request. Which of the following is the most suited for this purpose?
A.
Local Storage
B.
Session Storage
C.
Cookie
D.
Any of these can be used

A published solution is not available for this question yet.

Report a correction for Q312

Question 313 MCQ · 2.0 marks

Suppose an application is being loaded from the origin http://origin2.com. Which of the following origins the browser will allow while making a fetch call, by default?
A.
http://origin2.com
B.
http://api.origin2.com
C.
http://origin1.com/api/
D.
All of these

A published solution is not available for this question yet.

Report a correction for Q313

Question 314 MCQ · 3.0 marks

Which of the following shows the correct output, if the below program is executed?
Source diagram or notation
A.
1 3
B.
1 2 3
C.
5 5
D.
5 5 5

A published solution is not available for this question yet.

Report a correction for Q314

Question 315 MCQ · 3.0 marks

If an application is entirely built on the client end using javascript (without a database). Which of the following statements is true?
A.
All the progress will always be lost on the force reload of the page.
B.
All the progress may not necessarily be lost on the force reload of the page.
C.
The application will not allow force reload of the page.
D.
The progress made in a machine can be accessed on another machine.

A published solution is not available for this question yet.

Report a correction for Q315

Question 316 MCQ · 3.0 marks

Suppose a particular user of an application hosted on http://example1.com has delete privilege and URL to delete resource with ID 1 is ‘http://example1.com/delete?id=1’. The user visits a malicious website having an image link with definition “<img src=‘ http://example1.com/delete?id=1’ />”, and the user clicks on the link, which in turn leads to the deletion of the resource without the knowledge of the user. Which of the following correctly describes the above scenario?
A.
Cross Site Scripting
B.
Cross Site Request Forgery
C.
Session Hijacking
D.
None of these

A published solution is not available for this question yet.

Report a correction for Q316

Question 317 MCQ · 3.0 marks

Consider the following javascript program. What will be logged on to console after executing the program?
Source diagram or notation
A.
[]
B.
[‘App Dev I’, ‘App Dev II’]
C.
[‘App Dev II’, ‘App Dev I’]
D.
[‘App Dev I’]

A published solution is not available for this question yet.

Report a correction for Q317

Question 318 MCQ · 3.0 marks

Consider the following javascript code. What will be logged on the console after executing this program?
Source diagram or notation
A.
Name: , City: , Pin:
B.
Name: Mayank, City: Delhi, Pin: 110001
C.
Name: Mayank, City: Delhi, 110001
D.
None of these

A published solution is not available for this question yet.

Report a correction for Q318

Question 319 MCQ · 3.0 marks

Consider the following javascript program. What will be logged on to console after executing this program?
Source diagram or notation
A.
Boiling Water ….
B.
Boiling Water …. Making Coffee
C.
Boiling Water …. Making Tea
D.
Making Coffee Boiling Water ….

A published solution is not available for this question yet.

Report a correction for Q319

Question 320 MCQ · 3.0 marks

Consider the following Vue application with markup “index.html” and javascript file “app.js”.
Source diagram or notation
Suppose the application is running on ‘http://localhost:8080’. What will be the background colour of seat with seatNo 1 and 2 respectively, when the user visits the home page of the application (Assume the default background colour of button to be white)?
A.
Green, Green
B.
Green, White
C.
White, White
D.
White, Green

A published solution is not available for this question yet.

Report a correction for Q320

Question 321 MCQ · 4.5 marks

Consider the following javascript program, and predict the output, if executed in a REPL environment.
Source diagram or notation
A.
This : 39 , Normal : 39
B.
This : undefined , Normal : 39
C.
This : undefined , Normal : 50
D.
This : 39 , Normal : 50

A published solution is not available for this question yet.

Report a correction for Q321

Question 322 MCQ · 4.5 marks

Consider the below javascript program, and predict the output, if executed. Also, what will be the minimum time taken by the program to execute?
Source diagram or notation
A.
Rejected [‘quiz1’] Minimum Time taken: 10 seconds
B.
Rejected [‘quiz1’] Minimum Time taken: 8 seconds
C.
Resolved [‘quiz1’] Minimum Time taken: 8 seconds
D.
Resolved [‘quiz1’] Minimum Time taken: 10 seconds

A published solution is not available for this question yet.

Report a correction for Q322

Question 323 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 “EndTermExam” in the text box shown (after removing the previous text, if any), and hard refresh the page thrice, without clicking anywhere. What will be the value shown in the text box, and the “marks” placeholder, respectively?
A.
AppDev1, 80
B.
AppDev2, 80
C.
AppDev1, 70
D.
AppDev2, 70

A published solution is not available for this question yet.

Report a correction for Q323

Question 324 MCQ · 4.5 marks

Consider the following Vue application with markup “index.html” and javascript file “app.js”.
Source diagram or notation
Suppose the application is running on ‘http://localhost:8080’. If the user clicks on the button with the text “Extra”, and then clicks on the button with the text “Run” thrice. What will be rendered inside the element with ID “total” and “player”, respectively?
A.
Total Run: 32, M.S. Dhoni: 14
B.
Total Run: 28, M.S. Dhoni: 14
C.
Total Run: 32, M.S. Dhoni: 18
D.
Total Run: 28, M.S. Dhoni: 18

A published solution is not available for this question yet.

Report a correction for Q324

Question 325 MCQ · 4.5 marks

Consider the following javascript program, and predict the output if executed.
Source diagram or notation
A.
Checkpoint 4 11 Checkpoint 6 undefined Checkpoint 2 25
B.
Checkpoint 4 11 Checkpoint 6 25 Checkpoint 2 125
C.
Checkpoint 3 5 Checkpoint 4 Checkpoint 6 undefined Checkpoint 2 5
D.
Checkpoint 3 5 Checkpoint 4 Checkpoint 6 NaN Checkpoint 2 5

A published solution is not available for this question yet.

Report a correction for Q325

Question 326 MSQ · 2.0 marks

Which of the following statement(s) is/are false in the context of point-to-point communication and message broker?
A.
In point-to-point communication, the number of connections grow with the order of O(nlogn).
B.
If a central message broker is used, the number of connections grow with the order of O(logn).
C.
If a central message broker is used, the number of connections grow with the order of O(n).
D.
A message broker makes the network more scalable, if compared with point- to-point communication.

A published solution is not available for this question yet.

Report a correction for Q326

Question 327 MSQ · 2.0 marks

Which of the following statement(s) is/are false?
A.
The CSRF protection is not enforced by the flask framework, by default.
B.
The data stored in local storage is synchronized across the devices for a given user.
C.
A flask application returns CORS headers for cross domain javascript requests, by default.
D.
The flask application uses port number 5000, by default.

A published solution is not available for this question yet.

Report a correction for Q327

Question 328 MSQ · 2.0 marks

Which of the following is/are true regarding session cookies?
A.
They get deleted once the user closes the browser.
B.
They will be sent to the origin server with each request, by default.
C.
They will not be sent to the origin server with each request, by default.
D.
All of these

A published solution is not available for this question yet.

Report a correction for Q328

Question 329 MSQ · 3.0 marks

Which of the following statement(s) is/are false regarding javascript language?
A.
JavaScript is a high level programming language.
B.
JavaScript moves the declaration of all the arrow functions to the top of their scope.
C.
The language does not allow the global declaration of user defined functions.
D.
A function can be invoked inside another function in the language.

A published solution is not available for this question yet.

Report a correction for Q329

Question 330 MSQ · 3.0 marks

Consider the below Vue class binding and select the incorrect option(s).
Source diagram or notation
A.
The classes, namely “classA” and “classB” will always be applied to the div element.
B.
The class, namely “classB” will always be applied to the div element.
C.
The class, namely “classA” will only be applied to the div element, if the variable “isClassA” evaluates to true.
D.
The class, namely “classB” will only be applied to the div element, if no variable with name “isClassA” exists.

A published solution is not available for this question yet.

Report a correction for Q330

Question 331 MSQ · 3.0 marks

Which of the following statement(s) is/are true in the context of scaling a web application?
A.
Scaling out is always a preferred choice when the network traffic is growing.
B.
The horizontal scaling will typically clone the application as many times as required, and add a load balancer to maintain uniform traffic across the servers.
C.
The horizontal partitioning splits a given table into multiple tables, with each table having the same structure.
D.
The diagonal scaling refers to cloning the application first, and then scaling up the different servers to meet the requirements.

A published solution is not available for this question yet.

Report a correction for Q331

Question 332 MSQ · 3.0 marks

Which of the following statement(s) is/are true?
A.
A flask application runs in a threaded mode by default.
B.
A fetch API call always returns a promise.
C.
The promise returned by fetch API resolves to an HTTP response status 500, with the “ok” property of the response set to true.
D.
A headless CMS aims to manage both the content and frontend via APIs.

A published solution is not available for this question yet.

Report a correction for Q332

Question 333 MCQ · 3.0 marks

Source diagram or notation
Suppose the application is running on ‘http://localhost:8080’. What will be rendered by the browser inside the div element with ID ‘slot-detail’, when the user visits the website home page for the first time (except the button)?
A.
Slot ID: 1, Slot Status: Booked
B.
Slot ID: 1, Slot Status: Not Booked
C.
Slot ID: 1
D.
Slot Status: Booked

A published solution is not available for this question yet.

Report a correction for Q333

Question 334 MCQ · 3.0 marks

Source diagram or notation
Suppose the application is running on ‘http://localhost:8080’. What will be rendered by the browser inside the div element with ID ‘slot-detail’, when user clicks on the button with the text ‘Book’ 3 times (except the button)?
A.
Slot ID: 1, Slot Status: Booked
B.
Slot ID: 1, Slot Status: Not Booked
C.
Slot ID: 1
D.
Slot Status: Booked

A published solution is not available for this question yet.

Report a correction for Q334

Question 335 MCQ · 3.0 marks

Source diagram or notation
Suppose the application is running on ‘http://localhost:8080’. What will be rendered inside the ‘router-view’ of Booking component when user visits the URL ‘http://127.0.0.1:8080/#/’?
A.
Page not Found
B.
Booked Slots
C.
Unbooked Slots
D.
None of these

A published solution is not available for this question yet.

Report a correction for Q335

Question 336 MCQ · 3.0 marks

Source diagram or notation
What will be rendered inside the ‘router-view’ of Booking component when user visits the URL ‘ http://127.0.0.1:8080/#/unbooked’?
A.
Page not Found
B.
Booked Slots
C.
Unbooked Slots
D.
None of these

A published solution is not available for this question yet.

Report a correction for Q336

Question 337 MCQ · 4.5 marks

Source diagram or notation
Suppose the application is running on ‘http://localhost:8080’, and a user visits the same URL. What will be rendered inside the div element having ID ‘sort’?
A.
19 17
B.
19
C.
17
D.
17 19

A published solution is not available for this question yet.

Report a correction for Q337

Question 338 MCQ · 3.0 marks

Source diagram or notation
Suppose the application is running on ‘http://localhost:8080’, and a user visits the same URL. What will be rendered inside the div element having ID “status”?
A.
1 2
B.
1
C.
2
D.
None of these

A published solution is not available for this question yet.

Report a correction for Q338

Question 339 MCQ · 4.5 marks

Source diagram or notation
Source diagram or notation
Consider the application is running on ‘http://localhost:8080’. Suppose the user visits the URL ‘ http://127.0.0.1:8080/#/slot/true’. What will be rendered by the browser inside the “router-view”?
A.
1. Slot1 2. Slot2
B.
1. Slot2 2. Slot3
C.
1. Slot1
D.
1. Slot2

A published solution is not available for this question yet.

Report a correction for Q339

Question 340 MCQ · 4.5 marks

Source diagram or notation
Source diagram or notation
Suppose the user visits the URL ‘http://127.0.0.1:8080/#/slot/true?offset=1’, what will be rendered inside the ‘router-view’?
A.
1. Slot1 2. Slot2
B.
1. Slot2 2. Slot3
C.
1. Slot1
D.
1. Slot2       **MLF** **Section Id :** 64065329428 **Section Number :** 12 **Section type :** Online

A published solution is not available for this question yet.

Report a correction for Q340