C# Beginner's Test
Time Elapsed: 0 seconds
1. What is the output of the following code?
using System;
public class Program {
public static void Main(string[] args) {
Console.WriteLine(5 + 3 * 2);
}
}
2. Which keyword is used to define a constant in C#?
3. How do you declare a method in C#?
4. What is the output of the following code?
using System;
public class Program {
public static void Main(string[] args) {
int x = 5;
int y = 10;
Console.WriteLine(x == y);
}
}