Back To Lesson

Quiz: Web Frameworks and API Integrations in PHP

Quiz Instructions:

  • Each question is followed by multiple-choice answers (A, B, C, D, and sometimes E).
  • Carefully read each question and all answer options before selecting the best answer.
  • Choose the option that most accurately aligns with the key concepts or information provided.

Question 1: What does a RESTful API use to interact with resources?

Question 2: Which HTTP method is used to retrieve data from a server?

Question 3: What is the purpose of the POST HTTP method in RESTful APIs?

Question 4: Which tool in PHP is commonly used for interacting with SOAP services?

Question 5: Which format does SOAP use for message structure?

Question 6: What is cURL primarily used for in PHP?

Question 7: Which of the following is a secure way to store API credentials?

Question 8: What is an API key?

Question 9: What does the HTTP 404 status code indicate in a RESTful API?

Question 10: What is the primary purpose of OAuth2 in API authentication?

Question 11: Which of the following is NOT a characteristic of RESTful APIs?

Question 12: What is a Bearer token?

Question 13: Which PHP function is used to handle incoming JSON data in a RESTful API?

Question 14: What is the advantage of using prepared statements with PDO in RESTful APIs?

Question 15: Which of the following is a key feature of SOAP but not REST?