MCQOPTIONS
Saved Bookmarks
This section includes 8 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. |
Is there an error in the below code? |
| A. | No error |
| B. | Runtime Error |
| C. | Syntax error |
| D. | Compilation ErrorView Answer |
| Answer» E. | |
| 2. |
The code contained in the ______ allows an application to retrieve the contents of the Private variable associated with the property. |
| A. | Set Block |
| B. | Retrieve |
| C. | Get Block |
| D. | Getter Block |
| Answer» D. Getter Block | |
| 3. |
The ________ keyword indicates that an application can set the property’s value, but it cannot retrieve the value. |
| A. | Receive |
| B. | Write |
| C. | WriteOnly |
| D. | ReceiveOnly |
| Answer» D. ReceiveOnly | |
| 4. |
The ________ keyword indicates that the property’s value can be retrieved (read) by an application. |
| A. | Access |
| B. | Get |
| C. | Read |
| D. | by an application.a) Accessb) Getc) Readd) ReadOnly |
| Answer» E. | |
| 5. |
You create a Public property using a _______ procedure. |
| A. | SetProp |
| B. | Property |
| C. | Access |
| D. | SetAccess |
| Answer» C. Access | |
| 6. |
_______ variables of a class are not visible to applications that use the instance of that class. |
| A. | Public |
| B. | Private |
| C. | Default |
| D. | Static |
| Answer» C. Default | |
| 7. |
It is disadvantageous to use public variables in classes because ___________ |
| A. | Its values cannot be initialized |
| B. | It results in compilation error |
| C. | It cannot be accessed by other variables |
| D. | It cannot control its values |
| Answer» E. | |
| 8. |
_______ can be used instead of a Structure statement. |
| A. | Class |
| B. | Struct |
| C. | StructDef |
| D. | Sdef |
| Answer» B. Struct | |