ASP.Net Interview Question and Answers
131. |
Which template is to be provided in the Repeater control in order to display a data? |
|
- ItemTemplate
- AlternatingItemTemplate.
|
|
|
132. |
What are the advantages of an assembly? |
|
- Increased performance.
- Better code management and encapsulation.
- It also introduces the n-tier concepts and business logic.
|
|
|
133. |
What is an ArrayList? |
|
The ArrayList object is a collection of items containing a single data type values. |
|
Harry , said |
Mar 05,2014 |
Yes. ArrayList can contain multiple data type values and it is not type safe where as array is type safe. Also it can grow and shrink dynamically where as array is fixed in length. i.e; int[] intArray=new int[4]; //Size is fixed to 4 and no other types are allowed in this array. ArrayList al=new ArrayList(); // Its a collection and any type can be added to this ArrayList.
|
Deepak , said |
Feb 03,2014 |
ArrayList is a collection of items and can contain multiple data type values not only single data type. ArrayList strarr = new ArrayList(); strarr.Add(\"welcome\"); // Add string values strarr.Add(10); // Add integer values strarr.Add(10.05); // Add float values.
|
|
134. |
What is the difference between a Thread and a Process? |
|
A thread is a path of execution that run on CPU, a proccess is a collection of threads that share the same virtual memory. A process have at least one thread of execution, and a thread always run in a process context. |
|
|
135. |
What's the difference between the Debug class and Trace class? |
|
- Documentation looks the same.
- Use Debug class for debug builds.
- use Trace class for both debug and release builds.
|
|
|