Diploma Web Quiz Welcome to the Diploma Web Quiz. This is for your benefit so be honest when taking the quiz. 1. What is the purpose of semantic HTML tags, and how do they contribute to the structure and accessibility of a web page? a) They are used for styling purposes. b) They provide additional information about the content and help convey its meaning. c) They are deprecated in modern web development. d) They have no impact on accessibility. 2. In JavaScript, what is a constructor function, and how is it used in object creation? a) It creates instances of classes. b) It initializes object properties and behaviors. c) It is only used for DOM manipulation. d) It is not a valid concept in JavaScript. 3. Which front-end framework is written in TypeScript and developed by Google, focusing on building robust and scalable web applications? a) React.js b) Vue.js c) Angular d) Ember.js 4. What is the primary purpose of a database index in the context of web development? a) To optimize query performance by providing faster data retrieval. b) To prevent unauthorized access to the database. c) To store large binary data. d) To define table relationships. 5. Which of the following is a common security threat in web applications, where an attacker injects malicious scripts into input fields to be executed by other users? a) Cross-Site Scripting (XSS) b) Cross-Site Request Forgery (CSRF) c) SQL Injection d) Session Hijacking Time is Up! Time's up