Bird
0
0

Given this REST API response after a bulk export request:

medium📝 Predict Output Q13 of 15
Rest API - Batch and Bulk Operations
Given this REST API response after a bulk export request:
{"users": [{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}]}

What is the value of the second user's name?
Ausers
BAlice
C2
DBob
Step-by-Step Solution
Solution:
  1. Step 1: Locate the users array in the JSON

    The key "users" holds a list of user objects.
  2. Step 2: Identify the second user object and its name

    The second object is {"id":2,"name":"Bob"}, so the name is "Bob".
  3. Final Answer:

    Bob -> Option D
  4. Quick Check:

    Second user's name = Bob [OK]
Quick Trick: Look inside 'users' array, second object's 'name' key [OK]
Common Mistakes:
MISTAKES
  • Confusing index and picking first user
  • Selecting the id instead of name
  • Choosing the key name instead of value

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes