In what Software Paradigm, "Test Driven Development (TDD)" fall ?

In what Software Paradigm, "Test Driven Development (TDD)" fall ?
Ans)

Select from following answers:
  1. Agile Methodology
  2. Extreme Programming
  3. Prototype
Ans is Extreme Programming
TDD is one of the basic requirement of Extreme Programming.

Extreme Programming is based on Agile Software Development in which software quality and responsiveness is maintained to changing customer requirements. Extreme Programming enhances software development projects in 5 key ways:

Communication, simplicity, feedback, respect, and courage.
In what Software Paradigm, "Test Driven Development (TDD)" fall ?
Ans)

Select from following answers:
  1. Agile Methodology
  2. Extreme Programming
  3. Prototype
Ans is Extreme Programming
TDD is one of the basic requirement of Extreme Programming.

Extreme Programming is based on Agile Software Development in which software quality and responsiveness is maintained to changing customer requirements. Extreme Programming enhances software development projects in 5 key ways:

Communication, simplicity, feedback, respect, and courage.

In what Software Paradigm, "Test Driven Development (TDD)" fall ?

In what Software Paradigm, "Test Driven Development (TDD)" fall ?
Ans)

Select from following answers:
  1. Agile Methodology
  2. Extreme Programming
  3. Prototype
Ans is Extreme Programming
TDD is one of the basic requirement of Extreme Programming.

Extreme Programming is based on Agile Software Development in which software quality and responsiveness is maintained to changing customer requirements. Extreme Programming enhances software development projects in 5 key ways:

Communication, simplicity, feedback, respect, and courage.
In what Software Paradigm, "Test Driven Development (TDD)" fall ?
Ans)

Select from following answers:
  1. Agile Methodology
  2. Extreme Programming
  3. Prototype
Ans is Extreme Programming
TDD is one of the basic requirement of Extreme Programming.

Extreme Programming is based on Agile Software Development in which software quality and responsiveness is maintained to changing customer requirements. Extreme Programming enhances software development projects in 5 key ways:

Communication, simplicity, feedback, respect, and courage.

How do we read XML Schema and Data into a Dataset ?

How do we read XML Schema and Data into a Dataset ?
Ans)
We can read the XML Schema and data into Dataset using --

Dataset.ReadXml command.

example Follows :
DataSet DemoDataSet = new DataSet();
DataTable DemoDataTable = new DataTable("Table Name");
DemoDataTable .Columns.Add("Column Name", typeof(string));
DemoDataSet .Tables.Add(DemoDataTable);


string strXMLData = "Add an xml data"

System.IO.StringReader xmlSR = new System.IO.StringReader(strXMLData);

DemoDataSet .ReadXml(xmlSR, XmlReadMode.IgnoreSchema);
How do we read XML Schema and Data into a Dataset ?
Ans)
We can read the XML Schema and data into Dataset using --

Dataset.ReadXml command.

example Follows :
DataSet DemoDataSet = new DataSet();
DataTable DemoDataTable = new DataTable("Table Name");
DemoDataTable .Columns.Add("Column Name", typeof(string));
DemoDataSet .Tables.Add(DemoDataTable);


string strXMLData = "Add an xml data"

System.IO.StringReader xmlSR = new System.IO.StringReader(strXMLData);

DemoDataSet .ReadXml(xmlSR, XmlReadMode.IgnoreSchema);

How do we read XML Schema and Data into a Dataset ?

How do we read XML Schema and Data into a Dataset ?
Ans)
We can read the XML Schema and data into Dataset using --

Dataset.ReadXml command.

example Follows :
DataSet DemoDataSet = new DataSet();
DataTable DemoDataTable = new DataTable("Table Name");
DemoDataTable .Columns.Add("Column Name", typeof(string));
DemoDataSet .Tables.Add(DemoDataTable);


string strXMLData = "Add an xml data"

System.IO.StringReader xmlSR = new System.IO.StringReader(strXMLData);

DemoDataSet .ReadXml(xmlSR, XmlReadMode.IgnoreSchema);
How do we read XML Schema and Data into a Dataset ?
Ans)
We can read the XML Schema and data into Dataset using --

Dataset.ReadXml command.

example Follows :
DataSet DemoDataSet = new DataSet();
DataTable DemoDataTable = new DataTable("Table Name");
DemoDataTable .Columns.Add("Column Name", typeof(string));
DemoDataSet .Tables.Add(DemoDataTable);


string strXMLData = "Add an xml data"

System.IO.StringReader xmlSR = new System.IO.StringReader(strXMLData);

DemoDataSet .ReadXml(xmlSR, XmlReadMode.IgnoreSchema);

What is the use of Assembly Manifest ?

What is the use of Assembly Manifest ?
Ans)
Generally assembly contains a collection of data where it describes the relation between different elements in the assembly which relate to each other. This assembly manifest contains the assembly metadata. Assembly manifest can be stored in either executable file like an .exe file or .dll file with MSIL. Assembly Manifest has below mentioned information:
Assembly Name
Culture Type
Reference Information
Information on referenced Assemblies
Version Culture List of all the files in the Assembly
What is the use of Assembly Manifest ?
Ans)
Generally assembly contains a collection of data where it describes the relation between different elements in the assembly which relate to each other. This assembly manifest contains the assembly metadata. Assembly manifest can be stored in either executable file like an .exe file or .dll file with MSIL. Assembly Manifest has below mentioned information:
Assembly Name
Culture Type
Reference Information
Information on referenced Assemblies
Version Culture List of all the files in the Assembly

What is the use of Assembly Manifest ?

What is the use of Assembly Manifest ?
Ans)
Generally assembly contains a collection of data where it describes the relation between different elements in the assembly which relate to each other. This assembly manifest contains the assembly metadata. Assembly manifest can be stored in either executable file like an .exe file or .dll file with MSIL. Assembly Manifest has below mentioned information:
Assembly Name
Culture Type
Reference Information
Information on referenced Assemblies
Version Culture List of all the files in the Assembly
What is the use of Assembly Manifest ?
Ans)
Generally assembly contains a collection of data where it describes the relation between different elements in the assembly which relate to each other. This assembly manifest contains the assembly metadata. Assembly manifest can be stored in either executable file like an .exe file or .dll file with MSIL. Assembly Manifest has below mentioned information:
Assembly Name
Culture Type
Reference Information
Information on referenced Assemblies
Version Culture List of all the files in the Assembly

What is the need for Hash Table and Serialization in .Net ?

What is the need for Hash Table and Serialization in .Net ?

Ans)
The Hashtable object contains items in key/value pairs. The keys are used as indexes. We can search value by using their corresponding key.
In .NET, the class that implements a hash table is the Hashtable class.

By using Add Method we can add elements to the Hashtable as shown below:
----------
private Hashtable table = new Hashtable();

public void AddEntry(BookEntry entry)
{
table.Add( entry.GetPerson(), entry );
}
-----------
Once the Hashtable gets populated,you can search and retrieve data in it by calling the indexer for the Hashtable class as shown below:
-----------------------------
public BookEntry GetEntry(Person key)
{
return (BookEntry) table[key];
}
----------------------------------

You can also remove the records from the Hashtable by calling the Remove Method which takes a key identifying the element you want to remove as shown below:
-------------------------------------
public void DeleteEntry(Person key)
{
table.Remove( key );
}
---------------------------------------
The data populated from the Hashtable can be saved using Serialization process.
Serialization is a process where the object gets converted into a linear sequence of Bytes for storage or transmission to another location.
This process can be done by using BinaryFormater class which serializes Hashtable object to file stream.
--------------------------
public void Save()
{
Stream s = File.Open("Phone.bin", FileMode.Create, FileAccess.ReadWrite);
BinaryFormatter b = new BinaryFormatter();
b.Serialize(s, table);
s.Close();
}
-----------------------------

By using the Deserialize method, you can get back the recovered Hashtable object as shown below:
--------------------
s = File.Open("Phone.bin", FileMode.Open, FileAccess.Read);
BinaryFormatter b = new BinaryFormatter();
table = (Hashtable) b.Deserialize(s);
--------------------------
What is the need for Hash Table and Serialization in .Net ?

Ans)
The Hashtable object contains items in key/value pairs. The keys are used as indexes. We can search value by using their corresponding key.
In .NET, the class that implements a hash table is the Hashtable class.

By using Add Method we can add elements to the Hashtable as shown below:
----------
private Hashtable table = new Hashtable();

public void AddEntry(BookEntry entry)
{
table.Add( entry.GetPerson(), entry );
}
-----------
Once the Hashtable gets populated,you can search and retrieve data in it by calling the indexer for the Hashtable class as shown below:
-----------------------------
public BookEntry GetEntry(Person key)
{
return (BookEntry) table[key];
}
----------------------------------

You can also remove the records from the Hashtable by calling the Remove Method which takes a key identifying the element you want to remove as shown below:
-------------------------------------
public void DeleteEntry(Person key)
{
table.Remove( key );
}
---------------------------------------
The data populated from the Hashtable can be saved using Serialization process.
Serialization is a process where the object gets converted into a linear sequence of Bytes for storage or transmission to another location.
This process can be done by using BinaryFormater class which serializes Hashtable object to file stream.
--------------------------
public void Save()
{
Stream s = File.Open("Phone.bin", FileMode.Create, FileAccess.ReadWrite);
BinaryFormatter b = new BinaryFormatter();
b.Serialize(s, table);
s.Close();
}
-----------------------------

By using the Deserialize method, you can get back the recovered Hashtable object as shown below:
--------------------
s = File.Open("Phone.bin", FileMode.Open, FileAccess.Read);
BinaryFormatter b = new BinaryFormatter();
table = (Hashtable) b.Deserialize(s);
--------------------------