Home / Programming Questions / C# MCQs / Page 1
Dear candidates you will find MCQ questions of C# here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
M
Q. How many Bytes are stored by ‘Long’ Data type in C# .net?
M
Q. Choose “.NET class” name from which data type “UInt” is derived?
M
Q. Correct Declaration of Values to variables ‘a’ and ‘b’?
M
Q. What will be the error in the following C# code?
Static Void Main(String[] args) { const int m = 100; int n = 10; const int k = n / 5 * 100 * n ; Console.WriteLine(m * k); Console.ReadLine(); }
M
Q. Arrange the following data type in order of increasing magnitude sbyte, short, long, int.
M
Q. Which data type should be more preferred for storing a simple number like 35 to improve execution speed of a program?
M
Q. Which Conversion function of ‘Convert.TOInt32()’ and ‘Int32.Parse()’ is efficient? i) Int32.Parse() is only used for strings and throws argument exception for null string ii) Convert.Int32() used for data types and returns directly '0' for null string
M
Q. Correct way to assign values to variable ‘c’ when int a=12, float b=3.5, int c;
Don't have account? Register here.