|
What are Advantages and Disadvantages of arrays?
Advantages:
1. It is used to represent multiple data items of same type by using only singl
|
What are Applications or Uses of arrays?
1. It is used to represent multiple data items of same type by using only single name.
2. It c
|
Describe the formula of finding the location (address) of particular element in 2D array using example.
Normal
0
MicrosoftInternetExplorer4
|
What are the ways of representing 2D array in memory? Explain each one of them with examples
A 2D array’s elements are stored in continuous memory locations. It can be represented in memory
|
Terms: Subscript or Index, Size or Length of array , Base Address of array, Offset
(a) Subscript or Index:
It is the sequence number of an element in array. Each element of arra
|
What are various types of arrays? Explain them
Arrays can of following types:
1. One dimensional (1-D) arrays or Linear arrays
2. Multi dime
|
C# and .NET interview Question - Define Generic?
Answer:
This is one of the most important typical question, which is asked in most
of the interviews to check whether you know about generic.
Generic: Generic help us to create flexible strong type collection.
Generic basically seperate the logic from the datatype in order maintain
better reusability, better maintainability etc.
Lets see an simple example to understand how exactly generic seperate logic
from datatype.
In order to use Generic
|
C# and .NET interview Question - How will you create crystal report for a project?
Answer:
Any project you take in .NET or any language reporting is an integral part of
the application. You will rarely find application without reports. Due to heavy
usage of reporting in application this topic becomes a hot favorite of
interviewers. There are two prominent technologies by which you create reports
in .NET one is crystal reports and the other is SQL reporting services. In this
question we will try to answer from the crystal report point of view
|
C# and .NET interview questions - Show us in simple steps to create setup & deployment project for windows application?
Answer: This is a typical .Net interview question which is asked to understand
if you know how to create deployment packages. When you are done with your
application you would like to give your end user a setup package rather than the
source code.
The short answer which the interviewer is expecting is that we can use the
Visual studio deployment package project. Now the long answer just in case the
interviewer gets in to details. So lets understand step by step of how to c
|
Star Triangle in C#
static void Main(string[] args)
{ for (int i = 0; i <= 5; i++)
|
Simple line ladder in C#
static void Main(string[] args)
{
for (int a
|
Numeric Triangle (III) in C#
static void Main(string[] args)
{
for (int i = 1; i <= 5;
|
Numeric Triangle (II) in C#
static void Main(string[] args)
{
|
Numeric Triangle in C#
static void Main(string[] args)
{
for (int i = 0
|
Multiple Ladders in C#
static void Main(string[] args)
{
for (int
|
Half Triangle (II) in C#
static void Main(string[] args)
{
for (int i = 5
|
Half Triangle in C#
static void Main(string[] args)
{
for (int i =
|
C#/.NET interview Question - Who perform faster?Array or Arraylist
Answer:
Let’s demonstrate an example to prove that how arrays are faster than
arraylist for that go to visual studio and create a simple window
application with a button and two labels like below diagram.
Below is the code snippet.
using System.Collections;// import this namespace to access arraylist. using System.Diagnostics;// import this namespace to access Stopwatch. namespace ArrayandArrayList { public partial class Form1 : Form
|
C#/.NET interview Question - How will you distinguish between ArrayList and Array?
Answer:
Array
ArrayList
They are fixed length.
They are resizable and variable length.
They are compiled strong type collection.
They are flexible and can accommodate any data types.
Because arrays are of fixed size and strong type collection
performance is faster.
In arraylist lots of boxing and unboxing are done there f
|
C#/.NET interview Question - Show different types of collection in .NET?
Answer:
Collection: - Collections are basically group of
records which can be treated as a one logical unit.
.NET Collections are divided in to four important categories as follows.
Indexed based.
Key Value Pair.
Prioritized Collection.
Specialized Collection.
Let’s begin with Indexed based and key value pair.
Indexed based: - It helps you to access the value of row
by using the inte
|