Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.
Web APIs & IntegrationEasy
Q1. What is a Web API?
- A.A JavaScript variable for storing temporary data
- B.An interface allowing software to communicate via HTTP✓ Correct
- C.A CSS framework for building styled web layouts
- D.A NoSQL database for storing document records
Explanation
A Web API provides endpoints that accept HTTP requests and return responses.
Report an error in this question
Web APIs & IntegrationEasy
Q2. What is JSON used for in Web APIs?
- A.Storing CSS variables for theming and customization
- B.Styling web pages with CSS declarations and rules
- C.A lightweight data format for client-server exchange✓ Correct
- D.Creating HTML elements for dynamic page rendering
Explanation
JSON is the most common data format for API requests and responses.
Report an error in this question
Web APIs & IntegrationEasy
Q3. What is a GET request?
- A.Getting database access for read operations
- B.Getting CSS styles for an HTML element
- C.An HTTP request that retrieves data without modifying✓ Correct
- D.Getting HTML templates from the server cache
Explanation
GET fetches data from a specified resource.
Report an error in this question
Web APIs & IntegrationEasy
Q4. What is a POST request?
- A.An HTTP request sending data to create a resource✓ Correct
- B.Posting database queries for batch execution
- C.Posting CSS updates to a remote style server
- D.Posting content on a social media platform
Explanation
POST submits data to a server to create a new resource.
Report an error in this question
Web APIs & IntegrationEasy
Q5. What is an API key?
- A.A physical key for server room access control
- B.A CSS key for targeting specific styled elements
- C.A unique identifier used to authenticate API requests✓ Correct
- D.A keyboard shortcut for developer tool actions
Explanation
An API key is a unique token to identify the calling application.
Report an error in this question
Web APIs & IntegrationEasy
Q6. What does REST stand for?
- A.Remote Execution of Server Tasks
- B.Real-time Event Streaming Technology
- C.Responsive State Transition
- D.Representational State Transfer✓ Correct
Explanation
REST stands for Representational State Transfer.
Report an error in this question
Web APIs & IntegrationEasy
Q7. What is an API response?
- A.Data sent back by server after processing a request✓ Correct
- B.A CSS file for styling page components
- C.An HTML page always returned from the server
- D.A JavaScript function for handling async events
Explanation
An API response contains data, status code, and headers from the server.
Report an error in this question
Web APIs & IntegrationEasy
Q8. What is Postman used for?
- A.Managing database records through a visual tool
- B.Sending physical mail through the postal service
- C.Testing and debugging APIs by sending requests✓ Correct
- D.Writing CSS stylesheets for web page elements
Explanation
Postman is a popular tool for testing and documenting APIs.
Report an error in this question
Web APIs & IntegrationEasy
Q9. What is an HTTP status code?
- A.A JavaScript error code thrown during execution
- B.A database error code from failed query operations
- C.A numerical code indicating the result of a request✓ Correct
- D.A CSS class name applied to styled elements
Explanation
HTTP status codes indicate whether a request succeeded, failed, or needs action.
Report an error in this question
Web APIs & IntegrationEasy
Q10. What is a query parameter in a URL?
- A.A CSS query for selecting styled page elements
- B.A key-value pair after ? to send data with requests✓ Correct
- C.A database query for filtering stored records
- D.A JavaScript query for searching DOM tree nodes
Explanation
Query parameters pass additional information to the server in the URL.
Report an error in this question
Web APIs & IntegrationMedium
Q11. What is the difference between REST and GraphQL?
- A.REST uses fixed endpoints; GraphQL uses one for exact data✓ Correct
- B.They are identical in data fetching approach
- C.GraphQL is always faster than REST in every scenario
- D.REST is a newer technology than GraphQL overall
Explanation
REST exposes multiple fixed endpoints, while GraphQL provides one endpoint for precise queries.
Report an error in this question
Web APIs & IntegrationMedium
Q12. What is API rate limiting?
- A.Restricting requests a client can make per time period✓ Correct
- B.Limiting the available API features and endpoints
- C.Limiting the number of available API endpoints
- D.Limiting the maximum API response payload size
Explanation
Rate limiting caps requests per time window to prevent abuse.
Report an error in this question
Web APIs & IntegrationMedium
Q13. What is API versioning?
- A.A JavaScript version number for runtime environments
- B.Updating CSS versions for browser compatibility
- C.A database version for tracking schema migrations
- D.Managing API versions for backward compatibility✓ Correct
Explanation
Versioning allows introducing changes while maintaining older versions.
Report an error in this question
Web APIs & IntegrationMedium
Q14. What is OAuth used for with Web APIs?
- A.Delegated authorization for third-party app access✓ Correct
- B.A CSS framework for responsive web page layouts
- C.A JavaScript library for building authentication forms
- D.A database protocol for encrypted connection management
Explanation
OAuth lets users grant third-party apps limited access without sharing passwords.
Report an error in this question
Web APIs & IntegrationMedium
Q15. What is a webhook?
- A.A CSS hook for attaching dynamic style rules
- B.A JavaScript event listener for DOM interactions
- C.A database trigger firing on record changes
- D.A callback URL receiving HTTP POST on events✓ Correct
Explanation
A webhook receives automated POST requests when specific events occur.
Report an error in this question
Web APIs & IntegrationMedium
Q16. What is pagination in APIs?
- A.A JavaScript page event for tracking navigation
- B.Dividing large result sets into smaller pages✓ Correct
- C.Page layout and formatting for print media
- D.A CSS page break controlling print output layout
Explanation
Pagination breaks large datasets into manageable pages.
Report an error in this question
Web APIs & IntegrationMedium
Q17. What is HATEOAS in REST?
- A.A database concept for relating tables together
- B.A CSS framework for building grid layouts
- C.Responses include links to related resources✓ Correct
- D.A JavaScript pattern for managing app state
Explanation
HATEOAS means responses include hyperlinks to related resources.
Report an error in this question
Web APIs & IntegrationMedium
Q18. What is API documentation?
- A.Writing CSS comments for code documentation
- B.Database documentation for schema design decisions
- C.Detailed descriptions of endpoints and parameters✓ Correct
- D.HTML documentation for browser compatibility
Explanation
API documentation describes endpoints, formats, authentication, and examples.
Report an error in this question
Web APIs & IntegrationMedium
Q19. What is the purpose of request headers in API calls?
- A.Database headers for defining column schema types
- B.Providing metadata like auth tokens and content type✓ Correct
- C.Styling the request with CSS formatting rules
- D.Creating HTML headers for page title and navigation
Explanation
Request headers carry metadata like Content-Type and Authorization.
Report an error in this question
Web APIs & IntegrationMedium
Q20. What is a RESTful resource?
- A.A server resource like CPU or memory allocation
- B.A CSS resource like a stylesheet or font file
- C.A JavaScript resource loaded via script elements
- D.An entity identified by URL manipulated via HTTP✓ Correct
Explanation
A RESTful resource represents a data entity accessible via a URL.
Report an error in this question
Web APIs & IntegrationHard
Q21. What is GraphQL's N+1 problem and how is it solved?
- A.A math problem related to computational complexity
- B.A REST limitation with fixed endpoint over-fetching
- C.A CSS specificity issue with deeply nested selectors
- D.Nested field queries solved by DataLoader batching✓ Correct
Explanation
DataLoader batches and caches queries to solve GraphQL's N+1 problem.
Report an error in this question
Web APIs & IntegrationHard
Q22. What is an API gateway?
- A.A single entry point routing requests to microservices✓ Correct
- B.A JavaScript gateway for module import resolution
- C.A database gateway for managing connection pooling
- D.A CSS gate for controlling style cascade flow
Explanation
An API gateway centralizes request handling for microservices.
Report an error in this question
Web APIs & IntegrationHard
Q23. What is the difference between idempotent and non-idempotent methods?
- A.They are identical in request handling behavior
- B.Idempotent methods produce same result on repetition; POST may differ✓ Correct
- C.All HTTP methods are non-idempotent in their behavior always
- D.All HTTP methods are idempotent without any exceptions at all
Explanation
Idempotent methods produce the same outcome regardless of repetition.
Report an error in this question
Web APIs & IntegrationHard
Q24. What is content negotiation in APIs?
- A.A CSS negotiation for determining style precedence
- B.A database negotiation for connection pool allocation
- C.Negotiating API pricing for commercial usage plans
- D.Client and server agree on response format via headers✓ Correct
Explanation
Content negotiation uses headers to agree on the response format.
Report an error in this question
Web APIs & IntegrationHard
Q25. What is gRPC and when is it preferred over REST?
- A.A high-performance RPC framework using Protocol Buffers✓ Correct
- B.A JavaScript library for real-time data streaming
- C.A database protocol for distributed query execution
- D.A CSS framework for responsive web design layouts
Explanation
gRPC uses Protocol Buffers for efficient binary serialization and HTTP/2 for streaming.
Report an error in this question
Web APIs & IntegrationHard
Q26. What is the purpose of API throttling?
- A.Controlling request rates to prevent abuse and ensure fairness✓ Correct
- B.A CSS technique for limiting animation frame rates on pages
- C.A database optimization for throttling query execution speed
- D.Speeding up API response times with caching
Explanation
API throttling limits request rates to protect servers from overload.
Report an error in this question
Web APIs & IntegrationHard
Q27. What is the difference between polling and SSE?
- A.Polling is more efficient than SSE for real-time data delivery
- B.SSE requires WebSocket protocol to function properly always
- C.They are identical in data delivery approach
- D.Polling makes repeated requests; SSE maintains persistent connection✓ Correct
Explanation
Polling repeatedly requests data, while SSE maintains a persistent connection for server push.
Report an error in this question
Web APIs & IntegrationHard
Q28. What are API error handling best practices?
- A.Use appropriate status codes, consistent format, and messages✓ Correct
- B.Return 200 for all responses regardless of outcome
- C.Ignore errors and let the client handle all failures
- D.Use CSS error styles to display formatted error pages
Explanation
Good API error handling uses proper status codes and consistent error formats.
Report an error in this question
Web APIs & IntegrationHard
Q29. What is hypermedia-driven API design?
- A.A CSS animation API for creating interactive effects
- B.A multimedia API for playing audio and video
- C.An API where responses include links guiding transitions✓ Correct
- D.A video streaming API for delivering live content
Explanation
Hypermedia-driven APIs embed links telling clients what actions are available.
Report an error in this question
Web APIs & IntegrationHard
Q30. What is the Backend for Frontend (BFF) pattern?
- A.A best friend API for social networking features
- B.A CSS pattern for frontend-specific responsive styling
- C.Each frontend has its own backend aggregating services✓ Correct
- D.A database pattern for frontend-optimized query caching
Explanation
BFF creates tailored API layers for each frontend, aggregating microservice data.
Report an error in this question