C Sharp Multiple Choice Questions

  • 1) Which among the following is NOT an exception?
  • 2) An _______ is a symbol that tells the computer to perform certain mathematical or logical manipulations.
  • 3) The class which derives the properties of another class is called _______ class.
  • 4) A parameter can be passed to a function by __________.
  • 5) Boxing converts a value type on the stack to an ______ on the heap.
  • 6) _______ class provides forward-only and read-only access to dat
  • 7) Static class can have _________ members.
  • 8) ______ function provides string representation of the object.
  • 9) An ____ is a group of contiguous or related data items that share a common name.
  • 10) Objects cannot be created for _________ class.
  • 11) ______causes the loop to continue with the next iteration after skipping any statements in between.
  • 12) ________ returns the size of a struct in bytes
  • 13) Multidimensional arrays are sometimes called _______ Arrays.
  • 14) _____ parameters are used to pass results back to the calling metho
  • 15) The __________________ block is guaranteed to be executed regardless of whether an exception is thrown.
  • 16) Defining two methods with the same name but with different parameters is calle
  • 17) An _______________________ is a block of code designed to handle the exception you have thrown.
  • 18) _____ is an accessor that sets the value of a property.
  • 19) A variable declared inside a method is called a________variable
  • 20) class Test: Form { }
  • 21) _________ is the right way of declaring an array.
  • 22) _________ object represents a connection to a data source.
  • 23) What is the process of defining a method in terms of itself, that is a method that calls itself?
  • 24) Which of the following security features can be used by .NET applications?
  • 25) The code that runs under CLR is called ___?
  • 26) Which of the following is NOT an Exception?
  • 27) Choose the wrong statement about the properties used in C#.NET?
  • 28) In C#, the statement that is used to replace multiple if statements is called?
  • 29) Which file contains configuration data for each unique URl resource used in project?
  • 30) Number of digits upto which precision value of float data type is valid?
  • 31) In C#, Save the file using?
  • 32) The first line of the program is?
  • 33) Which of the following not true about C#?
  • 34) CLI in C# Stands for?
  • 35) Which of the following statements are correct for C# language?
  • 36) The point at which an exception is thrown is called the _____.
  • 37) Choose the wrong statement about properties used in C#.Net?
  • 38) The data members of a class by default are?
  • 39) Which of the following is incorrect about constructors?
  • 40) Which of the following statements is incorrect about delegate?
  • 41) The default scope for the members of an interface is _____.
  • 42) Which of the following is the root of the .NET type hierarchy?
  • 43) Which of the following assemblies can be stored in Global Assembly Cache?
  • 44) How many times can a constructor be called during lifetime of the object?
  • 45) Which of the following is not an arithmetic operator in C#.NET?
  • 46) What are the disadvantages of Explicit Conversion?
  • 47) What is the need for ‘Conversion of data type’ in C#?
  • 48) what is the latest version of c#?
  • 49) ____return absolute value of a variable.
  • 50) Which of the following class contains only floating point functions?
  • 51) Which of the following is not the ordered collection class?
  • 52) Which of the following is a Reference?
  • 53) What is the full form of LINQ?
  • 54) Which of the following option is correct about ReadOnly variables?
  • 55) Which of the following option is correct about indexer?
  • 56) C# class is inherit the multiple ____________.
  • 57) We use _________ to fully abstract a class from its implimentation.
  • 58) 10. Which of following constructors is used to create an empty String object?
  • 59) Which of the following keyword is used to refer baseclass constructor to subclass constructor?
  • 60) Which of the following option is default access specifier of a class?
  • 61) _______converts a type to a signed byte type in C#.
  • 62) Which of the following is the subset of ‘int’ data type?
  • 63) Which of the following String method is used to compare two strings with each other?
  • 64) Which of the following is the valid size of float data type?
  • 65) Which of the following preprocessor directive allows generating a level one warning from a specific location in your code in C#?
  • 66) Which of the following preprocessor directive allows testing a symbol or symbols to see if they evaluate to true in C#?
  • 67) Which of the following converts a type to an unsigned int type in C#?
  • 68) Which of the following converts a type to a 32-bit integer in C#?
  • 69) Which of the following converts a type to a byte value in C#?
  • 70) Which of the following variable types can be assigned a value directly in C#?
  • 71) Which is the correct way to declare an object of the class in C#?
  • 72) Which keyword is used to define a class in C#?
  • 73) Which array property is used to get the total number of elements in C#?
  • 74) To declare an array, define the variable type with ___.
  • 75) What is String.Length in C#?
  • 76) Which is the correct method to convert given string in uppercase?
  • 77) Which is the base class of the String() Constructor?
  • 78) What is String in C# meant for?
  • 79) What is the use of 'throw' statement in C#?
  • 80) Which is the correct for() statement to run an infinite loop?
  • 81) What is 'Console' in C#?
  • 82) Which is the correct C# statement to convert a float value to int explicitly?
  • 83) Which is the correct order for explicit type conversion to convert a larger to a smaller type in C#?
  • 84) Which is the correct order for implicit type conversion to convert a smaller to a larger type in C#?
  • 85) Which is not a valid C# data type?
  • 86) What is the correct syntax to define a C# constant?
  • 87) Which C# keyword is used to define a constant?
  • 88) Which data type is used to store text value in C#?
  • 89) In C#, the multi-line comments placed within the ___.
  • 90) In C#, a single-line comment starts with ___.
  • 91) Every C# statement is terminated by ___.
  • 92) Which symbols are used to mark the beginning and end of a code block?
  • 93) SOAP in C# stands for ___.
  • 94) What does the CLR in C# do?
  • 95) What is CLR in C#?
  • 96) .Net CLR is equivalent to?
  • 97) CLR stands for ___.
  • 98) Who is the founder of C# programming language?
  • 99) What is the extension of a C# language file?
  • 100) C# is a programming language, developed by ___.