MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your C Programming knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of the following is an invalid assignment operator? |
| A. | a %= 10; |
| B. | a /= 10; |
| C. | a |= 10; |
| D. | None of the mentioned |
| Answer» E. | |
| 2. |
What will be the final value of c in the following C statement? (Initial value: c = 2) |
| A. | c = 1; |
| B. | c = 2; |
| C. | c = 3; |
| D. | c = 4;View Answer |
| Answer» E. | |
| 3. |
Operation “a = a * b + a” can also be written as ___________a) a *= b + 1;b) (c = a * b)!=(a = c + |
| A. | a *= b + 1;b) (c = a * |
| B. | (c = a * b)!=(a = c + a); |
| C. | a = (b + 1)* a; |
| D. | All of the mentioned |
| Answer» E. | |
| 4. |
What will be the value of the following assignment expression? |
| A. | 2 |
| B. | True |
| C. | 1 |
| D. | 0View Answer |
| Answer» B. True | |
| 5. |
What is the type of the following assignment expression if x is of type float and y is of type int? |
| A. | int |
| B. | float |
| C. | there is no type for an assignment expression |
| D. | doubleView Answer |
| Answer» B. float | |