C# - Datatypes Questions and Answers
The C# Datatypes questions with answers section is designed for programmers preparing for interviews and coding tests. These programming questions and answers focus on understanding how data types are defined, declared, and managed in C#. Top recruiters like TCS, Wipro, and Accenture often include datatype-based MCQs to assess logical and memory management skills. By exploring C# programming interview questions with answers, candidates can strengthen their foundational knowledge of variables, value types, reference types, and data conversions. This topic is ideal for learners seeking to master .NET concepts for competitive programming and job interviews.
Understand data types available in C programming. Also check C structures and C dynamic memory allocation
C# - Datatypes
41. Which of the following data types is immutable in C#?
- array
- string Explanation: String objects are immutable in C#.
- struct
- class
42. Which data type is used to store floating-point numbers with single precision?
- double
- decimal
- float Explanation: Float stores single-precision floating-point numbers.
- long