Search test library by skills or roles
⌘ K

Adaface Sample JSON Questions

Here are some sample JSON questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Easy

JSON Schema: Pick valid data
Solve
Consider the following JSON Schema specification:
            
            {
              "type": "object",
              "properties":
                { "ProductID": { "type":"string", "pattern":"Product*" },
                  "ProductName": { "type":"string" },
                  "Price": { "type":"integer", "minimum":20, "maximum":200 },
                  "Shippers": { "type":"array", "maxItems":4,
                               "items": { "type":"string" }},
                  "Favourites": { "type":"array",
                               "items":
                                  { "type": "object",
                                    "properties": {"User":
                                                   {"type": "string", "optional": true},
                                                   "Rating":
                                                   {"type": "integer", "minimum":1,
                                                    "maxiumum":10}}}},
                  "AvgScore": { "type":"number", "optional":true },
                  "FreeCancellation": {"type":"boolean" }
                }
            }
            
            Select, from the choices below, the JSON data that is valid according to the JSON Schema specification above.
OPTION A:
            { "ProductId": "Product123",
              "ProductName": "desk",
              "Price": "50",
              "Shippers": ["Amy","Pond"],
              "Favourites": [{"User":"Eleven", "Score":5}, {"Score":1},
                          {"User":"Mandosa", "Score":4}],
              "AvgScore": 3.33,
              "FreeCancellation": true }
OPTION B:
            { "ProductId": "Product123",
              "ProductName": "desk",
              "Price": 50,
              "Shippers": ["Amy","Pond"],
              "Favourites": [ ],
              "AvgScore": 3.33,
              "FreeCancellation": true }
OPTION C:
            { "ProductId": "Product123",
              "ProductName": "desk",
              "Price": 50,
              "Shippers": ["Amy Pond","Doctor Strange","Will","Clara Oswald", "Minnesota"],
              "Favourites": [{"User":"Eleven", "Score":5}, {"Score":1},
                          {"User":"Mandosa", "Score":4}],
              "AvgScore": 3.33,
              "FreeCancellation": true }
OPTION D:
            { "ProductId": "123",
              "ProductName": "desk",
              "Price": 50,
              "Shippers": ["Amy","Pond"],
              "Favourites": {"User":"Amy", "Score":5},
              "AvgScore": 3.33,
              "FreeCancellation": true }
🧐 Question🔧 Skill

Easy

JSON Schema: Pick valid data

4 mins

JSON
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
JSON Schema: Pick valid data
JSON
Easy4 mins
Solve

Trusted by recruitment teams in enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1500+ companies in 80+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️