POC Web Development & APIs Flashcards
6 cards from real POC practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 6 POC Web Development & APIs flashcards as text
Which Python micro-framework is most commonly used to build lightweight web applications and REST APIs?
Answer: Flask
Flask is a lightweight WSGI micro-framework that provides minimal built-in features, making it easy to start building web apps and APIs.
Which HTTP method is typically used to create a new resource in a REST API?
Answer: POST
The POST method submits data to the server to create a new resource, returning 201 Created on success.
What Python library is the standard for making HTTP requests in Python scripts?
Answer: requests
The `requests` library is the most popular third-party library for making HTTP requests due to its clean, human-friendly API.
What does REST stand for in web API design?
Answer: Representational State Transfer
REST (Representational State Transfer) is an architectural style for distributed hypermedia systems defined by Roy Fielding.
In Flask, which decorator is used to map a URL path to a view function?
Answer: @app.route()
The `@app.route('/path')` decorator registers a URL rule and associates it with the decorated Python function.
What HTTP status code indicates a successful request?
Answer: 200
HTTP status code 200 (OK) indicates the request succeeded and the server returned the expected response.