Web Technologies and Development MCQs (Part-5)

What does REST stand for in web development?

A Representational State Transfer
B Real-time Server Technology
C Random Static Template
D Reusable Standard Template

Which of the following is an example of a stateless web protocol?

A FTP
B HTTP
C SMTP
D WebSockets

What does GraphQL allow developers to do?

A Create dynamic pages
B Send data to server
C Make API requests
D Query databases

Which web technology allows bidirectional communication between the client and server?

A REST API
B AJAX
C HTTP
D WebSockets

Which of these is a core feature of RESTful APIs?

A Dynamic query handling
B Stateless communication
C Real-time data updates
D Data compression

What type of API allows clients to specify the exact data they need?

A SOAP
B REST
C JSON
D GraphQL

Which of the following is commonly used to fetch data from APIs in JavaScript?

A request()
B fetch()
C post()
D select()

Which of the following is a limitation of WebSockets?

A Stateless communication
B High server load
C Real-time data
D Complex syntax

Which HTTP method is used to update an existing resource in a RESTful API?

A PUT
B GET
C DELETE
D POST

Which of the following is an advantage of using GraphQL over REST?

A Faster server response
B Flexibility in data retrieval
C Better data encryption
D Simpler to implement

Which of the following is used for event-driven communication in real-time web applications?

A AJAX
B GraphQL
C HTTP
D WebSockets

What is the primary advantage of using RESTful APIs?

A Flexible data models
B Simple to integrate
C Real-time updates
D Optimized for scalability

Which of these HTTP methods is idempotent?

A DELETE
B GET
C POST
D PUT

What does RESTful API rely on to handle requests and responses?

A SOAP
B HTTP
C WebSockets
D AJAX

Which of the following describes the behavior of a stateless protocol like HTTP?

A Retains session data
B Stores client information
C Each request is independent
D Involves real-time updates