Quiz: Scrapy

Test your understanding of Scrapy.

1

Consider the following JSON Schema snippet:

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "price": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": ["name", "price"]
      }
    }
  }
}

What does this schema enforce about the structure of the JSON data?

A)

The items property must be a string with a minimum value of 0.

B)

The name property is required, but the price property is optional.

C)

The JSON data must be an array of objects with name and price properties.

D)

The price property must be a positive number.

Question 1 of 40 attempted

Get hands-on with 1200+ tech skills courses.