Serialisation Flashcards

(20 cards)

1
Q

Define serialization.

A

The process of converting an object into a format that can be easily stored or transmitted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is deserialization?

A

The reverse process of serialization, converting data back into an object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or false: JSON is a serialization format.

A

TRUE

JSON stands for JavaScript Object Notation and is widely used for data interchange.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Fill in the blank: XML stands for _______.

A

eXtensible Markup Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a key feature of binary serialization?

A

It converts objects into a binary format, making it more compact and faster to process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define text serialization.

A

Serialization that converts objects into a human-readable text format, like JSON or XML.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True or false: Protocol Buffers is a text-based serialization format.

A

FALSE

Protocol Buffers is a binary serialization format developed by Google.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the main advantage of JSON over XML?

A

JSON is generally lighter and easier to read and write than XML.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Fill in the blank: YAML is often used for _______.

A

Configuration files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does serialization allow for in distributed systems?

A

It enables objects to be sent over a network or stored in a database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Define data interchange format.

A

A format that allows data to be shared between different systems or applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

True or false: CSV is a serialization format.

A

TRUE

CSV stands for Comma-Separated Values, used for tabular data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the primary use of Avro?

A

A serialization framework used in big data applications, particularly with Apache Hadoop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Fill in the blank: MessagePack is a binary format that aims to be _______ than JSON.

A

More efficient

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the main purpose of serialization in programming?

A

To save the state of an object or to transmit it across a network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Define schema in the context of serialization.

A

A formal definition of the structure of serialized data, often used in formats like Avro.

17
Q

True or false: FlatBuffers is designed for high-performance serialization.

A

TRUE

FlatBuffers allows access to serialized data without unpacking.

18
Q

What is a disadvantage of XML compared to JSON?

A

XML is more verbose, leading to larger file sizes and slower parsing.

19
Q

Fill in the blank: Thrift is a framework for _______.

A

Cross-language serialization and RPC

20
Q

What is the role of serialization in APIs?

A

It formats data for requests and responses, ensuring compatibility between clients and servers.