.Net is a frame work it is a software in this we are execute 64+ languages like C#.net,vb.net,Asp.net etc.Now a days every company develop projects through ms.net.So,The top MNC companies concentrate only on ms.net and in the interview purpose asking more on ms.net.so we definitely know the ms.net so we are placed what are the frequently asked questions and impressed answers.Friends don't blindly follow the answers for questions first know the topic after that you are ready/prepare your answers for the questions and perform that answers in every interview.First i tension i understand the topic but i can't perform interview what i prepare, i think one day why i lose my interview i know the all answers on that day i find out the reason because i am not saying my answer in my proper understand manner.After that i am not repeated that mistake now i get the good job.So friends so many also having these problem so you want full description about any topic you are seen previous articles and you want questions follow this article.All the best for your Interview.
C#.NET Interview Questions
C#.Net |
1. Why C#.Net?
Ans: To develop any type of application by using .Net we require one .Net language to write the buisiness logic of that application.
*****Technical C#.net Questions*****
*****Technical C#.net Questions*****
2.Explain about primitive data types?
Ans: In C#.Net, According to the type of the data and size of the data, data types are classified into 5 types. They are
1.Numerical Data Types
a)Signed Numerical data types
sbyte,short,int,long
b)Unsigned Numerical data types
byte,ushort,uint,ulong
2.Floating
float,double,decimal
3.Character related data types
char
4.Logical data types
bool
5.General data types
a)string
b)object
These data types are called as primitive data types.
*****Technical C#.net Questions*****
*****Technical C#.net Questions*****
3. What is the MaxValue and MinValue?
Ans: MaxValue and MinValue are predefined constants, which are members of every primitive data type structure except bool.
Using this constant we can get the Minimum value ans Maximum value of a data type.
*****Technical C#.net Questions*****
*****Technical C#.net Questions*****
4.When we will go for signed dat types and when we will go for unsigned data types?
Ans: Whenever we want to allow both positive and negative values then we will go for signed data types
Whenever we want to allow only positive values then we will go for unsigned data types
*****Technical C#.net Questions*****
*****Technical C#.net Questions*****
5.What is the output?
Ans: static void Main(string[] args)
{
char c='a';
int j=c;
Console.WriteLine(j);
Console.ReadLine();
}
output:97
*****Technical C#.net Questions*****
6.Can i assign 1 or 0 into bool variable?
Ans: static void Main(string[] args)
{
bool b=1;
Console.WriteLine(b);
Console.ReadLine();
}
A)NO
*****Technical C#.net Questions*****
7.What is the output?
Ans: static void Main(string[] args)
{
bool b=true;
Console.WriteLine(j);
Console.ReadLine();
}
output:True
*****Technical C#.net Questions*****
8.Can we assign null value into value type variable?
Ans: No,but we can assign null values into reference type variable.
*****Technical C#.net Questions*****
*****Technical C#.net Questions*****
9.How to assign null value into value type variable?
Ans: We have to go for NULLABLE VALUE TYPES
syntax: <Value Type>?<VariableName>=NULL
*****Technical C#.net Questions*****
*****Technical C#.net Questions*****
10. When we will declare particular variable as nullable type?
Ans: Whenever an input is an optional that means not compulsory then we can declare particular variable as nullable types.
*****Technical C#.net Questions*****
Share With Your Friends in Social Media (Facebook, Twitter, Google Plus Etc...) if You Like Our Content And Feel Free To Comment.
*****Technical C#.net Questions*****
Share With Your Friends in Social Media (Facebook, Twitter, Google Plus Etc...) if You Like Our Content And Feel Free To Comment.
0 comments:
Post a Comment