Differences
  • Placement 360 CourseExplore
  • API Testing & Postman – Quiz

    Last Updated :
    Discuss
    Comments

    Question 1

    In which layer of a software architecture is API testing primarily performed?

    • A

      Presentation Layer

    • B

      Data Layer

    • C

      Business Layer

    • D

      Operating System Layer

    Question 2

    Which of the following is a key advantage of API testing compared to GUI testing?

    • A

      It is slower but more reliable

    • B

      It only validates database operations

    • C

      It is language-independent and GUI-independent

    • D

      It depends heavily on the frontend design

    Question 3

    A tester is validating response codes for an API. Which response should indicate a successful POST request that created a new resource?

    • A

      200 OK

    • B

      202 Accepted

    • C

      204 No Content

    • D

      201 Created

    Question 4

    In API testing, which of the following scenarios best requires security testing?

    • A

      Checking API response time under high load

    • B

      Ensuring APIs return JSON in the correct format

    • C

      Testing whether APIs support multiple platforms

    • D

      Verifying if APIs are protected against SQL Injection

    Question 5

    You are testing an API that returns book data. When sending a request to /books/123, you get an error “404 Not Found.” What is the most probable reason?

    • A

      Incorrect HTTP method used

    • B

      The request body format is invalid

    • C

      Resource with ID 123 does not exist

    • D

      API server is down

    Question 6

    Which of the following is NOT a valid use case of Postman?

    • A

      Automating API tests using JavaScript

    • B

      Hosting APIs in production

    • C

      Generating API documentation

    • D

      Organizing requests into collections

    Question 7

    A tester runs a GET API request in Postman and notices ETag in the response header. What does this indicate?

    • A

      The request is using SSL encryption

    • B

      A flag showing the request is a cached response

    • C

      The API server is sending authentication keys

    • D

      A unique identifier for the resource version

    Question 8

    In Performance testing of APIs, which metric is the most critical to evaluate?

    • A

      Response Time

    • B

      Authentication Methods

    • C

      API Documentation Quality

    • D

      GUI Responsiveness

    Question 9

    During API testing, you encounter a “500 Internal Server Error.” What is the most likely cause?

    • A

      Invalid request payload

    • B

      Incorrect HTTP method

    • C

      Issue in server-side code or configuration

    • D

      Authentication failure

    Question 10

    In Postman, why would you use Collections when testing APIs?

    • A

      To monitor API uptime in production

    • B

      To encrypt API responses for security

    • C

      To reduce response size in APIs

    • D

      To organize related requests and automate workflows

    There are 10 questions to complete.

    Take a part in the ongoing discussion