Which HTTP method is most commonly used to send data as JSON in RESTful APIs?
Choose 1 answer
Question 2 of 20
What Content-Type header is typically used when sending JSON data in an HTTP request?
Choose 1 answer
Question 3 of 20
Which of the following JavaScript methods can be used to parse a JSON response in an API request using the Fetch API?
Choose 1 answer
Question 4 of 20
True or False: JSON Web Tokens (JWT) are signed but not encrypted by default.
Choose 1 answer
Question 5 of 20
Which of the following is the correct structure of a JSON Web Token (JWT)?
Choose 1 answer
Question 6 of 20
What function can be used to handle JSON data returned by an AJAX request in jQuery?
Choose 1 answer
Question 7 of 20
What is the primary use of JWT in web development?
Choose 1 answer
Question 8 of 20
Which of the following correctly represents a JSON API response with an error message?
Choose 1 answer
Question 9 of 20
How would you send a JSON payload using a POST request with the Fetch API?
Choose 1 answer
Question 10 of 20
What will be the output of the following code snippet?
fetch('/api').then(response => response.json()).then(data => console.log(data));
Choose 1 answer
Question 11 of 20
Which of the following are the two types of JSON tokens in a JWT?
Choose 1 answer
Question 12 of 20
Which of the following JSON Web Token (JWT) components is responsible for ensuring data integrity?
Choose 1 answer
Question 13 of 20
True or False: You can send JSON data in the body of a GET request.
Choose 1 answer
Question 14 of 20
Which method would you use in Angular to retrieve data from a JSON-based REST API?
Choose 1 answer
Question 15 of 20
How is the 'Bearer' token commonly passed in HTTP requests for API authentication?
Choose 1 answer
Question 16 of 20
What does the following code do?
fetch('https://api.example.com/data')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Choose 1 answer
Question 17 of 20
In a typical REST API response, how is a successful JSON response indicated?
Choose 1 answer
Question 18 of 20
Which HTTP method is most often used to retrieve JSON data from a RESTful API?
Choose 1 answer
Question 19 of 20
What is the purpose of JSON Web Tokens (JWT) in RESTful APIs?
Choose 1 answer
Question 20 of 20
Which of the following statements about JSON Web Tokens (JWT) and their use in RESTful APIs is correct? (Select all that apply)