web tech banner

Web Technology Multiple Choice Questions (MCQs) and Answers

Master Web Technology with Practice MCQs. Explore our curated collection of Multiple Choice Questions. Ideal for placement and interview preparation, our questions range from basic to advanced, ensuring comprehensive coverage of Web Technology concepts. Begin your placement preparation journey now!

Q1

Q1 What is the purpose of a web server?

A

Stores files

B

Executes scripts

C

Delivers web pages to clients

D

Manages databases

Q2

Q2 What is a website?

A

A single web page

B

A collection of web pages linked together

C

A server

D

A browser

Q3

Q3 Which of the following is not an example of a web browser?

A

Chrome

B

Firefox

C

Apache

D

Safari

Q4

Q4 What does "client-server architecture" refer to?

A

A peer-to-peer network

B

A single user accessing data

C

Clients requesting services from servers

D

Server-side computing only

Q5

Q5 What is the significance of a URL in web technology?

A

Identifies a browser

B

Links a website to a hosting server

C

Specifies the address of a resource on the web

D

Provides server configuration

Q6

Q6 Which of the following is a valid HTTP method?

A

CONNECT

B

ADD

C

FETCH

D

REMOVE

Q7

Q7 What differentiates a static website from a dynamic one?

A

Static websites use JavaScript

B

Dynamic websites are hosted on a server

C

Static websites display fixed content

D

Dynamic websites cannot use HTML

Q8

Q8 Which of these is not a characteristic of web 2.0?

A

User-generated content

B

Interactivity

C

Read-only access

D

Social networking

Q9

Q9 Which tag is used to create a line break in HTML?

A

<line>

B

<lb>

C

<br>

D

<break>

Q10

Q10 A website is not accessible in the browser. What is the first step to diagnose the issue?

A

Check DNS settings

B

Reinstall the browser

C

Clear cookies

D

Check screen resolution

Q11

Q11 What does HTML stand for?

A

HyperText Markup Language

B

Hyperlink Text Management Language

C

High-level Text Markup

D

Home Tool Markup Language

Q12

Q12 Which tag is used to define the main heading of an HTML document?

A

<head>

B

<title>

C

<h1>

D

<header>

Q13

Q13 What attribute is used to provide an alternative text for an image in HTML?

A

title

B

alt

C

src

D

text

Q14

Q14 What is the correct way to create an ordered list in HTML?

A

<list>

B

<ul>

C

<ol>

D

<order>

Q15

Q15 Which attribute is required in all <img> tags?

A

src

B

alt

C

Both src and alt

D

None

Q16

Q16 Which HTML5 element is used to display content like articles or blog posts?

A

<article>

B

<section>

C

<div>

D

<aside>

Q17

Q17 Which HTML code correctly embeds a video in a webpage?

A

<video src="video.mp4"></video>

B

<video href="video.mp4"></video>

C

<embed video="video.mp4"></embed>

D

<media src="video.mp4"></media>

Q18

Q18 What is the correct HTML5 code to add a placeholder text in an input field?

A

<input text="Enter name">

B

<input placeholder="Enter name">

C

<input label="Enter name">

D

<input text-box="Enter name">

Q19

Q19 What is the correct syntax to make an input field required in HTML5?

A

<input required>

B

<input required="true">

C

<input validate="required">

D

<input mandatory>

Q20

Q20 A form's "Submit" button does not work. What could be the issue?

A

Missing <form> tag

B

Incorrect button type

C

Script error

D

All of the above

Q21

Q21 Why might a <video> tag fail to display in some browsers?

A

Missing controls attribute

B

Unsupported video format

C

Incorrect CSS

D

Broken tag

Q22

Q22 What does CSS stand for?

A

Cascading Style Sheets

B

Creative Style Sheets

C

Computer Style Sheets

D

Colorful Style Sheets

Q23

Q23 Which CSS property is used to change the text color?

A

color

B

text-color

C

font-color

D

text-style

Q24

Q24 What is the correct syntax to apply an external stylesheet?

A

<style src="style.css">

B

<stylesheet link="style.css">

C

<link href="style.css" rel="stylesheet">

D

<css href="style.css">

Q25

Q25 Which CSS property controls the spacing between lines of text?

A

letter-spacing

B

line-height

C

text-spacing

D

line-spacing

Q26

Q26 How do you apply a CSS rule to a class named "button"?

A

.button {}

B

#button {}

C

button {}

D

.class button {}

Q27

Q27 Which CSS3 property is used to create rounded corners for an element?

A

corner-radius

B

border-radius

C

border-corner

D

radius

Q28

Q28 Which CSS code correctly applies a background color to all paragraphs?

A

p { background-color: blue; }

B

para { background: blue; }

C

paragraph { bg: blue; }

D

p { bgcolor: blue; }

Q29

Q29 How do you select an element with an ID of "header" in CSS?

A

.header {}

B

header {}

C

#header {}

D

id(header) {}

Q30

Q30 Which of the following CSS rules will make an element's width 50% of its parent?

A

width: 50%;

B

min-width: 50%;

C

max-width: 50%;

D

relative-width: 50%;

ad verticalad vertical
ad