.NET Programming MCQs | Page - 2

Dear candidates you will find MCQ questions of .NET Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.

M

Madhu • 12.07K Points
Tutor II

Q. Which of the following will be the correct output for the C#.NET code snippet given below?

Code:
String s1 = "ALL MEN ARE CREATED EQUAL";
String s2;
s2 = s1.Substring(12, 3);
Console.WriteLine(s2);
(A) ARE
(B) CRE
(C) CR
(D) REA
View Answer Discuss Share

M

Madhu • 12.07K Points
Tutor II

Q. Which of the following can implement an interface?
1.Data
2.Class
3.Enum
4.Structure
5.Namespace

(A) 1, 3
(B) 2, 4
(C) 3, 5
(D) 4 only
View Answer Discuss Share

M

Madhu • 12.07K Points
Tutor II

Q. Which of the following statements is correct?

(A) When a class inherits an interface it inherits member definitions as well as its implementations.
(B) An interface cannot contain the signature of an indexer.
(C) Interfaces members are automatically public.
(D) To implement an interface member, the corresponding member in the class must be public as well as static
View Answer Discuss Share

M

Madhu • 12.07K Points
Tutor II

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
View Answer Discuss Share

M

Madhu • 12.07K Points
Tutor II

Q. What is the size of a Decimal?

(A) 4 byte
(B) 8 byte
(C) 16 byte
(D) 32 byte
View Answer Discuss Share

M

Madhu • 12.07K Points
Tutor II

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

(A) Short
(B) Integer
(C) Long
(D) Byte
View Answer Discuss Share

M

Madhu • 12.07K Points
Tutor II

Q. Which of the following are value types?
1.Integer
2.Array
3.Single
4.String
5.Long

(A) 1, 2, 5
(B) 1, 3, 5
(C) 2, 4
(D) 3, 5
View Answer Discuss Share

M

Madhu • 12.07K Points
Tutor II

Q. Which of the following is NOT an Integer?

(A) Char
(B) Byte
(C) Integer
(D) Short
View Answer Discuss Share

M

Madhu • 12.07K Points
Tutor II

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

(A) Char
(B) Long
(C) Short
(D) Byte
View Answer Discuss Share

M

Madhu • 12.07K Points
Tutor II

Q. Select output of the given set of Code :

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
View Answer Discuss Share

Jump to

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.

Image