MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Basic C knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the result of the expression 10-2+20 > |
| A. | Syntax error |
| B. | No resulting value found |
| C. | False |
| D. | True |
| Answer» B. No resulting value found | |
| 2. |
What is the result of the expression 10-2+20>2*14-2? |
| A. | Syntax error |
| B. | No resulting value found |
| C. | False |
| D. | True |
| Answer» E. | |
| 3. |
What is the result of the expression 10-5>3*4-2? |
| A. | Syntax error |
| B. | No resulting value found |
| C. | False |
| D. | True |
| Answer» D. True | |
| 4. |
What is the comparison operator to find if two values are equal? |
| A. | equalsto |
| B. | = |
| C. | EqualsTo |
| D. | Equals |
| Answer» C. EqualsTo | |
| 5. |
Comparison operators are also termed as __________ |
| A. | Comparators |
| B. | Comparables |
| C. | Relations |
| D. | Relational operators |
| Answer» E. | |
| 6. |
What is wrong with the following if-else structure? |
| A. | No error |
| B. | Conditions not in brackets |
| C. | No ; after statements |
| D. | ‘Then’ should have been ‘then’View Answer |
| Answer» B. Conditions not in brackets | |
| 7. |
The set of statements contained in each path is referred to as a __________ |
| A. | Condition block |
| B. | Statement block |
| C. | Path block |
| D. | IfElse block |
| Answer» C. Path block | |
| 8. |
The condition must be a __________ expression. |
| A. | Integer |
| B. | Double |
| C. | Boolean |
| D. | Short |
| Answer» D. Short | |
| 9. |
The __________ keyword is necessary only in a dual-alternative selection structure. |
| A. | Alternative |
| B. | Next |
| C. | Dual |
| D. | Else |
| Answer» E. | |
| 10. |
In Visual Basic __________ is used for coding single-alternative and dual-alternative selection structures. |
| A. | If…Then…Else statement |
| B. | Switch-Case block |
| C. | Recursion |
| D. | function overloading |
| Answer» B. Switch-Case block | |