Explore topic-wise MCQs in Attributes .

This section includes 7 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 are value types? 1.Integer 2.Array 3.Single 4.String 5.Long

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

Which of the following statements are correct? 1.We can assign values of any type to variables of type object. 2.When a variable of a value type is converted to object, it is said to be unboxed. 3.When a variable of type object is converted

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

Which of the following statements are correct about datatypes in C#.NET?

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

Which of the following are the correct way to initialise the variables i and j to a value 10 each?

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

What will be the output of the following code snippet when it is executed?

A. 0.1
B. 1.0
C. 1.1
D. 11
Answer» B. 1.0
6.

Which of the following are value types?

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

Which of the following statements are correct about data types?

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