Q1
True / FalseSQL Server supports the JSON data type natively.
SQL Server does not have a specific JSON data type; instead, JSON data is stored in columns of type `NVARCHAR`.
Q2
True / FalseYou can use SQL Server functions to query JSON data stored in `NVARCHAR` columns.
SQL Server provides functions like `JSON_VALUE` and `OPENJSON` to query JSON data stored in `NVARCHAR` columns.
Q3
True / FalseThe `JSON_QUERY` function returns a single scalar value from a JSON string.
The `JSON_QUERY` function returns an object or an array from a JSON string, not a single scalar value. `JSON_VALUE` is used for scalar values.
Q4
True / FalseSQL Server allows indexing on JSON data stored in `NVARCHAR` columns.
SQL Server cannot index JSON data directly; indexes must be created on the columns that contain JSON data, but not on the JSON data itself.
Q5
True / FalseSQL Server’s `OPENJSON` function can be used to parse JSON data and return tabular results.
`OPENJSON` parses JSON data and returns it in a tabular format, making it easier to work with JSON data in SQL Server.
Q6
True / FalseThe `JSON_MODIFY` function can be used to update a value in a JSON string in SQL Server.
The `JSON_MODIFY` function allows you to update values in a JSON string stored in a column.
Q7
True / FalseSQL Server does not support JSON data in earlier versions than SQL Server 2016.
JSON support was introduced in SQL Server 2016. Earlier versions do not have native support for JSON functions.
Q8
True / FalseYou can use the `JSON_VALUE` function to extract a JSON array from a JSON string.
The `JSON_VALUE` function extracts scalar values from JSON strings. For arrays, you should use `JSON_QUERY`.
Q9
True / FalseSQL Server’s JSON functions work with columns of data type `VARCHAR`.
JSON functions in SQL Server work with `NVARCHAR` columns, not `VARCHAR`.
Q10
True / FalseThe `JSON_QUERY` function is used to extract an array or object from a JSON string.
The `JSON_QUERY` function extracts objects or arrays from a JSON string, not single scalar values.
Q11
True / FalseYou cannot use SQL Server’s JSON functions with columns of data type `TEXT`.
JSON functions require `NVARCHAR` columns, and `TEXT` is deprecated. Use `NVARCHAR(MAX)` for large JSON data.
Q12
True / FalseThe `JSON_VALUE` function can be used to update a JSON string in SQL Server.
`JSON_VALUE` is used to extract values from JSON strings, not to update them. Use `JSON_MODIFY` for updates.
Q13
True / FalseSQL Server provides support for JSON schema validation.
SQL Server does not provide native support for JSON schema validation; it focuses on JSON data manipulation.
Q14
True / FalseThe `OPENJSON` function can return nested JSON objects as separate rows.
`OPENJSON` can be used to return nested JSON objects as separate rows, making it easier to work with complex JSON data.
Q15
True / FalseJSON data in SQL Server can be used in conjunction with traditional relational data.
JSON data can be queried and used alongside traditional relational data in SQL Server, allowing for flexible data models.