Explore topic-wise MCQs in Attributes .

This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Attributes knowledge and support exam preparation. Choose a topic below to get started.

1.

Which of the following statements are correct about objects of a user-defined class called Sample ?

A. 1, 3
B. 2, 4
C. 4, 5
D. 3, 5
Answer» D. 3, 5
2.

Which of the following statements are correct about the this reference?

A. 1, 4
B. 2, 3, 5
C. 3, 4
D. 2, 5
Answer» C. 3, 4
3.

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

A. 0 0
B. 10 5.4
C. 10 5.400000
D. 10 5
Answer» B. 10 5.4
4.

Which of the following is the correct way to create an object of the class Sample ?

A. 1, 3
B. 2, 4
C. 1, 2, 3
D. 1, 4
Answer» B. 2, 4