Top 50+ Solved .NET Programming MCQ Questions Answer

From 1 to 15 of 49

Q. A variable which is declared inside a method is called a________variable

a. Serial

b. Local

c. Private

d. Static

  • b. Local

Q. Which is the String method used to compare two strings with each other ?

a. Compare To()

b. Compare()

c. Copy()

d. ConCat()

  • b. Compare()

Q. Minimum and Maximum range of values supported by ‘float’ data type are ?

a. 1.5 * 10 ^-40 to 3.4 * 10 ^38

b. 1.5 * 10 ^-45 to 3.4 * 10 ^30

c. 1.5 * 10 ^-45 to 3.4 * 10 ^38

d. 1.5 * 10 ^-45 to 3.4 * 10 ^37

  • c. 1.5 * 10 ^-45 to 3.4 * 10 ^38

Q. Type of Conversion in which compiler is unable to convert the datatype implicitly is ?

a. ushort to long

b. int to uint

c. ushort to long

d. byte to decimal

  • b. int to uint

Q. Select output of the given set of Code :static void Main(string[] args){String name = "Dr.Gupta";Console.WriteLine("Good Morning" + name);}

a. Dr.Gupta

b. Good Morning

c. Good Morning Dr.Gupta

d. Good Morning name

  • c. Good Morning Dr.Gupta

Q. Which of the following is an 8-byte Integer?

a. Char

b. Long

c. Short

d. Byte

  • b. Long

Q. Which of the following is NOT an Integer?

a. Char

b. Byte

c. Integer

d. Short

  • a. Char

Q. Which of the following are value types?1.Integer2.Array3.Single4.String5.Long

a. 1, 2, 5

b. 1, 3, 5

c. 2, 4

d. 3, 5

  • b. 1, 3, 5

Q. Which of the following does not store a sign?

a. Short

b. Integer

c. Long

d. Byte

  • d. Byte

Q. What is the size of a Decimal?

a. 4 byte

b. 8 byte

c. 16 byte

d. 32 byte

  • c. 16 byte

Q. Which of the following is the correct size of a Decimal datatype?

a. 8 Bytes

b. 4 Bytes

c. 10 Bytes

d. 16 Bytes

  • d. 16 Bytes
Subscribe Now

Get All Updates & News