cs2003_2026T1_Q1_NA.pdf
Application Development - 1(APP DEV-1) · Quiz 1 · Jan 2026
← 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.
Question 2 MCQ · 4.0 marks
A client sitting in a train is connected to a server through a network tower that has a range of 4.5
kilometers and a constant bandwidth of 5 Mbps. The train is at a negligible distance from the
tower and is moving away from it at a speed of 180 kmph. How much data (in Megabytes) will be
used by the client before the train completely moves out of the coverage area, assuming that the
client is consuming the entire bandwidth?
45 MB
450 MB
5.6 MB
56.25 MB
A published solution is not available for this question yet.
Question 3 MCQ · 4.0 marks
Consider the HTML code below.
[[IMAGE:29d47939ea972645_4_2]]
Which of the following will be the rendered output?

[[IMAGE:29d47939ea972645_4_3]]

[[IMAGE:29d47939ea972645_4_4]]

[[IMAGE:29d47939ea972645_4_5]]

[[IMAGE:29d47939ea972645_5_6]]

A published solution is not available for this question yet.
Question 4 MCQ · 5.0 marks
Consider the following flask app.
[[IMAGE:29d47939ea972645_5_7]]
Select the option which correctly matches the URL in column A with the rendered output in column
B, if the application is running locally on http://127.0.0.1:5000.
[[IMAGE:29d47939ea972645_6_8]]


1-b, 2-b, 3-a, 4-a
1-b, 2-b, 3-d, 4-a
1-c, 2-c, 3-d, 4-a
1-c, 2-b, 3-d, 4-a
A published solution is not available for this question yet.
Question 5 MCQ · 3.0 marks
Consider the following code:
**app.py**
[[IMAGE:29d47939ea972645_6_9]]
You are running a Flask web application locally using the command: **python app.py**. On which
URL will the application be accessible in the browser?

https://127.0.0.1:5000/
http://localhost:0007/
http://0.0.0.0:0007/
None of these
A published solution is not available for this question yet.
Question 6 MCQ · 3.0 marks
Consider the following Jinja2 template code:
[[IMAGE:29d47939ea972645_7_10]]
What will be the output when the code is executed?

10511817
125111017
3915
51117
A published solution is not available for this question yet.
Question 7 MCQ · 3.0 marks
Consider the following HTML and Python flask codes.
[[IMAGE:29d47939ea972645_7_11]]
[[IMAGE:29d47939ea972645_8_12]]
[[IMAGE:29d47939ea972645_8_13]]



Welcome Admin
Welcome User
404 Not Found
Nothing will be rendered
A published solution is not available for this question yet.
Question 8 MCQ · 3.0 marks
Consider the following Jinja2 template:
[[IMAGE:29d47939ea972645_8_14]]
What will be the output in the terminal?

[[IMAGE:29d47939ea972645_8_15]]

[[IMAGE:29d47939ea972645_8_16]]

[[IMAGE:29d47939ea972645_8_17]]

[[IMAGE:29d47939ea972645_9_18]]

[[IMAGE:29d47939ea972645_9_19]]

A published solution is not available for this question yet.
Question 9 MCQ · 3.0 marks
[[IMAGE:29d47939ea972645_9_20]]
[[IMAGE:29d47939ea972645_9_21]]
[[IMAGE:29d47939ea972645_9_22]]



It will render "Post ID: abc123"
Flask will return a 404 error because abc123 cannot be converted to integer
It will render "Profile of abc123"
The application will crash with a TypeError
A published solution is not available for this question yet.
Question 10 MCQ · 2.0 marks
Which command would you use to get detailed information about the HTTP request and response,
including headers, and to help debug the HTTP request when using curl?
[[IMAGE:29d47939ea972645_9_23]]

[[IMAGE:29d47939ea972645_10_24]]

[[IMAGE:29d47939ea972645_10_25]]

[[IMAGE:29d47939ea972645_10_26]]

A published solution is not available for this question yet.
Question 11 MSQ · 2.0 marks
Which of the following statements about HTML, CSS, and character encoding is/are true?
UTF-8 is a variable-length encoding that can represent all Unicode characters.
In HTML, attribute names are case-insensitive.
Inline CSS is preferred over external CSS for large-scale projects.
UTF-32 is a fixed-length encoding where each character takes 4 bytes.
A published solution is not available for this question yet.
Question 12 MSQ · 2.0 marks
Which of the following is/are True about Web Applications?
All web applications run entirely in the client's browser without requiring a
server.
Web applications can interact with backend services using APIs.
A web application typically consists of frontend, backend and database
components.
Web applications cannot be accessed unless they are installed on the user’s
computer.
A published solution is not available for this question yet.
Question 13 MSQ · 2.0 marks
Which of the following are True about **sys.argv** in Python?
**sys.argv** is a list containing command-line arguments.
**sys.argv[0]** stores the Python script name.
**sys.argv** elements are always interpreted as integers.
**sys.argv** elements are always interpreted as strings.
A published solution is not available for this question yet.
Question 14 MSQ · 5.0 marks
Consider the following **users** list.
[[IMAGE:29d47939ea972645_11_27]]

[[IMAGE:29d47939ea972645_11_28]]

[[IMAGE:29d47939ea972645_11_29]]

[[IMAGE:29d47939ea972645_11_30]]

[[IMAGE:29d47939ea972645_11_31]]

A published solution is not available for this question yet.
Question 15 MSQ · 3.0 marks
Consider the following CSS code:
[[IMAGE:29d47939ea972645_12_32]]
Which of the following statements are TRUE regarding the element's dimensions and spacing?

The total width including padding and border is 224px
The margin affects the content box width
The padding adds internal spacing inside the element
The border contributes to the total width in the standard box model
A published solution is not available for this question yet.
Question 16 MSQ · 3.0 marks
Which statements about CSS display properties are CORRECT?
**display: block** elements always start on a new line and take full width
**display: inline** elements can be manipulated with height and width properties
**display: inline-block** elements can be placed inline and be manipulated with
height and width properties
**display: inline** elements can’t be manipulated with height and width
properties
A published solution is not available for this question yet.
Question 17 MSQ · 3.0 marks
Consider the following code.
[[IMAGE:29d47939ea972645_13_33]]
Which substitution methods will work WITHOUT raising KeyError ?

out = template.substitute({"name": "Alice"})
out = template.safe_substitute({"name": "Alice"})
out = template.substitute({"name": "Alice", "count": 5})
out = template.safe_substitute({"name": "Alice", "count": 5})
A published solution is not available for this question yet.