Suez Canal University Midterm Exam (1) Web Pages Programming 2024/2025 PDF
Document Details
Uploaded by ReformedConnemara2249
Suez Canal University
2025
Tags
Summary
This is a midterm exam for web pages programming at Suez Canal University, covering topics such as HTML5, CSS, and web development. The exam consists of multiple-choice questions and is intended for undergraduate students.
Full Transcript
# Suez Canal University ## Faculty of Computers & Informatics ### Department of Information Systems #### Midterm Exam (1) **Program:** Information System **Level:** **Total pages:** **First Term:** 2024/2025 **Course:** Web pages programming **Lecturer:** Dr. Amal Elnawasany **Total marks:** 20 **...
# Suez Canal University ## Faculty of Computers & Informatics ### Department of Information Systems #### Midterm Exam (1) **Program:** Information System **Level:** **Total pages:** **First Term:** 2024/2025 **Course:** Web pages programming **Lecturer:** Dr. Amal Elnawasany **Total marks:** 20 **Course Code:** **Date:** //2024 **Time allowed:** 1h. ### Answer the following questions: 1. What is the purpose of the `<!DOCTYPE html>` declaration? * A. To link an external CSS file * B. To declare the document type and HTML version * C. To insert JavaScript into HTML * D. To define the title of the document 2. Which attribute in HTML5 input element helps ensure unique data submission when a form is submitted multiple times? * A. novalidate * B. unique * C. autocomplete * D. formnovalidate 3. Which input type allows users to select both a date and a time, including the time zone in HTML5? * A. datetime * B. datetime-local * C. date * D. time 4. What is the role of the `<meta charset="UTF-8">` element in an HTML document? * A. Provides metadata for the webpage * B. Specifies the character encoding of the document * C. Links a stylesheet * D. Defines the author of the page 5. How does HTML5 handle multimedia content differently from HTML4? * A. HTML5 requires plugins for video and audio. * B. HTML5 has built-in video and audio tags * C. HTML5 does not support multimedia * D. HTML5 uses Flash for video 6. What are the new form input types introduced in HTML5? * A. file, checkbox, button * B. email, color, range * C. password, date, text * D. radio, text, number 7. What is the function of the CSS property 'text-align: center;'? * A. Centers the text vertically * B. Centers the text horizontally. * C. Aligns the text to the right * D. Justifies the text 8. In the context of web servers, what does the term 'HTTP header' refer to? * A. Main content area of the page * B. Message area containing metadata about the request or response * C. Section for HTTP images * D. HTML page title 9. What does WYSIWYG stand for in web development? * A. Web You See Is Generated * B. What You See Is What You Get * C. Website Generator Interface * D. Web-based Style Integrated Generator 10. Which of the following are semantic elements in HTML5? * A. `<div>`, `<span>`, `<b>` * B. `<header>`, `<article>`, `<footer>` * C. `<i>`, `<em>`, `<big>` * D. `<font>`, `<center>`, `<nav>` 11. What function does the placeholder attribute serve in HTML5? * A. Sets the field name * B. Provides example text within an input * C. Validates form input * D. Applies styles to an input field 12. Which tag would you use to add a line break without starting a new paragraph? * A. `<hr>` * B. `<br>` * C. `<p>` * D. `<div>` 13. Which HTML element is used for adding a table header? * A. `<td>` * B. `<tr>` * C. `<th>` * D. `<table>` 14. What is the primary role of the `<canvas>` element in HTML5? * A. Create tables * B. Insert audio * C. Render 2D shapes and images. * D. Style text. 15. How does the `<aside>` element function in HTML5? * A. Groups main content * B. Adds a section of related content * C. Adds a footer * D. Creates a sidebar 16. In the HTML5 form attribute 'pattern', which of the following would validate a 5-digit ZIP code? * A. `'[A-Za-z]+'` * B. `'[0-9]{5}'` * C. `'[0-9]{4}'` * D. `'[A-Za-z0-9]'` 17. Which attribute must be specified for image links in HTML to describe the image? * A. title * B. href * C. src * D. alt 18. In HTML5, which new input type is used for selecting a color? * A. range * B. color * C. hue * D. rgb 19. Which of the following is a self-closing HTML5 tag? * A. `<div>` * B. `<p>` * C. `<img>` * D. `<span>` 20. Which HTTP status code represents 'Not Found'? * A. 500 * B. 200 * C. 404 * D. 403 21. Which HTML element is used to create a drop-down selection list? * A. `<input type='select'>` * B. `<option>` * C. `<dropdown>` * D. `<select>` 22. Which tag defines a hyperlink in HTML? * A. `<link>` * B. `<url>` * C. `<a>` * D. `<href>` 23. What is the default method for form submission if not specified? * A. POST * B. GET * C. PUT * D. DELETE 24. Which HTML5 tag is used for playing audio files? * A. `<video>` * B. `<sound>` * C. `<audio>` * D. `<play>` 25. In HTML5, what does the 'required' attribute do for form inputs? * A. Allows optional user input * B. Forces the browser to validate input before form submission * C. Styles input fields with specific fonts * D. Limits the input length 26. Which HTML5 element is best suited for defining navigation links? * A. `<footer>` * B. `<nav>` * C. `<header>` * D. `<section>` 27. Which attribute specifies the unique identifier of an element in HTML? * A. class * B. name * C. id * D. tag 28. Which HTML5 input type is ideal for selecting a specific day and time without a time zone? * A. datetime-local * B. date * C. datetime * D. month 29. What does the `<aside>` tag represent in HTML5? * A. A section of the main content * B. Content related but not central to the main content * C. A prominent article * D. A script block 30. The 'min' and 'max' attributes are particularly useful with which HTML5 input type? * A. text * B. number * C. date * D. url 31. What is the significance of the `<header>` element in HTML5? * A. It includes meta tags * B. It represents introductory content or a set of navigational links * C. It adds a footer * D. It renders images 32. What does the `<canvas>` element enable in HTML5? * A. Drawing graphics via JavaScript * B. Displaying audio controls * C. Structuring navigation * D. Creating responsive layouts 33. The term 'client' in a network refers to: * A. A server * B. A web browser * C. A database * D. A web host 34. The HTTP GET method is used to: * A. Send data to the server * B. Retrieve information from the server * C. Update server information * D. Send a user's IP address 35. What is the purpose of MIME type in HTTP? * A. Identifying file size * B. Specifying data format * C. Coding client-side scripts * D. Encrypting data 36. The CSS language is used to: * A. Define the structure of web pages * B. Style the presentation of elements * C. Create hyperlinks * D. Manage server requests 37. What is client-side caching? * A. Saving web pages on the server * B. Saving web pages on the client * C. Accessing data without a server * D. Encrypting client requests 38. A database query can be embedded in a URL for: * A. Retrieving specific data * B. Displaying CSS styles * C. Creating tables * D. Running JavaScript 39. An HTML element that provides additional information but is not displayed is: * A. `<meta>` * B. `<div>` * C. `<br>` * D. `<header>` 40. What is the role of an IP address? * A. Identifies a web page * B. Specifies the device location on the network * C. Manages CSS * D. Encrypts data **Examination committee:** Prof. Prof. Prof. Prof. **My best wishes** Dr. Osama Farsuk