Home / Study library / Application Development - 1 / End Term · May 2025 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
Q49 Q50 Q51 Q52 Q53 Q54 Q55 Q56 Q57 Q58 Q59 Q60 Q61 Q62 Q63 Q64 Q65 Q66 Q67 Q68 Q69 Q70 Q71 Q72 Q73 Q74 Q75 Q76 Q77 Q78 Q79 Q80
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?
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 6406534705970. 6406534705971. 6406534705972. 6406534705973. A published solution is not available for this question yet.
Report a correction for Q52
Question 53 MCQ · 2.0 marks 6406534705974. 6406534705975. 6406534705976. 6406534705977. A published solution is not available for this question yet.
Report a correction for Q53
Question 54 MCQ · 3.0 marks 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 6406534705982. 6406534705983. 6406534705984. 6406534705985. 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?
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 6406534705990. 6406534705991. 6406534705992. 6406534705993. A published solution is not available for this question yet.
Report a correction for Q57
Question 58 MCQ · 3.0 marks 6406534705994. 6406534705995. 6406534705996. 6406534705997. A published solution is not available for this question yet.
Report a correction for Q58
Question 59 MCQ · 3.0 marks 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 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 6406534706006. 6406534706007. 6406534706008. 6406534706009. A published solution is not available for this question yet.
Report a correction for Q61
Question 62 MCQ · 3.0 marks A published solution is not available for this question yet.
Report a correction for Q62
Question 63 MCQ · 3.0 marks 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 6406534706018. 6406534706019. 6406534706020. 6406534706021. 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?
6406534706023. 6406534706024. 6406534706025. A published solution is not available for this question yet.
Report a correction for Q65
Question 66 MCQ · 4.5 marks 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 6406534706030. 6406534706031. 6406534706032. 6406534706033. 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 6406534706038. 6406534706039. 6406534706040. 6406534706041. A published solution is not available for this question yet.
Report a correction for Q69
Question 70 MSQ · 3.0 marks 6406534706042. 6406534706043. 6406534706044. 6406534706045. 6406534706046. A published solution is not available for this question yet.
Report a correction for Q70
Question 71 MSQ · 3.0 marks 6406534706047. 6406534706048. 6406534706049. 6406534706050. 6406534706051. A published solution is not available for this question yet.
Report a correction for Q71
Question 72 MSQ · 4.5 marks 6406534706052. 6406534706053. 6406534706054. 6406534706055. 6406534706056. A published solution is not available for this question yet.
Report a correction for Q72
Question 73 MSQ · 4.5 marks 6406534706057. 6406534706058. 6406534706059. 6406534706060. A published solution is not available for this question yet.
Report a correction for Q73
Question 74 MCQ · 4.5 marks
Based on the above data, answer the given subquestions.
6406534706061. 6406534706062. 6406534706063. 6406534706064. A published solution is not available for this question yet.
Report a correction for Q74
Question 75 MCQ · 3.0 marks
Based on the above data, answer the given subquestions.
6406534706065. 6406534706066. 6406534706067. 6406534706068. 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)
Based on the above data, answer the given subquestions.
Which of the following statements about the database schema and model relationships is correct?
6406534706069. 6406534706070. 6406534706071. 6406534706072. 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)
Based on the above data, answer the given subquestions.
6406534706073. 6406534706074. 6406534706075. 6406534706076. A published solution is not available for this question yet.
Report a correction for Q77
Question 78 MCQ · 3.0 marks 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 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 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