...

/

Quiz on C# Basics

Quiz on C# Basics

Test your knowledge of C# basics.

We'll cover the following...
1

What is displayed on the screen after the following program executes if the user inputs 2 and 5, respectively?

class Test
{
    static void Main()
    {
      string a = System.Console.ReadLine();
      string b = System.Console.ReadLine();
      System.Console.WriteLine(a + b);
    }
}
A)

It shows (2 + 5) as a string.

B)

It shows 7 as a number.

C)

It shows 25 as a string.

D)

It shows 2 + 5 as a string.

Question 1 of 100 attempted
...
Access this course and 1400+ top-rated courses and projects.