C# MCQ Questions And Answers
This section focuses on "basics" in C#. These Multiple Choice Questions (MCQs) should be practiced to improve the C# skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. C# is a?
Explanation: C# is a modern, general-purpose, object-oriented programming language
2. C# developed by?
Explanation: C# developed by Microsoft and approved by European Computer Manufacturers Association (ECMA) and International Standards Organization (ISO).
3. CLI in C# Stands for?
Explanation: C# is designed for Common Language Infrastructure (CLI), which consists of the executable code and runtime environment that allows use of various high-level languages on different computer platforms and architectures.
4. C# has strong resemblance with?
Explanation: It has strong resemblance with Java, it has numerous strong programming features that make it endearing to a number of programmers worldwide.
5. Which of the following not true about C#?
Explanation: C# is a structured language.
6. Choose .NET class name from which data type UInt is derived?
Explanation: By Definition class assigned to
i) System.Int16 = short.
ii) System.UInt32 = UInt.
iii) System.UInt64 = ULong.
iv) System.UInt16 = UShort.
7. The first line of the program is?
Explanation: The first line of the program using System; - the using keyword is used to include the System namespace in the program. A program generally has multiple using statements.
8. A namespace is a collection of classes.
Explanation: A namespace is a collection of classes. The HelloWorldApplication namespace contains the class HelloWorld.
9. In C#, Save the file using?
Explanation: Save the file as helloworld.cs
10. Number of digits upto which precision value of float data type is valid?
Explanation: Number of digits upto which precision value of float data type is valid is upto 7 digit