Home / Study library / Application Development - 2 / End Term · Jan 2023 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
Q380 Q381 Q382 Q383 Q384 Q385 Q386 Q387 Q388 Q389 Q390 Q391 Q392 Q393 Q394 Q395 Q396 Q397 Q398 Q399 Q400 Q401 Q402 Q403 Q404 Q405 Q406 Q407 Q408 Q409 Q410 Q411
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.
A published solution is not available for this question yet.
Report a correction for Q381
Question 382 MSQ · 2.0 marks A. B. C. D. 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?
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.
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?
A. B. C. D. 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”.
Suppose the user clicks on buttons with text “3” and then “4”, what will be rendered inside the
“Player” component?
A. B. C. D. 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”.
B. Run: 1000, Matches: 20, Average: 50
C. Run: 7000, Matches: 100, Average: 70
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”.
B. Run: 1000, Matches: 20, Average: 50
C. Run: 7000, Matches: 100, Average: 70
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”.
B. Match has not yet started.
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”.
B. Match has not yet started.
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”.
B. Match has not yet started.
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.
A. B. C. D. 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.
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.
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.
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).
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.
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”.
Suppose you open the “index.html” file in a browser. What will be rendered by the browser?
A. B. C. D. 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.
A. B. C. D. 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”.
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.
B. C. D. 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?
A. B. C. D. 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”.
Suppose you open the file “index.html” in a browser. What will be rendered by the browser?
A. B. C. D. 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”.
Suppose you open the file “index.html” in a browser. What will be rendered inside the slot, by the
browser?
A. B. C. D. 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.
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.
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