Home / Study library / Application Development - 2 / End Term · Jan 2026 Application Development - 2 · End Term · Jan 2026 · AN
Application Development - 2 · End Term · Jan 2026 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
Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 Q19 Q20 Q21 Q22 Q23 Q24 Q25 Q26 Q27 Q28 Q29 Q30 Q31 Q32 Q33
Question 2 MCQ · 2.0 marks Which of the following statements is true regarding the "this" keyword in JavaScript?
A. Arrow functions do not have their own "this" and inherit it from the
surrounding scope.
B. "this" in an arrow function refers to the global object.
C. "this" inside a regular function refers to the object that owns the function.
D. "this" always points to the window object in browser environments.
A published solution is not available for this question yet.
Report a correction for Q2
Question 3 MCQ · 2.0 marks Consider the below JavaScript program.
What will be the output of the above program?
A published solution is not available for this question yet.
Report a correction for Q3
Question 4 MCQ · 2.0 marks What is the main advantage of using JWT over session-based authentication?
A. JWTs are stateless and eliminate the need for server-side session storage.
B. JWTs require server-side storage for each session.
C. JWTs are longer and contain more data than session IDs.
D. JWTs automatically handle token expiration without additional logic.
A published solution is not available for this question yet.
Report a correction for Q4
Question 5 MCQ · 2.0 marks Which of the following HTTP methods does WebSocket use for initial handshake?
A published solution is not available for this question yet.
Report a correction for Q5
Question 6 MCQ · 2.0 marks You are creating a cricket analytics app. The file **battingStats.js** exports:
In **app.js**, which import statement correctly imports both strikeRate and playerName? (Assume
both js files are in the same folder.)
A. import strikeRate, playerName from "./battingStats.js";
B. import { strikeRate, playerName } from "./battingStats.js";
C. import * as stats from "./battingStats.js";
D. require("./battingStats.js");
A published solution is not available for this question yet.
Report a correction for Q6
Question 7 MCQ · 2.0 marks A JWT is structured as **"header.payload.signature"**. In Flask-JWT-Extended, what does the
**payload** section contain?
A. Encryption keys used to secure the token
B. User claims such as identity and expiration time
C. The signing algorithm details
D. The token signature hash
A published solution is not available for this question yet.
Report a correction for Q7
Question 8 MCQ · 3.0 marks Consider the below JavaScript program.
What will be the output of the above program?
A published solution is not available for this question yet.
Report a correction for Q8
Question 9 MCQ · 3.0 marks Consider the below Vuex store configuration:
If the addItemAsync action is dispatched with the item 'Vue', what will be the state of items **after 2**
**seconds**?
A. ['React', 'Angular', 'Vue']
A published solution is not available for this question yet.
Report a correction for Q9
Question 10 MCQ · 3.0 marks Consider the below Vue app.
What happens when the user navigates to an undefined route like "/unknown"?
A. Browser redirects to /contact and displays "Contact".
B. Browser navigates to /unknown and shows a blank page.
C. Browser navigates to /unknown but renders nothing.
D. Error: No matching route.
A published solution is not available for this question yet.
Report a correction for Q10
Question 11 MCQ · 3.0 marks What will be the output of the following JavaScript code?
A. undefined, number, false, false
B. undefined, NaN, true, true
C. undefined, number, true, false
D. undefined, NaN, false, false
A published solution is not available for this question yet.
Report a correction for Q11
Question 12 MCQ · 3.0 marks Consider the following JavaScript program:
What will be the output of the above program on a browser's console?
A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q12
Question 13 MCQ · 3.0 marks Consider the following JavaScript program:
What will be the output of the above program?
A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q13
Question 14 MCQ · 3.0 marks What happens when this Flask caching code runs?
If requests for IDs 1, 2, 1 are made within 3 minutes, what's the total response time?
A published solution is not available for this question yet.
Report a correction for Q14
Question 15 MCQ · 3.0 marks Consider the following JavaScript program:
What will be printed in the console when the code runs?
A published solution is not available for this question yet.
Report a correction for Q15
Question 16 MCQ · 3.0 marks Match the Vue directive with its functionality:
A published solution is not available for this question yet.
Report a correction for Q16
Question 17 MSQ · 2.0 marks In a Single Page Application (SPA), what are the benefits of client-side routing over server-side
routing?
A. Seamless page transitions without full reloads
B. Reduced load on the backend server
C. Slower navigation between pages
D. Better SEO performance by default
A published solution is not available for this question yet.
Report a correction for Q17
Question 18 MSQ · 2.0 marks Which of the following is/are the correct statement?
A. Cookie size can impact the website performance.
B. Cookie size does not affect performance in any practical/meaningful sense.
C. A request to static.example.com will include cookies set for example.com.
D. A request to static.example.com will not include cookies set for example.com.
A published solution is not available for this question yet.
Report a correction for Q18
Question 19 MCQ · 4.5 marks Consider the following Vue application with markup index.html and JavaScript file app.js.
File: index.html
File: script.js
Suppose the application is running on http://127.0.0.1:8080. 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 Q19
Question 20 MCQ · 4.5 marks Consider the following endpoints created with a working setup of flask-security and flask-
sqlalchemy.
Three requests are made to this application:
1.GET /api/free (no authentication headers)
2.GET /api/private (no authentication headers)
3.GET /api/adminonly with valid authentication token but user has role 'user' (not 'admin')
What will be the response status codes for these requests, respectively?
A published solution is not available for this question yet.
Report a correction for Q20
Question 21 MCQ · 4.5 marks Consider the following code snippet running in a browser.
What will be the output on the console?
A published solution is not available for this question yet.
Report a correction for Q21
Question 22 MCQ · 4.5 marks Consider the following code snippet running on a browser.
What is the output on the console?
D. undefined undefined undefined
A published solution is not available for this question yet.
Report a correction for Q22
Question 23 MCQ · 4.5 marks A student is preparing travel gear and uses Vue 2 with Vuex to track packed items. The application
below is incomplete:
Which of the following correctly fills **Line X** and **Line Y** so the app works?
A. B. C. D. A published solution is not available for this question yet.
Report a correction for Q23
Question 24 MCQ · 4.5 marks Consider the flask application **app.py** and an HTML file **index.html**:
app.py:
index.html:
If a user visits **index.html** at **10:10:10 AM**, what will be logged in the **console**?
A published solution is not available for this question yet.
Report a correction for Q24
Question 25 MSQ · 3.0 marks Consider the following Flask JWT code:
A request is made to **/login** with **{ "username": "Jassi" }** and then **/profile** is accessed.
Which statements are correct?
A. **/profile** returns **"Welcome Jassi"** only if a valid JWT token is provided in the
Authorization header
B. If no token is provided, **/profile** returns an unauthorized error
C. The JWT token must be included in the POST body to access **/profile**
A published solution is not available for this question yet.
Report a correction for Q25
Question 26 MSQ · 3.0 marks Riya uses Git and performs these steps:
• Creates a new branch and switches to it
• Stages changes for commit
• Commits the changes with a message
• Pushes the branch to remote
Which commands correctly match these operations?
A. **git checkout -b feature-branch**
C. **git commit -m "Initial commit"**
D. **git push origin feature-branch**
E. **git branch feature-branch && git checkout main**
F. **git push feature-branch origin**
A published solution is not available for this question yet.
Report a correction for Q26
Question 27 MSQ · 3.0 marks Two students use a Vue.js app for course content.
• The sidebar appears immediately when the page loads
• The Assignments section takes a while to appear after clicking
The component is:
Which statement is/are explaining the delay?
A. The sidebar is likely part of a parent component that already rendered before
the API call
B. The Assignments component must wait for the API response before showing
data
C. Vue blocks all components until API calls finish
D. The delay happens because the data is loaded asynchronously after
component creation
A published solution is not available for this question yet.
Report a correction for Q27
Question 28 MSQ · 3.0 marks Which of the following statement(s) is/are true about GraphQL?
A. Mutations in GraphQL can be used to change the underlying data store.
B. GraphQL services are created by defining types and fields of those types, then
providing functions for each field.
C. GraphQL can only fetch data from a single source.
D. GraphQL allows only GET operations.
A published solution is not available for this question yet.
Report a correction for Q28
Question 29 MCQ · 3.0 marks Consider the following Vue.js application:
Based on the above data, answer the given subquestions.
How many times will **"computed run"** be logged during the initial render?
C. Many times because of the loop
D. Only after user interaction
A published solution is not available for this question yet.
Report a correction for Q29
Question 30 MCQ · 3.0 marks Consider the following Vue.js application:
Based on the above data, answer the given subquestions.
If **calculate()** changes data like:
What happens when the button is clicked?
A. **bigValue()** will not execute again
B. **bigValue()** will execute again because a dependency changed
D. An error is thrown by Vue
A published solution is not available for this question yet.
Report a correction for Q30
Question 31 MCQ · 3.0 marks Consider the following Vue.js application:
Based on the above data, answer the given subquestions.
Why is **bigValue()** defined as a computed property instead of a method?
A. Computed properties are always faster than methods
B. Computed properties are cached based on dependencies
C. Methods cannot read data properties
D. Computed properties run only once
A published solution is not available for this question yet.
Report a correction for Q31
Question 32 MCQ · 4.5 marks Consider the following Vue 2 application:
Assume the Vue application is loaded at the url **http://127.0.0.1:5000/#/product/1**. The user then
clicks on the **Product 2** router link.
Based on the above data, answer the given subquestions.
What happens immediately after clicking **"Product 2"**?
A. The Product component is destroyed and recreated, so **updated()** is never
called
B. The route changes, the component is reused, and **updated()** is called
C. The route changes, but neither watcher nor lifecycle hooks run
D. A new Vue instance is created for the route
A published solution is not available for this question yet.
Report a correction for Q32
Question 33 MCQ · 4.5 marks Consider the following Vue 2 application:
Assume the Vue application is loaded at the url **http://127.0.0.1:5000/#/product/1**. The user then
clicks on the **Product 2** router link.
Based on the above data, answer the given subquestions.
Why is the **updated()** lifecycle hook triggered in this scenario?
A. Because Vue Router always recreates routed components on every navigation
B. Because lifecycle hooks fire for any URL change even without reactive updates
C. Because router-view forces a complete component tree redraw
D. Because changing the watched route parameter updates component state
and causes a component update
A published solution is not available for this question yet.
Report a correction for Q33