MauryaHub PYQ Practice

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

Application Development - 2 · End Term · Jan 2023 AN

← Course papers · Start practice / exam

This page contains the reliably extracted subset, not the complete original paper.

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 380 MSQ · 2.0 marks

Which of the following statement(s) is/are false regarding javascript language?
A.
Hoisting moves the declaration of arrow functions to the top of their scopes.
B.
All 3 keywords, i.e., “var”, “let” and “const” can be used to declare global variables.
C.
The functions are treated as first class citizens in the language.
D.
Node.js is an example of a javascript engine.

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 statement(s) is/are true about cookies and CORS?
A.
A session cookie expires as soon as the browser is closed.
B.
The CORS mechanism reduces the chances of malicious actions by explicitly saying which URLs can be the originators of data.
C.
A browser sandbox causes any browser based malware to directly affect the user’s system.
D.
All of these

A published solution is not available for this question yet.

Report a correction for Q381

Question 382 MSQ · 2.0 marks

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 Q382

Question 383 MSQ · 2.0 marks

Which of the following statement(s) is/are false about pub/sub messaging?
A.
Publisher has to know about all the subscribers.
B.
Publisher does not have to know about the subscribers.
C.
Communication between publisher and subscribers is asynchronous.
D.
Communication between publishers and subscribers is synchronous.

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 statement(s) is/are false?
A.
In short polling, the server does not respond until the data is available or the request times out.
B.
In long polling, the server does not respond until the data is available or the request times out.
C.
In short polling, the server responds immediately with or without data.
D.
In long polling, the server responds immediately with or without data.

A published solution is not available for this question yet.

Report a correction for Q384

Question 385 MCQ · 3.0 marks

Which of the following shows the correct output if the javascript program written below is executed?
Source diagram or notation
A.
[25, 121, 289]
B.
[25, 121]
C.
25
D.
25 121

A published solution is not available for this question yet.

Report a correction for Q385

Question 386 MCQ · 3.0 marks

Which of the following statements is true in the context of REST?
A.
Both the HTTP request methods, “GET” and “POST” are idempotent.
B.
In general, an HTTP “PUT” request is used to make incremental changes to an existing resource.
C.
A “DELETE” request, that deletes a resource using a unique identifier, is idempotent.
D.
None of these

A published solution is not available for this question yet.

Report a correction for Q386

Question 387 MCQ · 3.0 marks

Which of the following shows the correct output if the javascript program written below is executed?
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 Q387

Question 388 MCQ · 3.0 marks

Which of the following statements is false regarding a message broker?
A.
A message broker allows two servers in a network to directly communicate with each other, without an intermediary.
B.
A message broker makes the network scalable for adding more servers to the network.
C.
A message broker can be used for batch processing of messages.
D.
A message broker is well suited in case of traffic spikes, as messages are retained in the queue until processed.

A published solution is not available for this question yet.

Report a correction for Q388

Question 389 MCQ · 3.0 marks

Which of the following statement(s) is incorrect regarding the prototype in JavaScript?
A.
Every constructor function has a property named ‘prototype’.
B.
Any object created using the new keyword and the constructor function, will inherit from the constructor’s prototype object.
C.
Prototype of an object can be accessed using the ‘__proto__’ property of the object.
D.
The prototype of an object can be accessed using the ‘prototype’ property of the object.

A published solution is not available for this question yet.

Report a correction for Q389

Question 390 MCQ · 3.0 marks

Consider the below application with markup “index.html” and javascript file “app.js”.
Source diagram or notation
Suppose the user clicks on buttons with text “3” and then “4”, what will be rendered inside the “Player” component?
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 Q390

Question 391 MCQ · 3.0 marks

Consider the below application with markup “index.html” and javascript file “app.js”.
Source diagram or notation
A.
Player Not Found
B.
Run: 1000, Matches: 20, Average: 50
C.
Run: 7000, Matches: 100, Average: 70
D.
None of these

A published solution is not available for this question yet.

Report a correction for Q391

Question 392 MCQ · 3.0 marks

Consider the below application with markup “index.html” and javascript file “app.js”.
Source diagram or notation
A.
Player Not Found
B.
Run: 1000, Matches: 20, Average: 50
C.
Run: 7000, Matches: 100, Average: 70
D.
None of these

A published solution is not available for this question yet.

Report a correction for Q392

Question 393 MCQ · 3.0 marks

Consider the below application with markup “index.html” and javascript file “app.js”.
Source diagram or notation
A.
Total Score:100
B.
Match has not yet started.
C.
2 3 4 6 2
D.
Over Not Found

A published solution is not available for this question yet.

Report a correction for Q393

Question 394 MCQ · 3.0 marks

Consider the below application with markup “index.html” and javascript file “app.js”.
Source diagram or notation
A.
Total Score:100
B.
Match has not yet started.
C.
2 3 4 6 2
D.
3 2 5 3 1

A published solution is not available for this question yet.

Report a correction for Q394

Question 395 MCQ · 3.0 marks

Consider the below application with markup “index.html” and javascript file “app.js”.
Source diagram or notation
A.
Total Score:100
B.
Match has not yet started.
C.
2 3 4 6 2
D.
3 2 5 3 1

A published solution is not available for this question yet.

Report a correction for Q395

Question 396 MSQ · 3.0 marks

Which of the following is/are not the correct ways to achieve the following.
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 Q396

Question 397 MSQ · 3.0 marks

Which of the following statement(s) is/are false regarding Vuex?
A.
A Vuex store provides a single source of truth that can drive the application.
B.
It provides a variable named “this.$vuexstore” to allow components to access the store data.
C.
A component cannot have its own local state, if the application uses Vuex.
D.
The mutations and actions are some constructs of a Vuex store.

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 statement(s) is/are false regarding forward and reverse proxy?
A.
A forward proxy is used to protect the server(s) from the outside world.
B.
A reverse proxy can be used to cache the responses, to reuse them for similar subsequent requests.
C.
A load balancer becomes irrelevant, where there is not more than 1 server.
D.
An efficient load balancer must use a round-robin algorithm.

A published solution is not available for this question yet.

Report a correction for Q398

Question 399 MSQ · 3.0 marks

Suppose you are building an application which requires sending emails to all the users stored in the database at regular intervals. Given below are the two approaches to satisfy the requirement.
Source diagram or notation
Choose the correct statement(s).
A.
Approach 1 will take more time than approach 2, if more than 2 celery workers are available.
B.
Approach 2 will take more time than approach 1, if more than 2 celery workers are available.
C.
Both the approaches will take same time (approx), if only 1 celery worker is available.
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(s) is/are correct regarding Vue.js framework?
A.
In Vue 2, the “el” property of the Vue constructor can be used to refer to an HTML element via an ID or a class.
B.
The components of Vue must define “data” property as a function.
C.
A Vue component cannot implement lifecycle hooks (i.e., created, mounted, etc.), if they are already implemented in the Vue instance.
D.
All of these

A published solution is not available for this question yet.

Report a correction for Q400

Question 401 MCQ · 2.0 marks

Which of the following statements is false about VueJS framework?
A.
VueJS is a framework built on top of HTML, CSS and javascript.
B.
VueJS is built on a component based architecture.
C.
It cannot be installed/used via npm (node package manager).
D.
All of these

A published solution is not available for this question yet.

Report a correction for Q401

Question 402 MCQ · 2.0 marks

Which of the following statements is false regarding webhooks?
A.
A webhook should deliver data to other apps, as it happens.
B.
A webhook is primarily meant for a server to server communication.
C.
A webhook typically uses an HTTP POST request to deliver the response.
D.
A webhook and web socket is essentially the same.

A published solution is not available for this question yet.

Report a correction for Q402

Question 403 MCQ · 2.0 marks

Suppose an endpoint in your flask application triggers a celery task, which generates a CSV file named “data.csv” and saves it in the static folder of a flask application. The file generator takes anywhere between 20 and 40 seconds to generate and save the CSV file. The below fetch call is used to get the file generated by the above explained celery task.
Source diagram or notation
Which of the following is the most efficient way to make the above fetch call so that it doesn’t fail and return the desired response?
A.
Use short polling to check the state of the celery task after every 5 seconds, and make the fetch call, when the task succeeds.
B.
Use javascript function “setTimeout” to make the fetch after 41 seconds, which makes sure that the file is generated and saved to the desired location.

A published solution is not available for this question yet.

Report a correction for Q403

Question 404 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 the “index.html” file in a browser. What will be rendered by the browser?
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 Q404

Question 405 MCQ · 4.5 marks

Consider the following javascript program, and predict the output if executed.
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 Q405

Question 406 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 “abhishekabhinavabhi” 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?
A.Source diagram or notation
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 Q406

Question 407 MCQ · 4.5 marks

Which of the following shows the correct output if the javascript program written below is executed?
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 Q407

Question 408 MCQ · 4.5 marks

Consider the below application with markup “index.html” and javascript file “app.js”.
Source diagram or notation
Suppose you open the file “index.html” in a browser. What will be rendered by the browser?
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 Q408

Question 409 MCQ · 4.5 marks

Consider the below application with markup “index.html” and javascript file “app.js”.
Source diagram or notation
Suppose you open the file “index.html” in a browser. What will be rendered inside the slot, by the browser?
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 Q409

Question 410 MCQ · 4.5 marks

Consider the below flask application.
Source diagram or notation
A.
10 seconds
B.
0 seconds
C.
20 seconds
D.
120 Seconds

A published solution is not available for this question yet.

Report a correction for Q410

Question 411 MCQ · 4.5 marks

Consider the below flask application.
Source diagram or notation
A.
10 seconds
B.
0 seconds
C.
20 seconds
D.
120 Seconds       **MLF** **Section Id :** 64065338412 **Section Number :** 15 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 17 **Number of Questions to be attempted :** 17 **Section Marks :** 50 **Display Number Panel :** Yes **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 Q411