Top 150+ Solved C# Programming MCQ Questions Answer
Q. ___________ namespace is not defined in the .NET class library.
a. System.CodeDom
b. System
c. System.IO
d. System.Text
Q. Dot Net Framework consists of :
a. Common language runtime
b. Set of class libraries
c. Common language runtime and set of class libraries
d. None of above
Q. Which of the following is the root of the .NET type hierarchy?
a. System.Type
b. System.Base
c. System.Parent
d. System.Object
Q. Code that targets the Common Language Runtime is known as
a. Unmanaged
b. Distributed
c. Managed Code
d. Native Code
Q. Which of the following statements correctly define .NET Framework?
a. It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services.
b. It is an environment for developing, building, deploying and executing only Web Applications.
c. It is an environment for developing, building, deploying and executing Distributed Applications.
d. It is an environment for developing, building, deploying and executing Web Services.
Q. Which of the following utilities can be used to compile managed assemblies into processor-specific native code?
a. gacutil
b. ngen
c. sn
d. ildasm
Q. Which of the following is the correct size of a Decimal datatype?
a. 8 bytes
b. 4 bytes
c. 10 bytes
d. None of the above
Q. Which of the following is the correct ways to set a value 3.14 in a variable pi such that it cannot be modified?
a. float pi = 3.14F;
b. #define pi 3.14F;
c. const float pi = 3.14F;
d. const float pi; pi = 3.14F;