C# - Datatypes Questions and Answers

Practice Mode
Showing 10 of 42 questions
Q41
Which of the following data types is immutable in C#?
  • A array
  • B string Explanation: String objects are immutable in C#.
  • C struct
  • D class
Answer: Option B
Explanation: String objects are immutable in C#.
Q42
Which data type is used to store floating-point numbers with single precision?
  • A double
  • B decimal
  • C float Explanation: Float stores single-precision floating-point numbers.
  • D long
Answer: Option C
Explanation: Float stores single-precision floating-point numbers.
Questions and Answers for Competitive Exams Various Entrance Test