1 Which JavaScript function is used to handle a user's click event on a button? A onclick B onmouseover C onload D onsubmit
3 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
4 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
5 Which language is primarily used to structure the content of a web page? A CSS B HTML C JavaScript D Python
6 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
7 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
8 What is the purpose of testing a web page before deployment? A To make the code longer B To find and fix errors C To add more colors D To increase hosting cost
9 What does the <head> section of an HTML document contain? A Metadata and links to scripts and styles B Visible page content C The main heading of the page D Images and paragraphs
10 Which method is used to debug JavaScript code in the browser? A Using console.log() B Using alert() C Using document.write() D Using prompt()
11 What is the purpose of the <title> tag in HTML? A To define a heading in the body B To specify the title of the document shown in the browser tab C To create a tooltip D To add a comment
12 What does CSS stand for? A Computer Style Sheets B Cascading Style Sheets C Creative Style System D Colorful Style Sheets
13 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
14 Which CSS property is used to add a transition effect? A animation B transition C transform D translate
17 In a client-server model, which device requests data? A Server B Client C Hosting provider D Domain name
18 In a client-server model, which one requests a web page? A Server B Client (browser) C Database D Domain name
19 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
20 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
21 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">
22 What is the purpose of the <link> tag in HTML? A To create a hyperlink to another page B To link an external CSS file C To insert an image D To define a list
24 In JavaScript, what does the 'function' keyword do? A Declares a variable B Defines a function C Calls a function D Creates a loop
25 What is the purpose of a domain name? A To store website files B To provide a memorable address for a website C To style web pages D To write JavaScript code