MauryaHub PYQ Practice

Application Development - 1 · End Term · May 2025 · FN

Application Development - 1 · End Term · May 2025 FN

← 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 49 MCQ · 2.0 marks

You're designing an API to update a user's profile picture but your database has 4 records in a row, profile picture is one of them. Which HTTP method is most appropriate?
6406534705958.
POST
6406534705959.
PATCH
6406534705960.
PUT
6406534705961.
DELETE

A published solution is not available for this question yet.

Report a correction for Q49

Question 50 MCQ · 2.0 marks

What is the correct sequence of operations when receiving a form in Flask?
6406534705962.
Validate → Render → Access → Store
6406534705963.
Access → Store → Validate → Render
6406534705964.
Access → Validate → Store → Redirect
6406534705965.
POST → GET → Redirect → Validate

A published solution is not available for this question yet.

Report a correction for Q50

Question 51 MCQ · 2.0 marks

Consider the following statements and choose the correct option **Statement 1**: It is mandatory to implement server-side validations and client-side validations. **Statement 2**: Server-side validations can be implemented using HTML5.
6406534705966.
Statement 1 is false, while statement 2 is true
6406534705967.
Statement 1 is true, while statement 2 is false
6406534705968.
Both statements are false
6406534705969.
Both statements are true

A published solution is not available for this question yet.

Report a correction for Q51

Question 52 MCQ · 2.0 marks

Source diagram or notation
6406534705970.Source diagram or notation
6406534705971.Source diagram or notation
6406534705972.Source diagram or notation
6406534705973.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q52

Question 53 MCQ · 2.0 marks

Source diagram or notation
6406534705974.Source diagram or notation
6406534705975.Source diagram or notation
6406534705976.Source diagram or notation
6406534705977.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q53

Question 54 MCQ · 3.0 marks

Source diagram or notation
6406534705978.
There is no return statement inside the function
6406534705979.
The form is missing CSRF protection
6406534705980.
The Flask route does not allow POST method
6406534705981.
The route should have a trailing slash

A published solution is not available for this question yet.

Report a correction for Q54

Question 55 MCQ · 3.0 marks

Source diagram or notation
6406534705982.Source diagram or notation
6406534705983.Source diagram or notation
6406534705984.Source diagram or notation
6406534705985.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q55

Question 56 MCQ · 3.0 marks

A user downloads a 10 MB file from a server with 5 Mbps speed. How long does it approximately take?
6406534705986.
2 seconds
6406534705987.
10 seconds
6406534705988.
16 seconds
6406534705989.
1.6 seconds

A published solution is not available for this question yet.

Report a correction for Q56

Question 57 MCQ · 3.0 marks

Source diagram or notation
6406534705990.Source diagram or notation
6406534705991.Source diagram or notation
6406534705992.Source diagram or notation
6406534705993.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q57

Question 58 MCQ · 3.0 marks

Source diagram or notation
6406534705994.Source diagram or notation
6406534705995.Source diagram or notation
6406534705996.Source diagram or notation
6406534705997.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q58

Question 59 MCQ · 3.0 marks

Source diagram or notation
6406534705998.
Color: green, Font-size: 20px
6406534705999.
Color: orange, Font-size: 14px
6406534706000.
Color: purple, Font-size: 20px
6406534706001.
Color: purple, Font-size: 14px

A published solution is not available for this question yet.

Report a correction for Q59

Question 60 MCQ · 3.0 marks

Source diagram or notation
6406534706002.
1-c, 2-a, 3-d, 4-b
6406534706003.
1-d, 2-c, 3-a, 4-b
6406534706004.
1-c, 2-d, 3-b, 4-a
6406534706005.
1-c, 2-d, 3-a, 4-b

A published solution is not available for this question yet.

Report a correction for Q60

Question 61 MCQ · 3.0 marks

Source diagram or notation
6406534706006.Source diagram or notation
6406534706007.Source diagram or notation
6406534706008.Source diagram or notation
6406534706009.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q61

Question 62 MCQ · 3.0 marks

Source diagram or notation
6406534706010.
Blue
6406534706011.
Red
6406534706012.
Green
6406534706013.
Black

A published solution is not available for this question yet.

Report a correction for Q62

Question 63 MCQ · 3.0 marks

Source diagram or notation
6406534706014.
1-a, 2- c, 3-b, 4-d, 5-e
6406534706015.
1-b, 2- c, 3-a, 4-e, 5-d
6406534706016.
1-e, 2- d, 3-b, 4-a, 5-c
6406534706017.
1-e, 2- d, 3-c, 4-a, 5-b

A published solution is not available for this question yet.

Report a correction for Q63

Question 64 MCQ · 4.5 marks

Source diagram or notation
6406534706018.Source diagram or notation
6406534706019.Source diagram or notation
6406534706020.Source diagram or notation
6406534706021.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q64

Question 65 MCQ · 4.5 marks

Consider the following Python script that processes command line arguments and uses Jinja2 templates. python: app.py import sys from jinja2 import Template pre_message = sys.argv[1] if len(sys.argv) > 1 else “" pre_language = sys.argv[2] if len(sys.argv) > 2 else “unknown” post_message = pre_message.strip().lower().replace(" ", "_") post_language = pre_language.capitalize() template_string = """ <div> <h1>{{ post_message | upper }}</h1> <p>Message: {{ post_message }}</p> <p>Language: {{ post_language }}</p> <p>Count: {{ pre_message | length }}</p> </div> template = Template(template_string) output = template.render( pre_message = pre_message, post_message = post_message, post_language = post_language ) print (output) If the script is run with the command: bash python app.py " Hello World " "python" What will be the output for the following template variables?
6406534706022.
*
6406534706023.Source diagram or notation
6406534706024.Source diagram or notation
6406534706025.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q65

Question 66 MCQ · 4.5 marks

Source diagram or notation
6406534706026.
All routes will work correctly as Flask will automatically search in both templates/ and custom_templates/ folders
6406534706027.
The / and /dashboard routes will fail with TemplateNotFound error, while /admin and /profile routes will work correctly
6406534706028.
Only the /admin and /profile routes will work correctly, while / and /dashboard routes will fail with TemplateNotFound error
6406534706029.
All routes will fail because Flask requires the template folder to be named exactly templates

A published solution is not available for this question yet.

Report a correction for Q66

Question 67 MCQ · 4.5 marks

Source diagram or notation
6406534706030.Source diagram or notation
6406534706031.Source diagram or notation
6406534706032.Source diagram or notation
6406534706033.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q67

Question 68 MSQ · 2.0 marks

Which statements about REST API design are correct?
6406534706034.
PUT requests should be idempotent
6406534706035.
GET requests can have request bodies for complex queries
6406534706036.
PATCH is used for partial updates
6406534706037.
DELETE must return the deleted resource

A published solution is not available for this question yet.

Report a correction for Q68

Question 69 MSQ · 3.0 marks

Source diagram or notation
6406534706038.Source diagram or notation
6406534706039.Source diagram or notation
6406534706040.Source diagram or notation
6406534706041.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q69

Question 70 MSQ · 3.0 marks

Source diagram or notation
6406534706042.Source diagram or notation
6406534706043.Source diagram or notation
6406534706044.Source diagram or notation
6406534706045.Source diagram or notation
6406534706046.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q70

Question 71 MSQ · 3.0 marks

Source diagram or notation
6406534706047.Source diagram or notation
6406534706048.Source diagram or notation
6406534706049.Source diagram or notation
6406534706050.Source diagram or notation
6406534706051.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q71

Question 72 MSQ · 4.5 marks

Source diagram or notation
6406534706052.Source diagram or notation
6406534706053.Source diagram or notation
6406534706054.Source diagram or notation
6406534706055.Source diagram or notation
6406534706056.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q72

Question 73 MSQ · 4.5 marks

Source diagram or notation
6406534706057.Source diagram or notation
6406534706058.Source diagram or notation
6406534706059.Source diagram or notation
6406534706060.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q73

Question 74 MCQ · 4.5 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406534706061.Source diagram or notation
6406534706062.Source diagram or notation
6406534706063.Source diagram or notation
6406534706064.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q74

Question 75 MCQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406534706065.Source diagram or notation
6406534706066.Source diagram or notation
6406534706067.Source diagram or notation
6406534706068.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q75

Question 76 MCQ · 4.5 marks

Consider the following Flask-SQLAIchemy models for a library management system: File: models.py from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class Library(db.Model) : id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(10@), unique=True, nullable=False) location = db.Column(db.String(200), nullable=False) books = db.relationship('Book', backref='library_ref', lazy=True) class Author(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80), nullable=False) email = db.Column(db.String(120), unique=True, nullable=True) books = db.relationship('Book', backref="author_ref’, lazy=True) class Book(db.Model) : id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(150), nullable=False) isbn = db.Column(db.String(13), unique=True, nullable=False) library_id = db.Column(db.Integer, db.ForeignKey('library.id'), nullable=False) author_id = db.Column(db.Integer, db.ForeignKey('author.id'), nullable=False) is_available = db.Column(db.Boolean, default=True)
Source diagram or notation
Based on the above data, answer the given subquestions.
Which of the following statements about the database schema and model relationships is correct?
6406534706069.Source diagram or notation
6406534706070.Source diagram or notation
6406534706071.Source diagram or notation
6406534706072.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q76

Question 77 MCQ · 3.0 marks

Consider the following Flask-SQLAIchemy models for a library management system: File: models.py from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class Library(db.Model) : id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(10@), unique=True, nullable=False) location = db.Column(db.String(200), nullable=False) books = db.relationship('Book', backref='library_ref', lazy=True) class Author(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80), nullable=False) email = db.Column(db.String(120), unique=True, nullable=True) books = db.relationship('Book', backref="author_ref’, lazy=True) class Book(db.Model) : id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(150), nullable=False) isbn = db.Column(db.String(13), unique=True, nullable=False) library_id = db.Column(db.Integer, db.ForeignKey('library.id'), nullable=False) author_id = db.Column(db.Integer, db.ForeignKey('author.id'), nullable=False) is_available = db.Column(db.Boolean, default=True)
Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406534706073.Source diagram or notation
6406534706074.Source diagram or notation
6406534706075.Source diagram or notation
6406534706076.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q77

Question 78 MCQ · 3.0 marks

Source diagram or notationSource diagram or notation
6406534706077.
Alex scored 0 and received grade F
6406534706078.
Invalid marks for Alex
6406534706079.
Alex scored eighty and received grade F
6406534706080.
Error 500: Internal Server Error

A published solution is not available for this question yet.

Report a correction for Q78

Question 79 MCQ · 2.0 marks

Source diagram or notationSource diagram or notation
6406534706081.
Guest scored 88 and received grade A
6406534706082.
Guest scored 88 and received grade B
6406534706083.
Guest scored 0 and received grade F
6406534706084.
Invalid marks for Guest

A published solution is not available for this question yet.

Report a correction for Q79

Question 80 MCQ · 2.0 marks

Source diagram or notationSource diagram or notation
6406534706085.
Anya scored 59.5 and received grade F
6406534706086.
Anya scored 0 and received grade F
6406534706087.
Invalid marks for Anya
6406534706088.
Anya scored 59 and received grade F       **MLF** **Section Id :** 64065399145 **Section Number :** 4

A published solution is not available for this question yet.

Report a correction for Q80