Questions and answers: Web Development

Revise Web Development: here is a selection of questions of every level, with the answer and an explanation. To test yourself without seeing the answers, play the quizzes.

Play the Web Development quizzes

Easy

Who proposed the World Wide Web at CERN in 1989?

Answer : Tim Berners-Lee

Tim Berners-Lee proposed the World Wide Web at CERN in 1989; the first website went online in 1991.

What does the acronym HTML stand for?

Answer : HyperText Markup Language

HTML stands for HyperText Markup Language: it is a markup language that structures the content of a web page.

Which HTML tag creates a hyperlink?

Answer : <a>

The a tag, with the href attribute, creates a link to another page or resource.

In the CSS rule .menu { color: red; }, what does the red color apply to?

Answer : Elements whose class is menu

The dot introduces a class selector: the rule applies to every element with the class menu, and color affects the text.

Which HTTP method is normally used to request a resource without modifying it?

Answer : GET

GET requests a resource without modifying it; POST sends data to the server, for example when a form is submitted.

Which HTTP status code indicates that the requested page cannot be found?

Answer : 404

The 404 Not Found code means the server cannot find the requested resource at this address.

Which HTTP status code indicates an internal server error?

Answer : 500

The 500 Internal Server Error code signals a problem on the server side, not an error made by the user.

Which HTTP status code indicates that a resource has been moved permanently to a new address?

Answer : 301

The 301 Moved Permanently code indicates a permanent redirect to the new address.

Medium

Which company developed the Angular framework?

Answer : Google

Angular is a framework created by Google, whose code is mainly written in TypeScript.

Which company developed the React library?

Answer : Facebook (Meta)

React was made public in 2013 by Facebook, a company renamed Meta in 2021.

What does the acronym JSON stand for?

Answer : JavaScript Object Notation

JSON is a lightweight text format, readable by both humans and machines, widely used to exchange data with an API.

What does the acronym SPA stand for in web development?

Answer : Single Page Application

An SPA loads an HTML page and updates its content with JavaScript, without reloading the whole page on every action.

What is the role of server-side rendering (SSR)?

Answer : Generating the HTML on the server, so it is sent ready to display

With SSR, the server produces the initial HTML, so content can be displayed without waiting for all the JavaScript to run.

Who created Node.js?

Answer : Ryan Dahl

Ryan Dahl presented Node.js in 2009: it lets you run JavaScript outside the browser, for example on a server.

Which information does the browser automatically send with every request to the same site?

Answer : The site's cookies

The site's cookies are sent back with every HTTP request; the contents of localStorage, on the other hand, stay in the browser.

Which protocol allows two-way, persistent communication between a browser and a server?

Answer : WebSocket

With WebSocket, the server can send messages to the browser without waiting for a new request from it.

Related themes

Play the Web Development quizzes