Home »
MCQs
Jackson Multiple-Choice Questions (MCQs)
In computing, Jackson is a high-performance JSON processor for Java. Its developers extol the combination of fast, correct, lightweight, and ergonomic attributes of the library. Wikipedia
Jackson MCQs: This section contains multiple-choice questions and answers on the various topics of Jackson. Practice these MCQs to test and enhance your skills on Jackson.
List of Jackson MCQs
1. Which programming language is the foundation of the Jackson Library?
- Java
- Python
- Ruby
- C++
- C#
Answer: A) Java
Explanation:
Java is the foundation of the Jackson library.
Discuss this Question
2. Does Jackson support data binding?
- Yes
- No
Answer: A) Yes
Explanation:
Yes, Jackson library supports the data binding concept.
Discuss this Question
3. How many ways does Jackson provide to process JSON?
- 5
- 4
- 2
- 3
Answer: D) 3
Explanation:
Jackson offers three methods for processing JSON:
- Streaming API
- Tree Model
- Data Binding
Discuss this Question
4. Is Jackson library open-source?
- Yes
- No
Answer: A) Yes
Explanation:
Jackson library is open-source and free to use.
Discuss this Question
5. Is there any additional library required by the Jackson library outside the JDK?
- Yes
- No
Answer: B) No
Explanation:
Jackson library does not require any other library apart from JDK.
Discuss this Question
6. How many types of data binding does Jackson support?
- 5
- 4
- 3
- 2
Answer: D) 2
Explanation:
Jackson library supports two types of binding:
- Simple data binding
- Full data binding
Discuss this Question
7. JSON is converted into Map, List, String, Number, Boolean, and null objects using ____ binding.
- Simple data binding
- Full data binding
Answer: A) Simple data binding
Explanation:
JSON is converted into Map, List, String, Number, Boolean, and null objects using Simple Data Binding.
Discuss this Question
8. The primary actor class in the Jackson library is ____?
- DataMapper
- JackonBinder
- ObjectMapper
Answer: C) ObjectMapper
Explanation:
The primary actor class in the Jackson library is ObjectMapper.
Discuss this Question
9. ____ Binding can convert JSON to any Java type and vice versa?
- Simple data binding
- Full data binding
Answer: B) Full data binding
Explanation:
Full Data Binding can convert JSON to any Java type and vice versa.
Discuss this Question
10. For constructing Tree Model, do we need the ____ class?
- DataMapper
- JackonBinder
- ObjectMapper
Answer: C) ObjectMapper
Explanation:
For constructing Tree Model, we need the ObjectMapper class.
Discuss this Question
11. The process of transforming a Java object into its JSON representation is known as ____?
- Deserialisation
- POJO
- ObjectMapper
- serialisation
Answer: D) serialisation
Explanation:
The process of transforming a Java object into its JSON representation is known as serialisation.
Discuss this Question
12. The process of turning a JSON string into a Java object is known as ____.
- Deserialisation
- POJO
- ObjectMapper
- serialisation
Answer: A) Deserialisation
Explanation:
The process of turning a JSON string into a Java object is known as deserialization.
Discuss this Question
13. ____ creates an in-memory tree representation of the JSON content.
- DataMapper
- Tree Model
- Streaming API
- Annotations
Answer: B) Tree Model
Explanation:
The tree Model creates an in-memory tree representation of the JSON content.
Discuss this Question
14. Which of the following annotations indicates which fields of a Java object, based on their values, should be included or omitted during serialization?
- @Json
- @JsonInclude
- @Include
- @IncludeJson
Answer: B) @JsonInclude
Explanation:
@JsonInclude annotations indicate which fields of a Java object, based on their values, should be included or omitted during serialization.
Discuss this Question
15. For constructing Tree Model, do we need the ____ class?
- DataMapper
- JackonBinder
- ObjectMapper
Answer: C) ObjectMapper
Explanation:
For constructing Tree Model, we need the ObjectMapper class.
Discuss this Question
16. @JsonTypeInfo, @JsonSubTypes comes under which type of annotations?
- Property Inclusion annotation
- General annotation
- Serialization
- Type handling
Answer: D) Type handling
Explanation:
Some of the type handling annotations are:@JsonTypeInfo, @JsonSubTypes.
Discuss this Question
17. Which of the following is the property inclusion annotation?
- @JsonCreator
- @JsonValue
- @JsonInclude
- All of the above
Answer: C) @JsonInclude
Explanation:
Some of the property inclusion annotations are:@JsonInclude, @JsonIgnore, @JsonAutoDetect.
Discuss this Question
18. @JsonCreator, @JacksonInject are which type of annotations?
- Serialization
- Deserialization
- Property Inclusion
- Type Handling
Answer: B) Deserialization
Explanation:
Some of the deserialization annotations are:@JsonCreator, @JacksonInject, @JsonSetter.
Discuss this Question
19. @JsonAnyGetter, @JsonGetter, @JsonValue are the which type of annotations?
- Serialization
- Deserialization
- Property Inclusion
- Type Handling
Answer: A) Serialization
Explanation:
Following are the serialization annotations:@JsonAnyGetter, @JsonGetter, @JsonValue, @JsonValue, @Serialize.
Discuss this Question
20. Which of the following annotations should be used to indicate the name of the POJO to be serialized?
- @JsonRoot
- @RootPojo
- @JsonRootName
- @RootObject
Answer: C) @JsonRootName
Explanation:
@JsonRootName annotations should be used to indicate the name of the POJO to be serialized.
Discuss this Question
21. What is POJO?
- Plain old java object
- Programming object java oriented
- Program oriented java object
Answer: A) Plain old java object
Explanation:
POJO stands for plain old java object.
Discuss this Question
22. Which of the following is the file extension of JSON?
- .csv
- .jackson
- .xml
- .json
Answer: D) .json
Explanation:
.json is the file extension of JSON.
Discuss this Question
23. Jackson library was created by ____?
- Tatrya Saloranta.
- Tatu Saloranta.
- Samoi Saloranta.
Answer: B) Tatu Saloranta.
Explanation:
Jackson library was created by Tatu Saloranta.
Discuss this Question
24. Which of the following companies use Jackson?
- Google
- IBM
- Netflix
- Amazon
- All of the above
Answer: D) All of the above
Explanation:
Following companies use Jackson:
- Google
- IBM
- Netflix
- Amazon
Discuss this Question
25. Which of the following are the alternative of Jackson?
- Gson
- Boon
- Json.simple
- All of the above
Answer: D) All of the above
Explanation:
Following are the alternatives of Jackson:
Discuss this Question