MCQOPTIONS
Saved Bookmarks
This section includes 9 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. |
Which of the following instructs a function to return the contents of the decStateTax variable? |
| A. | Return decStateTax |
| B. | Return ByVal decStateTax |
| C. | Send decStateTax |
| D. | SendBack decStateTax |
| Answer» B. Return ByVal decStateTax | |
| 2. |
To determine whether a variable is being passed to a procedure by value or by reference, you will need to examine ________________ |
| A. | the Call statement |
| B. | the procedure header |
| C. | the statements entered in the procedure |
| D. | the procedure footer |
| Answer» B. the procedure header | |
| 3. |
Each memory location listed in the parameterList in the procedure header is referred to as _________________ |
| A. | an address |
| B. | a constraint |
| C. | a parameter |
| D. | a value |
| Answer» D. a value | |
| 4. |
________________ statement is the last statement in the function. |
| A. | Footer |
| B. | Header |
| C. | Return |
| D. | Call |
| Answer» D. Call | |
| 5. |
Between the function’s _____________ and ___________________ you enter the instructions to process when the function is invoked. |
| A. | Header and footer |
| B. | Parameters and arguments |
| C. | Call and return |
| D. | Return type and function name |
| Answer» B. Parameters and arguments | |
| 6. |
A function can receive information either by value or by _________________ |
| A. | Reference |
| B. | Address |
| C. | Pointer |
| D. | Value |
| Answer» B. Address | |
| 7. |
A function’s header includes the ___________ data type. |
| A. | As |
| B. | To |
| C. | From |
| D. | By |
| Answer» B. To | |
| 8. |
The functions header and footer contains the _______________ keyword. |
| A. | Function |
| B. | Struct |
| C. | Sub |
| D. | Class |
| Answer» B. Struct | |
| 9. |
_____________________ returns a value after performing its specific task. |
| A. | Function Procedure |
| B. | Sub procedure |
| C. | Sub block |
| D. | Structure |
| Answer» B. Sub procedure | |