C# Quiz Results
Score: 25 of 25
100% Correct:
Question 1:
What is a correct syntax to output "Hello World" in C#?
Question 2:
C# is an alias of C++
Question 3:
How do you insert COMMENTS in C# code?
Question 4:
Which data type is used to create a variable that should store text?
Question 5:
How do you create a variable with the numeric value 5?
Question 6:
How do you create a variable with the floating number 2.8?
Question 7:
Which property can be used to find the length of a string?
Question 8:
Which operator is used to add together two values?
Question 9:
The value of a string variable can be surrounded by single quotes.
Question 10:
Type casting is when you assign a value of one data type to another type.
Question 11:
Which operator can be used to compare two values?
Question 12:
To declare an array in C#, define the variable type with:
Question 13:
Array indexes start with:
Question 14:
How do you create a method in C#?
Question 15:
How do you call a method in C#?
Question 16:
Which keyword is used to create a class in C#?
Question 17:
What is the correct way to create an object called myObj of MyClass?
Question 18:
In C#, it is possible to inherit fields and methods from one class to another.
Question 19:
What is the name of the 'special' class that represents a group of constants?
Question 20:
Which operator is used to multiply numbers?
Question 21:
Which access modifier makes the code only accessible within the same class?
Question 22:
How do you start writing an if statement in C#?
Question 23:
How do you start writing a while loop in C#?
Question 24:
Which keyword is used to return a value inside a method?
Question 25:
Which statement is used to stop a loop?
0 Comments