MauryaHub PYQ Practice

Application Development - 1 · End Term · Sep 2025 · AN

Application Development - 1 · End Term · Sep 2025 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 · 4.0 marks

Consider the following flask app and Jinja2 template.
Source diagram or notation
If the flask app is running locally on http://127.0.0.1:5000. What will be the output on the browser for the base URL?
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 Q2

Question 3 MSQ · 5.0 marks

Consider the following flask app.
Source diagram or notation
If the application is running locally on http://127.0.0.1:5000, select the correct options.
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 Q3

Question 4 MSQ · 5.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Which of the following statements is/are correct ?
A.
For the command: python file.py find 103 , the terminal output is:
Source diagram or notation
B.
For the command: python file.py find 103 , the terminal output is:
Source diagram or notation
C.
For the command: python file.py find 104 sid , the terminal output is:
Source diagram or notation
D.
For the command: python file.py find 102 , the terminal output is:
Source diagram or notation
E.
For the command: python file.py find 104 sid , the terminal output is:
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MSQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Which of the following commands will give the terminal output as:
Source diagram or notation
A.
python file.py find 104 sid
B.
python file.py 102 find sid
C.
python file.py find 105 sid
D.
python file.py find

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 3.0 marks

Consider the following function to be tested and test functions given in the Python code snippet below.
Source diagram or notation
Source diagram or notation
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 Q6

Question 7 MCQ · 3.0 marks

Consider the following SQL create statement.
Source diagram or notation
Which of the following flask_sqlalchemy models will create exactly the same table as created by the above SQL command?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
emp_id = db.Column(db.Integer(), nullable= emp_code = db.Column(db.String(), unique= name = db.Column(db.String()) salary = db.Column(db.Integer(), nullable= join_date = db.Column(db.Date(), nullable=
D.
*

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MCQ · 4.0 marks

Consider the following python code snippet. What will be the rendered output for **the terminal** **output**?
Source diagram or notation
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 Q8

Question 9 MCQ · 4.0 marks

Consider the following flask application and html template. Assume that the Flask app is running at http://127.0.0.1:5000.
Source diagram or notation
Source diagram or notation
Based on the above data, answer the given subquestions.
What will be the final styling applied to the element inside the div for the URL: http://127.0.0.1:5000/?color=green&size=30&msg=welcome+user
A.
background-color: blue, font-size: 20px, padding: 10px, color: white
B.
background-color: green, font-size: 30px, padding: 20px, color: white
C.
background-color: blue, font-size: 20px, padding: 30px, color: green
D.
background-color: green, font-size: 30px, padding: 10px, color: white

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MCQ · 3.0 marks

Consider the following flask application and html template. Assume that the Flask app is running at http://127.0.0.1:5000.
Source diagram or notation
Source diagram or notation
Based on the above data, answer the given subquestions.
What will be the rendered output on the browser for the URL: http://127.0.0.1:5000/?color=green&size=30&msg=welcome+user
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 Q10

Question 11 MSQ · 3.0 marks

Which of the following statements correctly differentiates between synchronous and asynchronous updates in frontend development?
A.
In synchronous updates, the UI waits for the operation to complete, while in asynchronous updates, the UI remains responsive.
B.
Synchronous execution is blocking, whereas asynchronous execution is non- blocking.
C.
Asynchronous updates are preferred for network requests and background tasks, while synchronous is best for quick operations.
D.
Both synchronous and asynchronous updates allow the browser to continue execution without waiting.

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MCQ · 3.0 marks

Source diagram or notation
A.
1 → C, 2 → D, 3 → B, 4 → A
B.
1 → B, 2 → A, 3 → D, 4 → C
C.
1 → A, 2 → B, 3 → E, 4 → C
D.
1 → C, 2 → D, 3 → B, 4 → E

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MSQ · 3.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.
None of these.

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MSQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
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 Q14

Question 15 MCQ · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
If the correct if-else block is used, what will be the output of the program for the sequence [2, 5, 8]?
A.Source diagram or notation
B.Source diagram or notation
C.
Even Odd Even
D.
¥

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 3.0 marks

A **Household Services Application** maintains the following **three tables**:
Source diagram or notation
Source diagram or notation
Source diagram or notation
The **Requests** table represents service bookings made by customers. Based on the above data, answer the given subquestions.
Which SQL query correctly retrieves the **customer names and the services they requested**?
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 Q16

Question 17 MCQ · 3.0 marks

A **Household Services Application** maintains the following **three tables**:
Source diagram or notation
Source diagram or notation
Source diagram or notation
The **Requests** table represents service bookings made by customers. Based on the above data, answer the given subquestions.
Which query finds the **number of service requests made by each customer**?
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 Q17

Question 18 MCQ · 2.0 marks

A **Household Services Application** maintains the following **three tables**:
Source diagram or notation
Source diagram or notation
Source diagram or notation
The **Requests** table represents service bookings made by customers. Based on the above data, answer the given subquestions.
If the given tables are mapped to Flask-SQLAlchemy models (Customer, Service, Request), which query correctly retrieves all services requested by customer with id=1?
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 Q18

Question 19 MCQ · 2.0 marks

Which of the following is the correct way to add a click event listener to a button with id="myBtn" in JavaScript?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.
All of these

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MCQ · 3.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.
Error: Missing argument

A published solution is not available for this question yet.

Report a correction for Q20

Question 21 MCQ · 3.0 marks

Source diagram or notation
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.
Both
Source diagram or notation
and
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q21

Question 22 MCQ · 2.0 marks

Consider the data table below in SQLite database.
Source diagram or notation
A.
SELECT * FROM products ORDER BY price ASC;
B.
SELECT * FROM products ORDER BY price DESC;
C.
SELECT price FROM products;
D.
SELECT MAX(price) FROM products;

A published solution is not available for this question yet.

Report a correction for Q22

Question 23 MSQ · 3.0 marks

Which of the following commands is/are valid to run pytest from the command line?
A.
pytest
B.
pytest test_file.py
C.
pytest -run
D.
pytest -k “login”

A published solution is not available for this question yet.

Report a correction for Q23

Question 24 MCQ · 2.0 marks

Consider the following Python code.
Source diagram or notation
Which of the following assertion test case throws the exception?
A.
assert max_value([3, 7, 2]) == 7
B.
assert max_value([]) is None
C.
assert max_value("abczfk") == "z"
D.
assert max_value(1) == 1

A published solution is not available for this question yet.

Report a correction for Q24

Question 25 MCQ · 2.0 marks

What does the following **curl** command do?
Source diagram or notation
A.
Sends a POST request to retrieve data.
B.
Sends a POST request to send form data.
C.
Sends a POST request to send JSON data.
D.
Sends a POST request to retrieve JSON data.

A published solution is not available for this question yet.

Report a correction for Q25

Question 26 MCQ · 2.0 marks

Source diagram or notation
A.
required, minlength, and type="email"
B.
min, max, and minlength
C.
required, type="password", and action
D.
type="email", min, max, minlength, and required

A published solution is not available for this question yet.

Report a correction for Q26

Question 27 MSQ · 5.0 marks

Source diagram or notation
A.
GET /users - returns 200 with all users
B.
GET /users/5 - returns 200 with user details for ID 5
C.
POST /users - returns 201 with user created message
D.
POST /users/5 - returns 201 with user created message

A published solution is not available for this question yet.

Report a correction for Q27

Question 28 MSQ · 3.0 marks

Which statements about frontend and backend validation are TRUE?
A.
Frontend validation (HTML5/JavaScript) is sufficient for security
B.
Frontend validation improves user experience by providing immediate feedback
C.
Backend validation is mandatory for security because frontend can be bypassed
D.
Backend validation should validate the same constraints as frontend

A published solution is not available for this question yet.

Report a correction for Q28

Question 29 MCQ · 3.0 marks

Source diagram or notation
A.
All three messages will be displayed
B.
Only the info and warning messages will be displayed
C.
Only the warning message will be displayed
D.
Only the info and debug messages will be displayed

A published solution is not available for this question yet.

Report a correction for Q29

Question 30 MCQ · 4.0 marks

Source diagram or notation
A.
Once for all tests
B.
Twice, once for each test
C.
Once during collection phase only
D.
It depends on the pytest configuration

A published solution is not available for this question yet.

Report a correction for Q30

Question 31 MCQ · 5.0 marks

Source diagram or notation
A.
test_database and test_complex
B.
Only test_calculation
C.
test_calculation and test_complex
D.
All three tests

A published solution is not available for this question yet.

Report a correction for Q31

Question 32 MCQ · 2.0 marks

You are on the main branch and want to merge feature1 and feature2 branches. What is the correct command sequence?
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 Q32

Question 33 MCQ · 3.0 marks

Source diagram or notation
A.
Returns a 404 error
B.
Displays "Welcome None"
C.
Redirects to the login page
D.
Returns an error page with HTTP 403

A published solution is not available for this question yet.

Report a correction for Q33