CS0053 FA 4

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

14 Terms

1
New cards

What happens if you send invalid JSON in a POST request body?

  • The request is ignored

  • The server automatically fixes it

  • The request will usually fail or return a 400 Bad Request

  • The response will still be successful


The request will usually fail or return a 400 Bad Request


2
New cards

Which of the following is NOT an HTTP method?

  • DELETE

  • SEND

  • GET

  • POST


SEND

3
New cards

Which HTTP method is commonly used to retrieve data from an API?

  • DELETE

  • GET

  • PUT

  • POST


GET

4
New cards

When testing a REST APl, which HTTP method is used to create new data?

  • GET

  • DELETE

  • POST

  • PUT


POST


5
New cards

What does an HTTP response code 200 OK mean?

  • Resource not found

  • Unauthorized access

  • Request was successful

  • Request failed due to server error


Request was successful


6
New cards

Which type of testing focuses on the interaction between multiple modules or components?

  • Unit testing

  • Regression testing

  • Performance testing

  • Integration testing


Integration testing


7
New cards

Which type of testing focuses on testing individual components or functions of a program?

  • Unit Testing

  • Acceptance Testing

  • System Testing

  • Integration Testing


Unit Testing

8
New cards

What is the main purpose of software testing?

  • To reduce the size of the code

  • To identify bugs and ensure software meets requirements

  • To replace the need for code reviews

  • To prove that the software works perfectly


To identify bugs and ensure software meets requirements


9
New cards

Which of the following is a benefit of automated testing?

  • Removes the need for documentation

  • Guarantees no bugs exist

  • Faster and repeatable test execution

  • Reduces the need for developers


Faster and repeatable test execution


10
New cards

Integration testing is done to verify the system as a whole meets the requirements?

  • True

  • False


False

11
New cards

What is the difference between PUT and PATCH requests?

  • PUT and PATCH are identical

  • PUT replaces the entire resource, PATCH
    updates only part of it

  • PATCH deletes the resource

  • PUT updates part of a resource, PATCH
    replaces all of it


PUT replaces the entire resource, PATCH
updates only part of it


12
New cards

It is the process of making a request from an API.

  • Endpoint

  • Status Code

  • API Call

  • API Key


API Call


13
New cards

What does the 500 status code mean?

  • Bad Request

  • Not Found

  • Server Error

  • Timeout


Server Error


14
New cards

Which of the following is NOT a functional test?

  • Testing a login API endpoint returns the correct response

  • Validating that a file upload works as expected

  • Checking if a shopping cart correctly updates its total

  • Measuring how fast the system responds under heavy load


Measuring how fast the system responds under heavy load