Complete the code to declare a public class with the correct PascalCase naming convention.
public class [1] { // class body }
In C#, class names should use PascalCase, starting each word with a capital letter. "MyClass" follows this rule.
Complete the code to declare a private field with the correct camelCase naming convention.
private int [1];Private fields in C# typically use camelCase, starting with a lowercase letter and capitalizing subsequent words. "userAge" follows this convention.
Fix the error in the property name to follow C# naming conventions.
public string [1] { get; set; }Property names in C# use PascalCase. "FirstName" is correct, while others do not follow the convention.
Fill both blanks to declare a constant integer with the correct naming convention.
public const int [1] = 100; private const int [2] = 200;
Constants in C# are usually named using all uppercase letters with underscores separating words. "MAX_VALUE" follows this convention.
Fill all three blanks to declare a method with correct naming and parameter conventions.
public void [1]([2] int [3]) { // method body }
Method names use PascalCase like "CalculateSum". Parameters use camelCase like "number". The keyword "ref" is used correctly before the parameter type.