

MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Csharp knowledge and support exam preparation. Choose a topic below to get started.
1. |
What will be the final value of j in the following C code? |
A. | 0 |
B. | 10 |
C. | Depends on the compiler |
D. | Depends on language standardView Answer |
Answer» B. 10 | |
2. |
y = 5, m = 6 ; y = 5, m = ? |
A. | y = 6, m = 6; y = 7, m = 6 |
B. | y = 5, m = 6; y = 7, m = 7 |
C. | y = 5, m = 6; y = 7, m = 8 |
Answer» C. y = 5, m = 6; y = 7, m = 8 | |
3. |
-2147483648 |
A. | -1 |
B. | Run time error |
C. | 8 |
Answer» B. Run time error | |
4. |
Which among the following is NOT a logical or relational operator? |
A. | != |
B. | == |
C. | || |
D. | = |
Answer» E. | |
5. |
6 2 |
A. | |
B. | 8 1 |
Answer» C. | |
6. |
Syntax error |
A. | 1 |
B. | 5 |
C. | 10 |
Answer» C. 10 | |
7. |
What is the result of a logical or relational expression in C? |
A. | True or False |
B. | 0 or 1 |
C. | 0 if an expression is false and any positive number if an expression is true |
D. | None of the mentioned |
Answer» B. 0 or 1 | |