Home / Study library / Application Development - 2 / End Term · Jan 2025 Application Development - 2 · End Term · Jan 2025 · AN
Application Development - 2 · End Term · Jan 2025 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
Q121 Q122 Q123 Q124 Q125 Q126 Q127 Q128 Q129 Q130 Q131 Q132 Q133 Q134 Q135 Q136 Q137 Q138 Q139 Q140 Q141 Q142 Q143 Q144 Q145 Q146 Q147 Q148 Q149 Q150 Q151 Q152
Question 121 MCQ · 2.0 marks Which of the following statements is true regarding the "this" keyword in JavaScript?
A. "this" always refers to the function it is declared in.
B. Arrow functions inherit "this" from their enclosing lexical scope.
C. "this" inside a class method always refers to the window object.
A published solution is not available for this question yet.
Report a correction for Q121
Question 122 MCQ · 2.0 marks Which of the following correctly describes the lifecycle of a Vue.js component?
A. beforeCreate -> created -> beforeMount -> mounted -> beforeUpdate ->
updated -> beforeUnmount -> unmounted
B. beforeCreate -> created -> beforeMount -> beforeUpdate -> mounted ->
updated -> beforeUnmount -> unmounted
C. created -> beforeCreate -> beforeMount -> mounted -> updated ->
beforeUnmount -> unmounted
D. created -> beforeCreate -> beforeMount -> mounted -> beforeUnmount ->
updated -> unmounted
A published solution is not available for this question yet.
Report a correction for Q122
Question 123 MCQ · 2.0 marks A published solution is not available for this question yet.
Report a correction for Q123
Question 124 MCQ · 2.0 marks What is the main advantage of using JWT over session-based authentication?
A. JWTs require storing tokens on the server, reducing security risks.
B. JWTs are stateless and do not require server-side storage.
C. JWTs are shorter and more efficient than session IDs.
D. JWTs automatically expire and require no further security measures.
A published solution is not available for this question yet.
Report a correction for Q124
Question 125 MCQ · 2.0 marks Which of the following HTTP methods does SSE use for streaming updates to clients?
A published solution is not available for this question yet.
Report a correction for Q125
Question 126 MCQ · 2.0 marks How does a webhook differ from an API call?
A. A webhook is triggered by an event, while an API call requires a client request.
B. A webhook always returns a response body, while an API call does not.
C. A webhook uses WebSockets for communication, while APIs use REST.
D. A webhook only supports the HTTP GET method.
A published solution is not available for this question yet.
Report a correction for Q126
Question 127 MCQ · 2.0 marks What is the purpose of CORS in web security?
A. To allow browsers to make requests to any domain without restrictions.
B. To prevent the server from making requests to unauthorized origins.
C. To allow a web application to request resources from a different domain
securely.
D. To restrict all incoming requests to the same domain.
A published solution is not available for this question yet.
Report a correction for Q127
Question 128 MCQ · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q128
Question 129 MCQ · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q129
Question 130 MCQ · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q130
Question 131 MCQ · 3.0 marks A. Browser navigates to /random and shows a blank page.
B. Browser navigates to /random but renders nothing.
C. Browser redirects to /home and displays "Home".
D. Error: No matching route.
A published solution is not available for this question yet.
Report a correction for Q131
Question 132 MCQ · 3.0 marks A. The fetchResults method will be called immediately when the component is
created.
B. The fetchResults method will be called only when searchQuery changes.
C. The watch property can detect changes even if the new value is the same as
the old value.
A published solution is not available for this question yet.
Report a correction for Q132
Question 133 MCQ · 3.0 marks Which scenario is best suited for a task queue system like Celery or RabbitMQ?
A. A real-time chat application that requires low-latency message delivery.
B. A weather API that provides instant weather data upon request.
C. A system where a webhook sends an immediate notification to a client when
an event occurs.
D. A system where a user uploads a video, and it needs to be processed
asynchronously.
A published solution is not available for this question yet.
Report a correction for Q133
Question 134 MCQ · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q134
Question 135 MCQ · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q135
Question 136 MCQ · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q136
Question 137 MCQ · 3.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q137
Question 138 MCQ · 4.5 marks E. Error: Action did not resolve
A published solution is not available for this question yet.
Report a correction for Q138
Question 139 MCQ · 4.5 marks A. The client will receive 5 messages, one per second.
B. The client will receive all 5 messages instantly.
C. The client will not receive any messages due to CORS issues.
D. The server will crash because Flask cannot handle SSE.
A published solution is not available for this question yet.
Report a correction for Q139
Question 140 MCQ · 4.5 marks A published solution is not available for this question yet.
Report a correction for Q140
Question 141 MCQ · 4.5 marks A published solution is not available for this question yet.
Report a correction for Q141
Question 142 MCQ · 4.5 marks A. Hello Frontend Hello Frontend
B. Hello VueJS Hello VueJS
C. Hello Frontend Hello Vue JS
D. Hello Frontend Hello Vue JS Hello Frontend Hello Vue JS
A published solution is not available for this question yet.
Report a correction for Q142
Question 143 MSQ · 2.0 marks Which of the following is/are the correct usage of “v-for” directive in VueJS?
A published solution is not available for this question yet.
Report a correction for Q143
Question 144 MSQ · 3.0 marks In a Single Page Application (SPA), what are the benefits of client-side routing over server-side
routing?
A. Faster navigation between pages
B. Less strain on the backend server
C. Improved SEO by default
D. Full-page reloads occur on every navigation
A published solution is not available for this question yet.
Report a correction for Q144
Question 145 MSQ · 3.0 marks In an SSE connection, how does the client handle incoming messages?
A. The client polls the server at regular intervals.
B. The client listens to a WebSocket stream.
C. The client registers an “onmessage” event listener on the EventSource object.
D. The client sends a POST request for each new event.
A published solution is not available for this question yet.
Report a correction for Q145
Question 146 MSQ · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q146
Question 147 NAT · 4.5 marks A published solution is not available for this question yet.
Report a correction for Q147
Question 148 NAT · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q148
Question 149 MCQ · 3.0 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q149
Question 150 MCQ · 4.5 marks A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q150
Question 151 MCQ · 4.5 marks Consider the following Vue app with the Vue Router shown below and answer the given
subquestions.
const Login = { template:
const Profile = { template:
const Unauthorized = { template:
const router = new VueRouter({
routes: [
{ path: '/login', component: Login },
{ path: i » component: Unauthorized },
{ path: ' *, component: Profile }
})
new Vue({
el:
router,
data:{
userRole: '',
isAuthenticated:
},
created() {
this.checkAuthentication() ;
},
methods: {
checkAuthentication() {
const token = localStorage.getItem( ‘token');
-log( )
this.isAuthenticated = !!token;
is.1 t ti ker
if (this.isAuthenticated) {
this.userRole = localStorage.getItem(
- log( this.u
} else {
- log(
this. $router.replace(
What will be rendered on the browser if the application is loaded on the browser for the first time?
C. You are not authorized.
A published solution is not available for this question yet.
Report a correction for Q151
Question 152 MCQ · 3.0 marks Consider the following Vue app with the Vue Router shown below and answer the given
subquestions.
const Login = { template:
const Profile = { template:
const Unauthorized = { template:
const router = new VueRouter({
routes: [
{ path: '/login', component: Login },
{ path: i » component: Unauthorized },
{ path: ' *, component: Profile }
})
new Vue({
el:
router,
data:{
userRole: '',
isAuthenticated:
},
created() {
this.checkAuthentication() ;
},
methods: {
checkAuthentication() {
const token = localStorage.getItem( ‘token');
-log( )
this.isAuthenticated = !!token;
is.1 t ti ker
if (this.isAuthenticated) {
this.userRole = localStorage.getItem(
- log( this.u
} else {
- log(
this. $router.replace(
What will be rendered on the browser for the given value of localStorage?
C. You are not authorized.
D. None of these.
**MLT**
**Section Id :** 64065387637
**Section Number :** 7
**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
**Section Negative Marks :** 0
**Group All Questions :** No
**Enable Mark as Answered Mark for Review and**
No
**Clear Response :**
**Section Maximum Duration :** 0
**Section Minimum Duration :** 0
**Section Time In :** Minutes
**Maximum Instruction Time :** 0
A published solution is not available for this question yet.
Report a correction for Q152