Q1
Q1 What is the purpose of a web server?
Stores files
Executes scripts
Delivers web pages to clients
Manages databases
Q2
Q2 What is a website?
A single web page
A collection of web pages linked together
A server
A browser
Q3
Q3 Which of the following is not an example of a web browser?
Chrome
Firefox
Apache
Safari
Q4
Q4 What does "client-server architecture" refer to?
A peer-to-peer network
A single user accessing data
Clients requesting services from servers
Server-side computing only
Q5
Q5 What is the significance of a URL in web technology?
Identifies a browser
Links a website to a hosting server
Specifies the address of a resource on the web
Provides server configuration
Q6
Q6 Which of the following is a valid HTTP method?
CONNECT
ADD
FETCH
REMOVE
Q7
Q7 What differentiates a static website from a dynamic one?
Static websites use JavaScript
Dynamic websites are hosted on a server
Static websites display fixed content
Dynamic websites cannot use HTML
Q8
Q8 Which of these is not a characteristic of web 2.0?
User-generated content
Interactivity
Read-only access
Social networking
Q9
Q9 Which tag is used to create a line break in HTML?
<line>
<lb>
<br>
<break>
Q10
Q10 A website is not accessible in the browser. What is the first step to diagnose the issue?
Check DNS settings
Reinstall the browser
Clear cookies
Check screen resolution
Q11
Q11 What does HTML stand for?
HyperText Markup Language
Hyperlink Text Management Language
High-level Text Markup
Home Tool Markup Language
Q12
Q12 Which tag is used to define the main heading of an HTML document?
<head>
<title>
<h1>
<header>
Q13
Q13 What attribute is used to provide an alternative text for an image in HTML?
title
alt
src
text
Q14
Q14 What is the correct way to create an ordered list in HTML?
<list>
<ul>
<ol>
<order>
Q15
Q15 Which attribute is required in all <img> tags?
src
alt
Both src and alt
None
Q16
Q16 Which HTML5 element is used to display content like articles or blog posts?
<article>
<section>
<div>
<aside>
Q17
Q17 Which HTML code correctly embeds a video in a webpage?
<video src="video.mp4"></video>
<video href="video.mp4"></video>
<embed video="video.mp4"></embed>
<media src="video.mp4"></media>
Q18
Q18 What is the correct HTML5 code to add a placeholder text in an input field?
<input text="Enter name">
<input placeholder="Enter name">
<input label="Enter name">
<input text-box="Enter name">
Q19
Q19 What is the correct syntax to make an input field required in HTML5?
<input required>
<input required="true">
<input validate="required">
<input mandatory>
Q20
Q20 A form's "Submit" button does not work. What could be the issue?
Missing <form> tag
Incorrect button type
Script error
All of the above
Q21
Q21 Why might a <video> tag fail to display in some browsers?
Missing controls attribute
Unsupported video format
Incorrect CSS
Broken tag
Q22
Q22 What does CSS stand for?
Cascading Style Sheets
Creative Style Sheets
Computer Style Sheets
Colorful Style Sheets
Q23
Q23 Which CSS property is used to change the text color?
color
text-color
font-color
text-style
Q24
Q24 What is the correct syntax to apply an external stylesheet?
<style src="style.css">
<stylesheet link="style.css">
<link href="style.css" rel="stylesheet">
<css href="style.css">
Q25
Q25 Which CSS property controls the spacing between lines of text?
letter-spacing
line-height
text-spacing
line-spacing
Q26
Q26 How do you apply a CSS rule to a class named "button"?
.button {}
#button {}
button {}
.class button {}
Q27
Q27 Which CSS3 property is used to create rounded corners for an element?
corner-radius
border-radius
border-corner
radius
Q28
Q28 Which CSS code correctly applies a background color to all paragraphs?
p { background-color: blue; }
para { background: blue; }
paragraph { bg: blue; }
p { bgcolor: blue; }
Q29
Q29 How do you select an element with an ID of "header" in CSS?
.header {}
header {}
#header {}
id(header) {}
Q30
Q30 Which of the following CSS rules will make an element's width 50% of its parent?
width: 50%;
min-width: 50%;
max-width: 50%;
relative-width: 50%;