MauryaHub PYQ Practice

Application Development - 2 · End Term · May 2023 · AN

Application Development - 2 · End Term · May 2023 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 369 MCQ · 3.0 marks

Consider the below HTML document.
Source diagram or notation
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?
A.
Cell Clicked !! Table Clicked !!
B.
Table Clicked !! Cell Clicked !!
C.
Cell Clicked !!
D.
Table Clicked !!

A published solution is not available for this question yet.

Report a correction for Q369

Question 370 MCQ · 3.0 marks

Consider the below HTML document.
Source diagram or notation
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?
A.
Cell Clicked !! Table Clicked !!
B.
Table Clicked !! Cell Clicked !!
C.
Cell Clicked !!
D.
Table Clicked !!

A published solution is not available for this question yet.

Report a correction for Q370

Question 371 MCQ · 3.0 marks

Consider the following JavaScript program, and predict the output if executed.
Source diagram or notation
A.
Function Invoked !! 1
B.
Function Invoked !! 2
C.
Function Invoked !! 3
D.
The program will cause an infinite loop and keep printing the message “Function Invoked !!”

A published solution is not available for this question yet.

Report a correction for Q371

Question 372 MCQ · 3.0 marks

Match the Vue directives / constructs with their function.
Source diagram or notation
A.
1-A, 2-B, 3-C, 4-D
B.
1-C, 2-B, 3-D, 4-A
C.
1-C, 2-D, 3-A, 4-B
D.
1-C, 2-B, 3-A, 4-D

A published solution is not available for this question yet.

Report a correction for Q372

Question 373 MCQ · 3.0 marks

Consider the below Vue application with markup file “index.html” and javascript file “app.js”.
Source diagram or notation
Source diagram or notation
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?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q373

Question 374 MCQ · 3.0 marks

Consider the below Vue application with markup file “index.html” and javascript file “app.js”.
Source diagram or notation
Source diagram or notation
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?
A.
Hello First Component !!
B.
Hello Second Component !!
C.
404
D.
Blank Page

A published solution is not available for this question yet.

Report a correction for Q374

Question 375 MCQ · 3.0 marks

Consider the below javascript program, and predict the output, if executed.
Source diagram or notation
A.
Promise Resolved : Promise is resolved Value received from previous block : undefined In Finally block : undefined Value received from previous block : 39
B.
Promise Resolved : Promise is rejected Value received from previous block : undefined In Finally block : 34 Value received from previous block : 39
C.
Promise Resolved : Promise is rejected Value received from previous block : undefined In Finally block : undefined Value received from previous block : 34
D.
Promise Rejected : Promise is resolved Value received from previous block : undefined In Finally block : undefined Value received from previous block : 34

A published solution is not available for this question yet.

Report a correction for Q375

Question 376 MCQ · 3.0 marks

Which of the following statements is true regarding long polling?
A.
The server does not close the connection until it has a message to send.
B.
The server sends the response immediately, even if the requested data is not available.
C.
The server will always close the connection if the response data is not available.
D.
None of these.

A published solution is not available for this question yet.

Report a correction for Q376

Question 377 MCQ · 3.0 marks

Consider the following flask application.
Source diagram or notation
A.
50 Seconds
B.
60 Seconds
C.
0 Seconds
D.
None of these

A published solution is not available for this question yet.

Report a correction for Q377

Question 378 MCQ · 3.0 marks

What will be the output of the following javascript code.
Source diagram or notation
A.
Not Promoted
B.
Promoted
C.
Not Promoted Job Done
D.
Promoted Job Done

A published solution is not available for this question yet.

Report a correction for Q378

Question 379 MCQ · 3.0 marks

Consider the below Vue application with markup file “index.html” and javascript file “app.js”.
Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q379

Question 380 MCQ · 3.0 marks

Consider the below Vue application with markup file “index.html” and javascript file “app.js”.
Source diagram or notation
allstudents() { inn this. students. filter((std) std.id % 2 == student() { urn Students .data().students.find( (std) t std.id == (this.id %5) +1 }) 1, },
Source diagram or notation
A.
Name: std1, Course: mad1
B.
Name: std2, Course: mad2
C.
Name: std3, Course: mad1
D.
Not Found

A published solution is not available for this question yet.

Report a correction for Q380

Question 381 MSQ · 2.0 marks

Which of the following is/are not the example(s) of ephemeral state?
A.
Currently selected tab/page in a multi page/tab document
B.
User Preferences
C.
Loading Icons
D.
Shopping Cart

A published solution is not available for this question yet.

Report a correction for Q381

Question 382 MSQ · 2.0 marks

Which of the following statement(s) is/are true in general?
A.
As an application developer, it is not possible to hide javascript from the user.
B.
“Denail of Service” is an attack that injects malicious client side scripts.
C.
CORS is a mechanism used to control and manage cross-origin requests in a web application.
D.
The terms “privacy” and “security” are the same when it comes to web applications.

A published solution is not available for this question yet.

Report a correction for Q382

Question 383 MSQ · 2.0 marks

Which of the following statement(s) is/are correct regarding the execution context in JavaScript?
A.
All the code that is not inside any function is run inside Global execution context.
B.
A global execution context is created when a function is called.
C.
A function execution context is created when the function is called.
D.
All of these

A published solution is not available for this question yet.

Report a correction for Q383

Question 384 MSQ · 2.0 marks

Which of the following statements is/are correct regarding the prototype in javascript?
A.
Prototype is used by objects to inherit features.
B.
Prototype of an object can be null.
C.
Inheritance is not possible in JavaScript.
D.
Every object may not have a prototype.

A published solution is not available for this question yet.

Report a correction for Q384

Question 385 MSQ · 2.0 marks

Which of the following statements is/are correct?
A.
Caching can reduce the number of calls to the database
B.
CDN is a group of servers that cache content
C.
Caching can only be done at the browser level
D.
All of these

A published solution is not available for this question yet.

Report a correction for Q385

Question 386 MSQ · 2.0 marks

Which of the following statements is/are true regarding the celery in python?
A.
Celery stores the result of a task in a result backend.
B.
Celery typically runs the tasks asynchronously.
C.
Celery beat is used to schedule tasks.
D.
None of these.

A published solution is not available for this question yet.

Report a correction for Q386

Question 387 MCQ · 2.0 marks

Which of the following statements is false regarding async and await?
A.
The “await” can be used inside any function.
B.
The “await” keyword is typically used to wait for a promise and get its fulfilment value.
C.
The “await” keyword pauses the execution of code of the async function till the promise is in pending state, and executes the code outside the function, in the meantime.
D.
The “await” can only be used inside an async function, except browser console.

A published solution is not available for this question yet.

Report a correction for Q387

Question 388 MCQ · 2.0 marks

Which of the following statements is false regarding HTTP and fetch API?
A.
A fetch call is capable of sending image data.
B.
The “Accept” HTTP header is used by HTTP clients to tell the server which type of content they expect/prefer as response.
C.
The HTTP headers “Accept” and “Content-Type” are essentially the same.
D.
A fetch call allows a developer to add custom headers in the request.

A published solution is not available for this question yet.

Report a correction for Q388

Question 389 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 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?
A.
Text Box: DefaultDefault age Placeholder: Default
B.
Text Box: DefaultDefaultDefaultDefault age Placeholder: Default
C.
Text Box: DefaultDefaultDefaultDefault age Placeholder: [ "App", "Dev", "II" ]
D.
Text Box: DefaultDefault age Placeholder: [ "App", "Dev", "II" ]

A published solution is not available for this question yet.

Report a correction for Q389

Question 390 MCQ · 4.5 marks

Consider the below flask app, and an HTML file named “index.html”.
Source diagram or notation
Source diagram or notation
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?
A.
20 seconds
B.
30 seconds
C.
10 seconds
D.
50 seconds

A published solution is not available for this question yet.

Report a correction for Q390

Question 391 MCQ · 4.5 marks

Consider the flask application.
Source diagram or notation
A.
30 Seconds
B.
40 Seconds
C.
0 Seconds
D.
None of these

A published solution is not available for this question yet.

Report a correction for Q391

Question 392 MCQ · 4.5 marks

Consider the below Vue application with markup file “index.html” and javascript file “app.js”.
Source diagram or notation
Source diagram or notation
A.
On the circle
B.
Not on the circle
C.
true
D.
False

A published solution is not available for this question yet.

Report a correction for Q392

Question 393 MCQ · 4.5 marks

Consider the below Vue application with markup file “index.html” and javascript file “app.js”.
Source diagram or notation
t NotFound Students allstudents() { r this.students.filter((std) = std.id % 2 == 1 n Student ‘L | =e student() { ' Students .data().students.find((std) std.id == (this.id % 5) +1 ») }, },
Source diagram or notation
A.
Name: std1, Course: mad1
B.
Name: std2, Course: mad2
C.
std1 std3
D.
std1 std2 std3

A published solution is not available for this question yet.

Report a correction for Q393

Question 394 MCQ · 4.5 marks

Consider the below Vue application with markup file “index.html” and javascript file “app.js”.
Source diagram or notation
NotFound Students allstudents() { r t -Students.filter((std) => { n std.id % 2 == 1 )) }, hb nst Student = { > ['id'], puted: { student() { 1 Students .data() .students .find( (std) std.id == (t itl Sep oR ek ») oa 1b
Source diagram or notation
A.
Name: std1, Course: mad1
B.
Name: std2, Course: mad2
C.
Name: std3, Course: mad1
D.
std1 std2 std3

A published solution is not available for this question yet.

Report a correction for Q394

Question 395 MSQ · 4.5 marks

Consider the below Vue component and a Vuex store implementation.
Source diagram or notation
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”?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q395

Question 396 MSQ · 4.5 marks

Consider the given 2 implementations.
Source diagram or notation
Source diagram or notation
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)?
A.
Approach 1 will finish the task in less time than approach 2.
B.
Approach 2 will finish the task in less time than approach 1.
C.
Both the approaches are comparable.
D.
Both the approaches will be comparable if there is only 1 worker available.

A published solution is not available for this question yet.

Report a correction for Q396

Question 397 MSQ · 3.0 marks

Which of the following statement(s) is/are true regarding flask_caching and caching in general?
A.
The cache decorator does not include the function parameters in the cache key.
B.
The memoize decorator does not include the function parameters in the cache key.
C.
The requests without request bodies are generally not cacheable.
D.
Hard refreshing a web page clears the browser cache for that specific web page.

A published solution is not available for this question yet.

Report a correction for Q397

Question 398 MSQ · 3.0 marks

Which of the following statements is/are true?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q398

Question 399 MSQ · 3.0 marks

Source diagram or notation
A.
Caching all the players of a country on a backend server.
B.
Caching all the players of a country in the user's browser.
C.
Caching will not improve the performance.
D.
None of these.

A published solution is not available for this question yet.

Report a correction for Q399

Question 400 MSQ · 3.0 marks

Which of the following statement is/are true in context of lighthouse?
A.
“First contentful paint” for a webpage is the size of the smallest visible element on a webpage.
B.
“First contentful paint” for a webpage is the time the browser takes to paint the first visible content on the webpage.
C.
“Largest contentful paint” for a webpage is the time the browser takes to paint the largest visible content on the webpage.
D.
“Largest contentfull paint” for a webpage is the size of the largest visible content on the webpage.       **MLF** **Section Id :** 64065341318 **Section Number :** 15 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 18 **Number of Questions to be attempted :** 18 **Section Marks :** 50 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** Yes

A published solution is not available for this question yet.

Report a correction for Q400