The C# keyword int maps to which .NET type
-
System.Int16
-
System.Int32
-
System.Int64
-
System.Int8
The C# keyword int is an alias for System.Int32, a 32-bit signed integer. Int16 is short, Int64 is long, and there is no Int8 type in .NET.
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.