MCQOPTIONS
Saved Bookmarks
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 the C#.NET program given below? |
| A. | 1, 3 |
| B. | 2, 4 |
| C. | 4, 5 |
| D. | 1, 5 |
| Answer» E. | |
| 2. |
Which of the following statements are correct about subroutines used in C#.NET? |
| A. | 1, 2, 3 |
| B. | 2, 3, 5 |
| C. | 3, 5 |
| D. | 3, 4 |
| Answer» C. 3, 5 | |
| 3. |
If a function fun() is to receive an int , a Single & a double and it is to return a decimal then which of the following is the correct way of defining this function? |
| A. | decimal static fun( int i, Single j, double k) { ... } |
| B. | decimal fun( int i, Single j, double k) { ... } |
| C. | static decimal fun( int i, Single j, double k) { ... } |
| D. | static decimal fun( int i, Single j, double k) decimal { ... } |
| Answer» D. static decimal fun( int i, Single j, double k) decimal { ... } | |
| 4. |
Which of the following statements are correct about functions and subroutines used in C#.NET? |
| A. | 1, 2, 4 |
| B. | 2, 3, 5 |
| C. | 3, 5 |
| D. | 4, 5 |
| Answer» C. 3, 5 | |