C# MCQ Quiz

  1. C# was developed by
  2. Which of the following is the valid size of float data type?
  3. Which of the following String method is used to compare two strings with each other?
  4. Which of the following Syntax is used for declaration and initialization of data variable?
  5. Which of the following is the subset of ‘int’ data type?
  6. _________converts a type to a signed byte type in C#.
  7. Which of the following option is default access specifier of a class?
  8. Which of the following keyword is used to refer baseclass constructor to subclass constructor?
  9. Which of the following keyword is used for correct implementation of an interface in C#.NET?
  10. Which of following constructors is used to create an empty String object?
  11. We use _________ to fully abstract a class from its implimentation.
  12. C# class is inherit the multiple ____________.
  13. Which of the following option is correct about indexer?
  14. Which of the following option is correct about ReadOnly variables?
C# MCQ

Take C# Quiz To test your Knowledge 

Below are few C# MCQ test that checks your basic knowledge of C#. This C# Test contains around 20 questions of multiple choice with 4 options. You have to select the right answer to a question. You can see the correct answer by clicking view answer link.

Also, Read Best C# interview questions.

  • Bjarne Stroustrup
  • Anders Hejlsberg
  • Dennis M. Ritchie
  • Rasmus Lerdorf
View Answer
  • 4 Bytes
  • 6 Bytes
  • 8 Bytes
  • 10 Bytes
View Answer
  • <data type><var_name>;
  • <data type><var_name> = <Value>;
  • <var_name><data type>;
  • <var_name> = <value>;
View Answer
  • long, ulong, uint
  • long, float, double
  • long, float, ushort
  • long, ulong, ushort
View Answer
  • Interfaces
  • objects
  • Packages
  • Function Definitions
View Answer
  • Static classes
  • Interfaces
  • Classes
  • Abstract classes
View Answer
  • It allows enumerator with class
  • It creates index for instances of a class.
  • It allows an instance of a class to be indexed like an array
  • None of These
View Answer
  • Value will be assigned when it accessed first time
  • Value will be assigned at compile time.
  • Value will be assigned at runtime.
  • All of the above
View Answer
  • Local Integration Query
  • Language Integrated Query
  • Language Included Query
  • None of the above
View Answer
  • int intArray[] = new int[5];
  • int[] intArray = new int[];
  • int[5] intArray = new int[];
  • int[] intArray = new int[5];
View Answer
  • Pre-defined data type
  • Copy of class that is not initialized.
  • Copy of class creating by an existing instance.
  • Copy of class which leads to memory allocation.
View Answer
  • Absolute()
  • Abs()
  • Absolutevariable()
  • All of the above