.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.
Logical Programs In C#.Netprograms in C#.net |
using system;
class welcome
{
static void main()
{
console.WriteLine("welcome to RathnaReddy blog");
}
}
2.write a program to accept the student name from the command prompt and display a message?
using system;
class studentDemo
{
static void main()
{
String sname;
console.ReadLine(sname);
console.WriteLine("welcome"+sname);
}
}
3.write a program to accept two numbers from the user and perform addition,subtraction,multiplication and division?
using system;
class Perform
{
static void main()
{
console.WriteLine("enter the number");
int a=int.parse(console.ReadLine());
int b=int.parse(console.ReadLine());
console.WriteLine("the addition is"+(a+b));
console.WriteLine("the subtraction is "+(a-b));
console.WriteLine("the multiplication is"+(a*b));
console.WriteLine("the division is"+(a/b));
}
}
4.write a program to accept double value from command prompt and convert the double value to string and print string value?
using system;
class Conversion
{
static void main()
{
class Conversion
{
static void main()
{
console.WriteLine("enter a value");
double d=int.parse(console.ReadLine());
String s=console.WriteLine(d);
console.WriteLine("the converted double value is"+s);
}
}
5.write a program to input two numbers and interchange those values without using 3rd variable?using system;
class Perform
{
static void main()
{
console.WriteLine("enter the numbers");
int a=int.parse(console.ReadLine());
int b=int.parse(console.ReadLine());
console.WriteLine("the interchange values are"+b+"is"+a)'
}
}
Friends you like my post please share to your friends through Facebook,Twitter,Google+ etc
0 comments:
Post a Comment