MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your C Language Interview knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
0,_4,_2,_1?$ |
| A. | 0, 5, 2, 1 |
| B. | -1, 4, 1, 1 |
| C. | 0, 5, 1, 0 |
| Answer» B. -1, 4, 1, 1 | |
| 2. |
Undefined behaviour |
| A. | Output will be 3 |
| B. | Output will be 6 |
| C. | Output will be 5 |
| Answer» D. | |
| 3. |
Which of the following operators has the lowest precedence? |
| A. | != |
| B. | && |
| C. | ?: |
| D. | , |
| Answer» E. | |
| 4. |
i value is 1 and j value is 1 |
| A. | i value is 0 and j value is 0 |
| B. | i value is 1 and j value is undefined |
| C. | i and j value are undefined |
| Answer» C. i and j value are undefined | |
| 5. |
Which of the following is NOT possible with any 2 operators in C? |
| A. | Different precedence, same associativity |
| B. | Different precedence, different associativity |
| C. | Same precedence, different associativity |
| D. | All of the mentioned |
| Answer» C. Same precedence, different associativity | |
| 6. |
In expression i = g() + f(), first function called depends on __________ |
| A. | Compiler |
| B. | Associativiy of () operator |
| C. | Precedence of () and + operator |
| D. | Left to write of the expression |
| Answer» E. | |
| 7. |
Which of the following method is accepted for assignment? |
| A. | 5 = a = b = c = d; |
| B. | a = b = c = d = 5; |
| C. | a = b = 5 = c = d; |
| D. | None of the mentioned |
| Answer» E. | |
| 8. |
Associativity of an operator is ___________ |
| A. | Right to Left |
| B. | Left to Right |
| C. | Random fashion |
| D. | Both Right to Left and Left to Right |
| Answer» E. | |