Top 150+ Solved C# Programming MCQ Questions Answer

From 31 to 45 of 144

Q. Which of the following define the rules for .Net Languages?

a. GAC

b. CLS

c. CTS

d. CLR

  • b. CLS

Q. ___________ namespace is not defined in the .NET class library.

a. System.CodeDom

b. System

c. System.IO

d. System.Text

  • a. System.CodeDom

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

  • c. Common language runtime and set of class libraries

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

  • d. System.Object

Q. Code that targets the Common Language Runtime is known as

a. Unmanaged

b. Distributed

c. Managed Code

d. Native Code

  • c. Managed 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.

  • a. It is an environment for developing, building, deploying and executing Desktop Applications, Web Applications and Web Services.

Q. Which of the following is NOT an Integer?

a. Char

b. Byte

c. Integer

d. Long

  • a. Char

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

  • 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;

  • c. const float pi = 3.14F;
Subscribe Now

Get All Updates & News