| 9. | C#.NET structures are always value types.
|
|||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
| 10. | Which of the following statements are correct? 1 A struct can contain properties. 2 A struct can contain constructors. 3 A struct can contain protected data members. 4 A struct cannot contain methods. 5 A struct cannot contain constants. |
|||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
| 11. | Which of the following will be the correct result of the statement b = a in the C#.NET code snippet given below? struct Address |
|||||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
| 12. | How many bytes will the structure variable samp occupy in memory if it is defined as shown below? class Trial |
|||||||||
Answer: Option B Explanation: No answer description available for this question. Let us discuss.
|
| 13. | Which of the following statements is correct about the C#.NET code snippet given below? class Trial |
|||||||||
Answer: Option E Explanation: No answer description available for this question. Let us discuss.
|
| 14. | Which of the following is the correct way to define a variable of the type struct Emp declared below? struct Emp 1 Emp e(); e = new Emp(); 2 Emp e = new Emp; 3 Emp e; e = new Emp; 4 Emp e = new Emp(); 5 Emp e;
|
|||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
| 15. | Which of the following is the correct way of setting values into the structure variable e defined below? struct Emp |
|||||||||
Answer: Option A Explanation: No answer description available for this question. Let us discuss.
|
| 16. | Which of the following will be the correct output for the C#.NET program given below? namespace IndiabixConsoleApplication |
|||||||||
Answer: Option C Explanation: No answer description available for this question. Let us discuss.
|
