Desktop and Web Programming
SWE · Midterm · Summer 26
Paper 2 of 2By Shafiur Rahman Shafim (242)Switch
Paper 2 of 2
Read the questions as text
Read off the PDF by AI, so it may have mistakes. The PDF is the original.
Daffodil International University
Faculty of Science & Information Technology
Department of Software Engineering
Midterm Examination, Summer 2026
Course Code: SE 235 Course Title: Desktop and Web Programming
Sections & Teachers: 43 {A, B, O(PC), C, D, E(TT), F, G(KM), H(SAC),
I(SSI), K, L(RUA), J, M, N(PS) }
Time: 1 Hour 30 Mins Marks: 25
Answer ALL Questions
[The figures in the right margin indicate the full marks and corresponding
course outcomes. All portions of each question must be answered
sequentially.]
1. a) Explain how an html page for FIFA World Cup 2026 Fan
Registration Form can be structured using suitable HTML tags containing
- A heading displaying "FIFA World Cup 2026 Fan Portal"
- A form containing:
- Fan Name (text input)
- Password (password input)
- Favorite Team (dropdown list, use four teams as select options)
- Upload Supporter Photo (file input)
- Submit button
[Figure: A code snippet showing CSS styling for body, h1, .form-section, input[type="text"], #title, .highlight, a:hover, input[type="submit"]] (5)
b) Identify the type of CSS selector used for each rule in the snippet (e.g.,
element, class, id, attribute, pseudo-class). Then describe the specificity score
for, highlight and #title. Which one wins if both target the same element? (2)
c) Draw the CSS Box Model diagram and label all four areas. explain what
each property (padding, margin, border) does visually on the web page. (2)
2. <html>
<body>
<form id="form" action="https://swe43.com/test" method="post">
<div>
<div>Hello World</div>
Student ID:
<input type="text" name="student_id">
Favorite World Cup Team:
<input type="text" name="favourite-team">
<input type="submit" value="Submit">
</div>
</form>
</body>
</html>
a) Explain the concept of client server architecture. (3)
b) Infer the necessary JavaScript from the given HTML document to replace:
- "Hello World" with "Hello Earth",
- Change the "type" attribute of the input element with the name
"favourite-team". Turn it into a password. (4)
c) Analyze what form data would be submitted to the server if the input
element with the name attribute "student_id" is changed to "sid" in the given
HTML code. Clearly explain the effect of this change on the submitted form
data. (3)
Day | 9:00 PM | 11:00 PM | 12:00 PM
Sunday | Web Tech | No Class |
Monday | No Class | | OS Lab
Spring 2025 - SWE DIU Schedule
d) Write HTML code that reproduces the table exactly. (5)