1 In a client-server model, which one requests a web page? A Server B Client (browser) C Database D Domain name
3 Which of the following is a good debugging technique? A Ignoring error messages B Testing code in small parts C Writing all code at once D Avoiding the browser console
5 Which JavaScript function is used to handle a user's click event on a button? A onclick B onmouseover C onload D onsubmit
6 How can CSS be integrated directly into an HTML element? A Using the style attribute B Using the class attribute C Using the id attribute D Using the src attribute
7 Which CSS property is used to add a transition effect? A animation B transition C transform D translate
8 Where is the correct place to insert a JavaScript file in an HTML document? A In the <head> section B In the <body> section C After the </html> tag D Anywhere in the document
9 Which CSS property is used to change the text color of an element? A background-color B font-size C color D text-align
10 What is the main purpose of debugging in web development? A To make the code longer B To find and fix errors C To add more colors D To increase file size
11 What is the purpose of the <head> element in HTML? A To display the main content B To contain metadata and links to external files C To create a navigation bar D To style the page
13 What is a domain name? A A name that identifies a website on the internet B A type of web browser C A server location D A programming language
15 What is the main purpose of CSS transitions? A To change content of an element B To create smooth changes between property values C To validate user input D To store data in a database
16 What does the <head> tag in HTML contain? A Visible content of the page B Metadata and links to external files C The main heading of the page D The footer of the page
17 Which technology is mainly used for the front-end development of a website? A HTML, CSS, and JavaScript B PHP and MySQL C Node.js and Express D Python and Django
18 Which CSS property is used to change the background color of an element? A color B bgcolor C background-color D background
19 In a client-server model, which device requests data? A Server B Client C Hosting provider D Domain name
20 What is the correct HTML syntax for inserting an image? A <img href="image.jpg"> B <img src="image.jpg"> C <image src="image.jpg"> D <img url="image.jpg">
21 What does a web browser do? A Stores web pages on a server B Requests and displays web pages C Creates HTML code automatically D Manages domain names
24 What is the purpose of debugging in web development? A To find and fix errors in code B To make the website look colorful C To add more features D To increase the file size
25 Which JavaScript method is used to display an alert box? A prompt() B alert() C confirm() D message()