JSON (JavaScript Object Notation) supports a set of fundamental data types that make it a versatile and widely used data format. These include strings, numbers, objects, arrays, booleans, and null values. A solid grasp of JSON data types is essential for developers working with APIs, configuring applications, or handling data serialization. Knowing how these data types are represented and used can significantly enhance your problem-solving skills during technical interviews. Below are the top MCQs on “JSON Data Types” with explanations to help you prepare effectively.
1.) Which of the following is NOT a valid JSON data type?
2.) Which of the following is a valid JSON string?
3.) Which of the following JSON values is equivalent to “no value”?
4.) Which of the following is a valid JSON array?
5.) What data type is represented by {} in JSON?
6.) Can a JSON key have a number as its name?
7.) Which JSON data type is used to represent a collection of items?
8.) Which of the following is an example of a valid JSON number?
9.) Which JSON data type is used to group key-value pairs?
10.) How are floating-point numbers represented in JSON?