Reviewer
I- Multiple Choice
1. _______ can be used to explain C# code, and to make it more readable. It can also be used to
prevent execution when testing alternative code.
A. Output B. Comment
C. Data D. Variable
2. Single-line comments start with ___ forward slashes.
A. One B. Two
C. Three D. Four
3. _____ are containers for storing data values.
A. Output B. Comment
C. Data D. Variable
4. What variable type storing texts?
A. int B. char
C. bool D. string
5. What variable type storing whole number?
A. int B. char
C. bool D. string
6. What is the correct way to declare variable?
A. int Hatdog = cheese; B. int 23 = number;
C. string Hi = “Ali”; D. string 06 = birthday;
7. To output values or print text in C#, you can use the8_____8method:
A. Console.Readkey(); B. Console.Write()
C. Console.Writeline(); D. Console.WriteLine();
8. use8______8to get user input.
A. Console.ReadKey(); B. Console.Readline();
C. Console.ReadLine(); D. Console.WriteLine();
9. Which is NOT belong to operators?
A. * B. /
C. % D. $
10. What is the function of “%”?
A. Returns the division remainder B. Get the quotient