Quizzzz time

Basics C#

Its a quiz about the basics of c#!

1 / 10

What does the following line of code do?

Console.WriteLine(“Hello, World!”);

2 / 10

Which data type would you use to store a decimal number like 3.14?

3 / 10

What does the + symbol do in this line of code?

Console.WriteLine(“Name: ” + playerName);

4 / 10

Which of the following is a valid variable name in C#?

5 / 10

What does the Main method in a C# program do?

6 / 10

What does this code output?

int age = 15;
Console.WriteLine(“Age: ” + age);

7 / 10

What’s wrong with this line of code?

string name = Alice;

8 / 10

Which data type would you use to store the result of a true or false condition?

9 / 10

Which data type would you use to store a whole number (like 10)?

10 / 10

What is a variable in C#?

Your score is

The average score is 77%

0%