0% found this document useful (0 votes)
20 views

qcm web html (2)

Uploaded by

rihablehef115
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

qcm web html (2)

Uploaded by

rihablehef115
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Multiple-choice questions (MCQs)

1) What does HTML stand for?


A) Hypertext Markup Language

B) Hyperlink Text Management Language

C) Home Tool Markup Language

D) Hyper Tool Management Language

Answer: A) Hypertext Markup Language

2) What is the primary role of HTML in web development?


A) Managing the database

B) Structuring the content of a web page

C) Adding styles to web elements

D) Interacting with the web server

Answer: B) Structuring the content of a web page

3) What is the correct order of tags in a basic HTML document structure?

 A) <head>, <html>, <title>, <body>


 B) <html>, <body>, <head>, <title>
 C) <html>, <head>, <title>, <body>
 D) <head>, <body>, <html>, <title>

Answer: C) <html>, <head>, <title>, <body>

4) What is PHP primarily used for?

 A) Styling web pages


 B) Structuring content on a webpage
 C) Adding interactivity to the user interface
 D) Server-side scripting to generate dynamic content

Answer: D) Server-side scripting to generate dynamic content

1
5) What does CSS allow developers to do?

 A) Write backend code for server interactions


 B) Define the structure and semantics of web content
 C) Style and control the visual layout of web pages
 D) Create user interfaces and event-driven behaviors

Answer: C) Style and control the visual layout of web pages

6) What is JavaScript?

 A) A server-side programming language


 B) A markup language used for structuring content
 C) A scripting language used to create interactive effects within web browsers
 D) A database query language

Answer: C) A scripting language used to create interactive effects within web browsers

7) Which of the following is an example of a web browser?

 A) Microsoft Word
 B) Google Chrome
 C) Adobe Photoshop
 D) Visual Studio Code

Answer: B) Google Chrome

8) Which protocol does a web browser use to request web pages?

 A) FTP (File Transfer Protocol)


 B) HTTP (HyperText Transfer Protocol)
 C) SMTP (Simple Mail Transfer Protocol)
 D) SSH (Secure Shell)

Answer: B) HTTP (HyperText Transfer Protocol)

9) What is the purpose of browser cookies?

 A) To speed up internet connection


 B) To store small pieces of data on the user's device for remembering preferences and login
states
 C) To manage memory and processor usage
 D) To automatically update the browser

Answer: B) To store small pieces of data on the user's device for remembering preferences and login
states

2
10) What does IP stand for in "IP address"?

 A) Internet Protocol
 B) Internal Page
 C) Interpersonal Protocol
 D) Internet Port

Answer: A) Internet Protocol

11) What is the purpose of an IP address?

 A) To encrypt data between two computers


 B) To identify a device on a network and enable communication
 C) To store files on a computer
 D) To assign permissions to access files on a server

Answer: B) To identify a device on a network and enable communication

12) Which of the following is an example of an IPv4 address?

 A) 192.168.1.1
 B) 300.500.600.700
 C) 9999:abcd:1234:5678
 D) 192::1

Answer: A) 192.168.1.1

13) What is the difference between IPv4 and IPv6?

 A) IPv6 uses longer addresses than IPv4


 B) IPv6 is only used for local networks
 C) IPv6 has a lower address capacity than IPv4
 D) IPv4 is a newer version than IPv6

Answer: A) IPv6 uses longer addresses than IPv4

14) What type of IP address is used to communicate within a local network?

 A) Public IP address
 B) Dynamic IP address
 C) Private IP address
 D) Static IP address

Answer: C) Private IP address

3
15) What does HTTP stand for?

 A) HyperText Transfer Protocol


 B) High Transfer Protocol
 C) HyperText Technology Protocol
 D) Home Transfer Protocol

Answer: A) HyperText Transfer Protocol

16) What is the main purpose of HTTP?

 A) To secure a website with encryption


 B) To transfer web pages from a server to a client (browser)
 C) To manage email communication
 D) To connect devices to a local network

Answer: B) To transfer web pages from a server to a client (browser)

17) What does FTP stand for?

 A) File Transfer Protocol


 B) Fast Transfer Protocol
 C) Free Text Protocol
 D) File Translation Protocol

Answer: A) File Transfer Protocol

18) What is FTP used for?

 A) To browse websites
 B) To send emails securely
 C) To transfer files between computers on a network
 D) To manage DNS records

Answer: C) To transfer files between computers on a network

19) What is the main difference between HTTP and HTTPS?

 A) HTTPS is faster than HTTP


 B) HTTPS uses encryption to secure the connection between the server and the client
 C) HTTP is used for file transfers, while HTTPS is used for browsing
 D) HTTPS does not allow data to be transferred over the web

Answer: B) HTTPS uses encryption to secure the connection between the server and the client

4
20) What does HTTPS stand for?

 A) HyperText Transfer Protocol Secure


 B) High Transfer Protocol Secure
 C) HyperText Transaction Protocol Secure
 D) Hyper Transfer Protocol Service

Answer: A) HyperText Transfer Protocol Secure

21) What does the "https://" prefix in the URL represent?

A) The website is hosted on a secure server

B) The website uses the HTTP protocol

C) The website uses a special version of FTP

D) The website is restricted to certain users

Answer: A) The website is hosted on a secure server

22) What does "www" stand for in the URL "https://www.univ-Setif.dz"?

A) Web World Management

B) World Wide Web

C) Wide Web Management

D) Web World Machine

Answer: B) World Wide Web

5
23) What is "univ-Setif.dz" in the URL?

A) The name of the hosting server

B) The protocol used for communication

C) The domain name of the website

D) The specific webpage or resource

Answer: C) The domain name of the website

24) What is the ".dz" in the URL "https://www.univ-Setif.dz" representing?

A) The path of the resource on the website

B) The country code top-level domain (ccTLD) for Algeria

C) The type of website (e.g., educational, governmental)

D) A specific subdomain of the website

Answer: B) The country code top-level domain (ccTLD) for Algeria

25) What type of institution does the domain "univ-Setif.dz" likely belong to?

A) A technology company

B) A university or educational institution

C) A governmental organization

D) A private business

Answer: B) A university or educational institution

6
26) Which of the following is a front-end technology used for building user interfaces on the
web?

A) Node.js

B) PHP

C) HTML

D) MySQL

Answer: C) HTML

27) Which of these is used for styling web pages?

A) JavaScript

B) CSS

C) SQL

D) Python

Answer: B) CSS

28) Which programming language is commonly used for server-side web development?

A) JavaScript

B) HTML

C) Java

D) PHP

Answer: D) PHP

7
29) Which of the following technologies is used to store data locally in the web browser?

A) Cookies

B) FTP

C) HTTPS

D) SQL

Answer: A) Cookies

30) What is the purpose of the HTTP protocol in web technologies?

A) To transfer files between computers

B) To define how web pages are styled

C) To structure content on web pages

D) To enable communication between a web server and a client

Answer: D) To enable communication between a web server and a client

31) Which of the following is a JavaScript framework commonly used for building web
applications?

A) Angular

B) Swift

C) C++

D) Ruby

Answer: A) Angular

8
32) Which of the following is a markup language used to structure the content of a webpage?

A) CSS

B) HTML

C) JavaScript

D) SQL

Answer: B) HTML

33) What does the acronym "API" stand for in web development?

A) Application Programming Interface

B) Automated Programming Interface

C) Application Protocol Interface

D) Access Protocol Information

Answer: A) Application Programming Interface

34) Which web technology allows for asynchronous data exchange without refreshing the entire
page?

A) HTTP

B) AJAX

C) HTML5

D) FTP

Answer: B) AJAX

You might also like