Binary Serialization
Xml Serialization
General Serialization
100

Which attribute tag is placed about a class to tell you it can be serialized?

[Serializable()]

100

Which is a correct form of an XML element.

<Movie> Jaws

<Movie>Jaws<Movie>

<Movie>"Jaws"</Movie>

<Movie>Jaws</Movie>

<Movie>Jaws</Movie>

100

What is Serialization?

-Sorting Objects by a Serial or specific number

-A library that allows you to use data types such as lists, arrays and dictionaries

-The process of dynamically creating an instance of a type

-Translating objects so they can be represented in a web text or binary form

-Translating objects so they can be represented in a web text or binary form

200

Which method of BinaryFormatter is used to serialize an object?

.Serialize()

200

What namespace do you need for XML serialization?

System.Xml.Serialization

200

Which is not a type of Serialization?

a:Binary

b:XML

c: .NET

d:SOAP

c: .NET

300

Name a bad thing about Binary Serialization

It is not human readable.

300

How do you make the field "name" an XML attribute during serialization?

[XmlAttribute]

string name;

300

Name 2 main functions of serialization.

Storing representations of objects in a data file or database.

Transmitting objects over a network

400

What namespace needs to be included for a binary serialization?

System.Runtime.Serialization.Formatters.Binary;

400

What are the advantages of XML serialization?

Human Readable

Flexibility when serializing

400

What is a formatter in terms of Serialization?

Shapes the final presentation of your object, can either be an XML or binary formatter.