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.
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.
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.
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.
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.
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.
Consider the following Vue application with markup “index.html” and javascript file “app.js”.
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.
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 “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.
Consider the following Vue application with markup “index.html” and javascript file “app.js”.
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.
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.
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.
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.
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.
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.
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.
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.