Server-Side & Architecture MCQs

19 MCQs  — Web Development MCQs  (Page 1 of 2)

Practice Server-Side & Architecture MCQs with correct answers and explanations. These questions are from the Web Development MCQs section.

In PHP, how do variables start, and what does == do compared with ===?
With $; == compares after type juggling, while === also requires the same type
With no prefix; == is strict
With #; === is assignment
With @; both are strict
Which of these are web server software?
React, Angular, and Vue
MySQL, Oracle, and PostgreSQL
Git, SVN, and Mercurial
Apache HTTP Server, Nginx, and Microsoft IIS
Which statement about REST APIs is correct?
They keep session state on the server for each request
They must use XML
They require SOAP envelopes
They expose resources through URLs, use HTTP methods (GET, POST, PUT, DELETE), and are stateless
What is the difference between PUT and PATCH?
They are identical
PATCH creates new resources only
PUT replaces the whole resource; PATCH applies a partial update
PUT is used for reading
What does AJAX allow a web page to do?
Run Java applets
Exchange data with the server asynchronously and update parts of the page without a full reload
Compile JavaScript
Store data offline only
In MVC architecture, what does the Controller do?
It displays the user interface
It stores the data
It handles input, works with the Model, and selects the View to render
It is the database
What is the main difference between a Single-Page Application (SPA) and a traditional multi-page site?
An SPA does not use JavaScript
An SPA cannot use APIs
An SPA has only one page of content
An SPA loads one HTML shell and updates content dynamically with JavaScript, instead of loading a new page from the server for each navigation
Which statement about React is correct?
It is a CSS preprocessor
It is a database
It is a JavaScript library for building user interfaces, created by Meta (Facebook), that uses a virtual DOM
It is a full back-end framework by Google
What is WordPress?
A web browser
A content management system (CMS) written in PHP, typically using MySQL or MariaDB
A programming language
A Java framework