Skip to content

Desktop and Web Programming

SWE · Midterm · Fall 25

Paper 1 of 2By Sabbir HRSwitch

Paper 1 of 2

This browser can’t show the PDF here

Open it, and your phone’s PDF viewer takes it, or download it.

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, Fall-2025 Course Code: SE 235 Course Title: Desktop and Web Programming Sections & Teachers: 42 (A, B, C, D, E, F, G, H, I, J) (MHN, PAS, AG, IJC, ZNM) Time: 1:30 Hours 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) While making a registration form for the members of the computer club, Samin was facing difficulty to properly align all the elements of the form. Then Medha suggested him to use a table to structure the form. Structure an HTML registration form for computer club members using a table layout. The form should include: a) Name b) Phone number c) Date of birth d) Gender (radio buttons) e) Department (dropdown) f) Self-introduction (textarea) g) Areas of interest (checkboxes) h) Submit button. [Marks-5] | [CLO-2 Level-4] 2. a) Elaborate specificity and cascading in CSS with necessary example in context of responsive layout. [Marks-5] | [CLO-1 Level-2] b) You are developing a small web tool for Matrix agents to verify secret codes. Each agent enters a code - for example: "neoTheOne" Interpret a JavaScript program that: I. Takes the agent's code as input. II. Checks the length of the code. III. Displays a message in the console: o If the code is less than 5 characters, show: "Code too short" o If the code is 5 to 10 characters, show: "Code accepted" o If the code is more than 10 characters, show: "Code too long" Example Output: Input: "neo" Output: "Code too short" Input: "neoTheOne" Output: "Code accepted" Input: "NeoTheOne123" Output: "Code too long" [Marks-5] 3. a) <body> <h2>The Matrix Fan Registration</h2> <form> <label for="name">Name:</label> <input type="text" id="name" name="name"><br><br> <label for="quote">Favorite Quote:</label> <input type="text" id="highlight" name="quote"><br><br> <label for="email">Email:</label> <input type="email" id="email" name="email"><br><br> <button type="submit">Enter the Matrix</button> </form> <p class="creator">Created by The Wachowskis</p> </body> Blueprint the web page that meets following design criteria: I. Apply a dark background and light text to the entire page. II. Give the "Favorite Quote" input field a glowing green border. III. Style the "Created by" text in light blue and italic. IV. When hovering over the submit button, change its background to bright green and text to black. V. the first letter of the heading larger and neon green. [Marks-10] | [CLO-2 Level-4]