C# Online Test

  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# MCQ Test to Test your Knowledge 

We have listed below the best C# MCQ Questions, that checks your basic knowledge of C#. This C# MCQ Test contains 30 best C# Multiple Choice Questions. You have to choose the right answer for every question. You can also download the C# MCQ Pdf for the best preparation of the C#/C sharp Interview.

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
  • Compare To()
  • ConCat()
  • Compare()
  • Copy()
View Answer
  • ;
  • = ;
  • ;
  • = ;
View Answer
  • long, ulong, uint
  • long, float, double
  • long, float, ushort
  • long, ulong, ushort
Download Free : C# MCQ PDF
View Answer
  • ToSingle
  • ToInt64
  • ToSbyte
  • ToInt32
View Answer
  • Protected
  • Internal
  • Private
  • Public
View Answer
  • static
  • This
  • base
  • extend
View Answer
  • Interface
  • interface
  • intf
  • Intf
View Answer
  • String(void)
  • String()
  • String(0)
  • All of the above
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
  • Queue
  • BitArray
  • Stack
  • All of the above
View Answer
  • Process
  • Math
  • System
  • Object
View Answer
  • Absolute()
  • Abs()
  • Absolutevariable()
  • All of the above
View Answer
  • 8.0
  • 7.0
  • 9.0
  • 9.1
View Answer
  • .cs
  • .csx
  • .csp
  • both .cs & .csx
View Answer
  • 0
  • 1
  • True
  • False
View Answer
  • To get desired data
  • To store a value of one data type into a variable of another data type
  • To prevent situations of runtime error during change or conversion of data type
  • None of above
View Answer
  • Explicit Conversion
  • Implicit Conversion
  • both Explicit & Implicit Conversion
  • None of above
View Answer
  • Potentially Unsafe
  • Results in loss of data
  • Makes program memory heavier
  • None of above
View Answer
  • /
  • **
  • +
  • %
View Answer
  • Only once.
  • As many times as we call it.
  • Any number of times before the object is deleted.
  • None of above
View Answer
  • Friend Assemblies
  • Private Assemblies
  • Public Assemblies
  • Shared Assemblies
View Answer
  • System.Type
  • System.Base
  • System.Object
  • System.Root
View Answer