Desktop and Web Programming
SWE · Midterm · Summer 26
Paper 1 of 2By Tonmoy Chandra MudiSwitch
Paper 1 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:
o Fan Name (text input)
o Password (password input)
o Favorite Team (dropdown list, use four teams as select options)
o Upload Supporter Photo (file input)
o Submit button
body { background: #1a1a2e; color: #ffffff; }
h1 { color: gold; text-align: center; }
.form-section { padding: 20px; margin: 10px; border: 2px solid gold; }
input[type="text"] { background: white; color: black; }
#title { font-size: 2em; }
highlight { color: gold; }
a:hover { color: red; text-decoration: underline; }
input[type="submit"] {
background: green; color: white; padding: 8px 16px;
}
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?
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 <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.
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.
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.
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.