Web Development Quiz

This quiz covers general web development concepts that every developer should know: how the web works, front end versus back end, HTTP, browsers, responsive design and common tools.

What this quiz covers

Study tip: Trace what happens when you type a web address into a browser; many questions are variations of that journey.

Questions, answers and explanations

1. What is Web Development?

  1. Creating websites and web applications
  2. Designing computer hardware
  3. Managing databases only
  4. Developing operating systems

Answer: Creating websites and web applications

Web development involves building and maintaining websites and web applications.

2. Which language is used to structure web pages?

  1. HTML
  2. CSS
  3. JavaScript
  4. Python

Answer: HTML

HTML provides the structure of a web page.

3. Which language is used to style web pages?

  1. CSS
  2. HTML
  3. JavaScript
  4. PHP

Answer: CSS

CSS controls the appearance and layout of web pages.

4. Which language adds interactivity to web pages?

  1. JavaScript
  2. HTML
  3. CSS
  4. SQL

Answer: JavaScript

JavaScript makes web pages interactive.

5. Which part of web development runs in the browser?

  1. Frontend
  2. Backend
  3. Database
  4. Server

Answer: Frontend

Frontend development is executed in the user's browser.

6. Which part of web development handles server-side logic?

  1. Backend
  2. Frontend
  3. HTML
  4. CSS

Answer: Backend

Backend development handles business logic, authentication, and databases.

7. Which protocol is used to transfer web pages?

  1. HTTP
  2. FTP
  3. SMTP
  4. SSH

Answer: HTTP

HTTP is the standard protocol for transferring web pages.

8. What does URL stand for?

  1. Uniform Resource Locator
  2. Universal Resource Link
  3. Uniform Reference Link
  4. Universal Routing Locator

Answer: Uniform Resource Locator

A URL is the address of a resource on the internet.

9. Which database is commonly used in web applications?

  1. MySQL
  2. Photoshop
  3. Excel
  4. PowerPoint

Answer: MySQL

MySQL is one of the most popular databases for web development.

10. Which framework is commonly used for building React applications?

  1. Next.js
  2. Laravel
  3. Django
  4. Flutter

Answer: Next.js

Next.js is a popular React framework for modern web applications.

11. Which HTML tag is used to create a hyperlink?

  1. <a>
  2. <link>
  3. <href>
  4. <url>

Answer: <a>

The <a> (anchor) tag is used to create hyperlinks.

12. Which CSS property changes the text color?

  1. color
  2. text-color
  3. font-color
  4. background-color

Answer: color

The color property changes the text color.

13. Which JavaScript method selects an element by its ID?

  1. getElementById()
  2. queryID()
  3. selectById()
  4. findElement()

Answer: getElementById()

getElementById() selects an HTML element using its ID.

14. Which HTTP method is commonly used to retrieve data?

  1. GET
  2. POST
  3. PUT
  4. DELETE

Answer: GET

GET requests retrieve data from a server.

15. Which HTTP method is commonly used to send data to a server?

  1. POST
  2. GET
  3. DELETE
  4. OPTIONS

Answer: POST

POST sends data such as form submissions to a server.

16. Which JavaScript framework is developed by Meta (Facebook)?

  1. React
  2. Angular
  3. Vue
  4. Svelte

Answer: React

React is maintained by Meta for building user interfaces.

17. Which backend framework is built on Node.js?

  1. Express.js
  2. Django
  3. Laravel
  4. Spring

Answer: Express.js

Express.js is a lightweight web framework for Node.js.

18. Which database is commonly paired with the MERN stack?

  1. MongoDB
  2. MySQL
  3. Oracle
  4. SQLite

Answer: MongoDB

The MERN stack consists of MongoDB, Express.js, React, and Node.js.

19. What does API stand for?

  1. Application Programming Interface
  2. Application Program Internet
  3. Advanced Programming Interface
  4. Application Protocol Interface

Answer: Application Programming Interface

An API allows different software applications to communicate with each other.

20. Which of the following is essential for a modern responsive website?

  1. Responsive CSS
  2. Mobile-Friendly Layout
  3. Flexible Images
  4. All of the above

Answer: All of the above

Modern websites should be responsive, mobile-friendly, and use flexible layouts and images.

Take the timed quiz