MauryaHub PYQ Practice

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

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.
Source diagram or notation
What will be the output of the above program?
A.
6
B.
9
C.
12
D.
15
E.
18

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.
POST
B.
GET
C.
PUT
D.
DELETE

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:
Source diagram or notation
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.
Source diagram or notation
What will be the output of the above program?
A.
Done!
B.
Failed!
C.
Done! Failed!
D.
Failed! Done!

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:
Source diagram or notation
If the addItemAsync action is dispatched with the item 'Vue', what will be the state of items **after 2** **seconds**?
A.
['React', 'Angular', 'Vue']
B.
['React', 'Angular']
C.
['Vue']
D.
['React']

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.
Source diagram or notation
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?
Source diagram or notation
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:
Source diagram or notation
What will be the output of the above program on a browser's console?
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 Q12

Question 13 MCQ · 3.0 marks

Consider the following JavaScript program:
Source diagram or notation
What will be the output of the above program?
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 Q13

Question 14 MCQ · 3.0 marks

What happens when this Flask caching code runs?
Source diagram or notation
If requests for IDs 1, 2, 1 are made within 3 minutes, what's the total response time?
A.
9 seconds
B.
6 seconds
C.
3 seconds
D.
0 second

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:
Source diagram or notation
What will be printed in the console when the code runs?
A.
Passed [80, 80, 30]
B.
Failed [0, 0, 0]
C.
Failed [80, 80, 30]
D.
Passed [0, 0, 0]

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:
Source diagram or notation
A.
1–A, 2–D, 3–C, 4–B
B.
1–D, 2–B, 3–C, 4–A
C.
1–B, 2–C, 3–D, 4–A
D.
1–B, 2–D, 3–C, 4–A

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
Source diagram or notation
File: script.js
Source diagram or notation
Suppose the application is running on http://127.0.0.1:8080. 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 Q19

Question 20 MCQ · 4.5 marks

Consider the following endpoints created with a working setup of flask-security and flask- sqlalchemy.
Source diagram or notation
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.
200, 401, 403
B.
200, 200, 200
C.
200, 403, 401
D.
401, 401, 403

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.
Source diagram or notation
What will be the output on the console?
A.
Axe 15 25 35
B.
Axe 25 25 35
C.
Sword 25 25 35
D.
Axe 25 35 35

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.
Source diagram or notation
What is the output on the console?
A.
50 undefined 50
B.
50 50 50
C.
50 undefined undefined
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:
Source diagram or notation
Which of the following correctly fills **Line X** and **Line Y** so the app works?
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 Q23

Question 24 MCQ · 4.5 marks

Consider the flask application **app.py** and an HTML file **index.html**: app.py:
Source diagram or notation
index.html:
Source diagram or notation
If a user visits **index.html** at **10:10:10 AM**, what will be logged in the **console**?
A.
20, 50
B.
20, 40
C.
40, 40
D.
50, 50

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:
Source diagram or notation
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**
D.
None of these

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**
B.
**git add .**
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:
Source diagram or notation
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:
Source diagram or notation
Based on the above data, answer the given subquestions.
How many times will **"computed run"** be logged during the initial render?
A.
0
B.
1
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:
Source diagram or notation
Based on the above data, answer the given subquestions.
If **calculate()** changes data like:
Source diagram or notation
What happens when the button is clicked?
A.
**bigValue()** will not execute again
B.
**bigValue()** will execute again because a dependency changed
C.
Only time updates
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:
Source diagram or notation
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:
Source diagram or notation
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:
Source diagram or notation
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