Google News
logo
Jackson - Quiz(MCQ)

Jackson : Jackson is a high-performance JSON processor used for Java. It is the most popular library used for serializing Java objects or Map to JSON and vice-versa.

It is completely based on Java. Jackson tutorial provides all the basic and advanced concepts of the Jackson library.

A)
Tatu Saloranta.
B)
Tatrya Saloranta.
C)
Samoi Saloranta.
D)
None of the above

Correct Answer :   Tatu Saloranta.


Explanation : Jackson library was created by Tatu Saloranta.

A)
C#
B)
C++
C)
Java
D)
Python

Correct Answer :   Java


Explanation : Java is the foundation of the Jackson library.

A)
IBM
B)
Netflix
C)
Google
D)
All of the above

Correct Answer :   All of the above


Explanation : Following companies use Jackson :
   
* IBM
* Netflix
* Google
* Amazon

A)
Gson
B)
Boon
C)
Json.simple
D)
All of the above

Correct Answer :   All of the above


Explanation : Following are the alternatives of Jackson :

* Gson
* Boon
* Json.simple

A)
.csv
B)
.xml
C)
.json
D)
.jackson

Correct Answer :   .json


Explanation : .json is the file extension of JSON.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : Yes, Jackson library supports the data binding concept.

A)
2
B)
3
C)
4
D)
5

Correct Answer :   3


Explanation : Jackson offers three methods for processing JSON :

* Streaming API
* Tree Model
* Data Binding

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : Jackson library is open-source and free to use.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   No


Explanation : Jackson library does not require any other library apart from JDK.

A)
Program oriented java object
B)
Programming object java oriented
C)
Plain old java object
D)
None of the above

Correct Answer :   Plain old java object


Explanation : POJO stands for plain old java object.

A)
@JsonRoot
B)
@RootPojo
C)
@RootObject
D)
@JsonRootName

Correct Answer :   @JsonRootName


Explanation : @JsonRootName annotations should be used to indicate the name of the POJO to be serialized.

A)
2
B)
3
C)
4
D)
5

Correct Answer :   2


Explanation : Jackson library supports two types of binding:

* Simple data binding
* Full data binding

A)
Full data binding
B)
Simple data binding
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Simple data binding


Explanation : JSON is converted into Map, List, String, Number, Boolean, and null objects using Simple Data Binding.

A)
JackonBinder
B)
DataMapper
C)
ObjectMapper
D)
None of the above

Correct Answer :   ObjectMapper


Explanation : The primary actor class in the Jackson library is ObjectMapper.

A)
Deserialization
B)
Serialization
C)
Type Handling
D)
Property Inclusion

Correct Answer :   Serialization


Explanation : Following are the serialization annotations:@JsonAnyGetter, @JsonGetter, @JsonValue, @JsonValue, @Serialize.

A)
Deserialization
B)
Serialization
C)
Type Handling
D)
Property Inclusion

Correct Answer :   Deserialization


Explanation : Some of the deserialization annotations are:@JsonCreator, @JacksonInject, @JsonSetter.

A)
@JsonValue
B)
@JsonCreator
C)
Both (A) and (B)
D)
@JsonInclude

Correct Answer :   @JsonInclude


Explanation : Some of the property inclusion annotations are:@JsonInclude, @JsonIgnore, @JsonAutoDetect.

A)
Full data binding
B)
Simple data binding
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Full data binding


Explanation : Full Data Binding can convert JSON to any Java type and vice versa.

A)
JackonBinder
B)
DataMapper
C)
ObjectMapper
D)
None of the above

Correct Answer :   ObjectMapper


Explanation : For constructing Tree Model, we need the ObjectMapper class.

A)
POJO
B)
Serialisation
C)
Deserialisation
D)
ObjectMapper

Correct Answer :   Serialisation


Explanation : The process of transforming a Java object into its JSON representation is known as serialisation.

A)
POJO
B)
Serialisation
C)
Deserialisation
D)
ObjectMapper

Correct Answer :   Deserialisation


Explanation : The process of turning a JSON string into a Java object is known as deserialization.

A)
Tree Model
B)
Annotations
C)
DataMapper
D)
Streaming API

Correct Answer :   Tree Model


Explanation : The tree Model creates an in-memory tree representation of the JSON content.

A)
Serialization
B)
Type handling
C)
General annotation
D)
Property Inclusion annotation

Correct Answer :   Type handling


Explanation : Some of the type handling annotations are:@JsonTypeInfo, @JsonSubTypes.

24 .
Which of the following annotations indicates which fields of a Java object, based on their values, should be included or omitted during serialization?
A)
@Json
B)
@Include
C)
@IncludeJson
D)
@JsonInclude

Correct Answer :   @JsonInclude


Explaination : @JsonInclude annotations indicate which fields of a Java object, based on their values, should be included or omitted during serialization.