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. |
To declare a class-level named constant you declare it as __________ |
| A. | Public |
| B. | Dynamic |
| C. | Private |
| D. | Static |
| Answer» D. Static | |
| 2. |
Unintentional errors in application by declaring variables can be reduced by __________ |
| A. | Giving them Small names |
| B. | Declaring them with a small sized data type |
| C. | Giving them minimum scope possible |
| D. | Making them class variables |
| Answer» D. Making them class variables | |
| 3. |
Using a named constant is advantageous because to change a value in future, change __________ |
| A. | The value in the Const statement |
| B. | The value of the variable wherever it appears in the program |
| C. | The value of the variable anywhere in the program |
| D. | The value of the variable in one of the procedures in the program |
| Answer» B. The value of the variable wherever it appears in the program | |
| 4. |
What happens when a procedure containing the following statements ends? |
| A. | Both values lose their values |
| B. | Dim variable loses its value |
| C. | Static variable loses its value |
| D. | Both variables retain their valuesView Answer |
| Answer» C. Static variable loses its value | |
| 5. |
What is wrong with the expression “static dblPi AsDouble ”? |
| A. | Double is written |
| B. | Nothing is wrong |
| C. | “Static” starts with a “S” |
| D. | Value is not given |
| Answer» D. Value is not given | |
| 6. |
What is wrong with the expression “const dblPi As Double = 3.141593”? |
| A. | Double is written |
| B. | Name should be DBLPi |
| C. | “const” starts with a “C” |
| D. | Value is too large |
| Answer» D. Value is too large | |
| 7. |
Named constants are used because __________ |
| A. | Because they take up less space in memory |
| B. | Because they make documentation and code modification easier |
| C. | Because they can be easily accessed by procedures |
| D. | Because they are easily declared |
| Answer» C. Because they can be easily accessed by procedures | |
| 8. |
A __________ cannot change its value while the application is running. |
| A. | Constant variable |
| B. | Class variable |
| C. | Named constant |
| D. | Static constant |
| Answer» D. Static constant | |
| 9. |
Static variable can only be used in the __________ in which it is declared. |
| A. | Class |
| B. | Any procedures in the form |
| C. | Any form |
| D. | Only the Procedure it is declared in |
| Answer» E. | |
| 10. |
__________ is a variable that remains in memory, and retains its value even after the procedure declaring it ends. |
| A. | Procedure-level variable |
| B. | Class-level variable |
| C. | Static variable |
| D. | Dynamic variable |
| Answer» D. Dynamic variable | |