C# in Random level
/20
0
:
0
Submit
Total 20 question (100 marks)
1. What is the name of the 'special' class that represents a group of constants?
2. How do you start writing an if statement in C#?
3. Which of the following C# keywords has nothing to do with multithreading?
4. Which of the following is true for ReadOnly variables?
5. Which of the following are value types in C#?
6. What is an indexer?
7. Which of the following is the correct way of declaring an array in C#?
8. Which of the following statements is true?
9. String is ______.
10. What will be the output of the following code? var greet = "Hello "; var name = "CShap"; Console.WriteLine($"{greet} {name}");
11. What will be the output of the following program? static void Main(string[] args) { string str1, str2; str1 = "Cshap";
12. How many Bytes are stored by Decimal Datatype in C# .net?
13. Struct is a _____.
14. To declare an array in C#, define the variable type with:
15. Which of the following converts a type to a specified type in C#?
16. C# is an alias of C++
17. If a method is marked as protected internal, who can access it?
18. Which operator is used to multiply numbers?
19. The partial class allows ________.
20. Which of these statements correctly declares a two-dimensional integer array in C#?
Next
Previous