Website Application Development
ITM · Final · Spring 26
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 and Information Technology
Department of Information Technology & Management
Final Examination, Spring 2026
Course Code: ITM 223; Course Title: Website Application Development
Sections & Teachers: A (AR)
Time: 2:00 Hours
Marks: 40
Answer ALL Questions
[The figures in the right margin indicate the full marks. All portions of each question must be answered sequentially.]
1. a) A user visits a website and searches for "laptop" using a search bar. The keyword appears in the URL as ?search=laptop. Another user fills out a registration form with personal details (name, email, password) and submits it. The data is sent securely without appearing in the URL. Identify which scenario represents the POST method and which represents the GET method. Distinguish between those methods with suitable examples. [Marks-5]
b) While using a web application, a user clicks a button, moves the mouse over an image, and types text into an input field. Based on the scenario, Discuss the common JavaScript mouse and keyboard events. [Marks-5]
c) Provide the HTML and CSS code for the following mosaic view. [Figure: A 2x2 grid with cells labeled ITM, 10th, Batch, Rocks, and a central banner reading As Always!] CLO-3, 4 Level-5 [Marks-5]
d) A student of ITM 10th batch is working with JavaScript strings. He has two strings: one is " Web " and another is "Development is fun in JavaScript". First, he wants to remove extra spaces from the first string. Then he joins both strings into one sentence. After that, he replaces the word "JavaScript" with "programming". Next, he extracts the word "fun" from the final sentence. Finally, he finds the position of the word "Development" in the sentence. [Marks-5]
Provide JavaScript code using string methods to perform all these operations.
2. a) Create a simple HTML form with one input field and a Submit button. Use JavaScript validation to check the user input. The input must contain at least one uppercase letter, one lowercase letter, one number, and one special character (@, #, $). When the user clicks the Submit button, a JavaScript function will validate the input. If the input does not satisfy the required condition, display "Input not valid" in a paragraph element. Otherwise, display "Input ok". [Marks-5]
b) A fruit shop stores a list of fruits in an array: ["Apple", "Banana", "Mango", "Orange", "Apple"].
Provide a PHP program that:
- Uses an array to store the fruits
- Checks whether the fruit "Banana" exists in the array
- Defines a function to count how many fruits are in the array
- Displays a message showing whether "Apple" is available or not, and the total number of fruits CLO-4, 5 Level-6 [Marks-5]
c) Develop a PHP script for a simple Student Registration System connected to a MySQL database named "Student_DB" using username "root" and password "mysql".
The system should:
- Create a form to take student id, name and email from the user
- When the form is submitted, insert the data into a table named "users" in the database
- After inserting, retrieve all records (id, name, email) from the "students" table [Marks-10]
- Display all data in a simple HTML table on the frontend
- If the data insertion or fetching fails, display an appropriate error message.