The C# keyword int maps to which .NET type

  1. System.Int16

  2. System.Int32

  3. System.Int64

  4. System.Int8


Correct Option: B

AI Explanation

To answer this question, you need to understand the mapping between C# keywords and their corresponding .NET types.

Option A) System.Int16 - This option is incorrect because System.Int16 corresponds to the C# keyword short, not int.

Option B) System.Int32 - This option is correct because System.Int32 corresponds to the C# keyword int. In C#, the keyword int is used to declare a 32-bit signed integer.

Option C) System.Int64 - This option is incorrect because System.Int64 corresponds to the C# keyword long, not int. In C#, the keyword long is used to declare a 64-bit signed integer.

Option D) System.Int8 - This option is incorrect because there is no System.Int8 in .NET. In C#, the keyword byte is used to declare an 8-bit unsigned integer.

The correct answer is B) System.Int32. This option is correct because System.Int32 corresponds to the C# keyword int.

Find more quizzes: