MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
C++ supports multidimensional arrays. |
| A. | Yes |
| B. | No |
| C. | Can be yes or no |
| D. | Can not say |
| E. | |
| Answer» B. No | |
| 2. |
Which of the following correctly declares an array in C++? |
| A. | array{10}; |
| B. | array array[10]; |
| C. | int array; |
| D. | int array[10]; |
| Answer» E. | |
| 3. |
The number of values between braces { } can not be larger than the number of elements that we declare for the array between square brackets [ ]. |
| A. | TRUE |
| B. | FALSE |
| C. | Can be true or false |
| D. | Can not say |
| Answer» B. FALSE | |
| 4. |
The arraySize must be an integer constant greater than ? |
| A. | 0 |
| B. | 1 |
| C. | 2 |
| D. | 3 |
| Answer» B. 1 | |
| 5. |
The lowest address of array is? |
| A. | 0 |
| B. | 1 |
| C. | 2 |
| D. | 3 |
| Answer» B. 1 | |
| 6. |
All arrays consist of __________ memory locations. |
| A. | simple |
| B. | contiguous |
| C. | distant |
| D. | None of the above |
| Answer» C. distant | |
| 7. |
An array is used to store a collection of data. |
| A. | TRUE |
| B. | FALSE |
| C. | Can be true or false |
| D. | Can not say |
| Answer» B. FALSE | |
| 8. |
_________________ which stores a fixed-size sequential collection of elements of the same type. |
| A. | loop |
| B. | array |
| C. | exception |
| D. | number |
| Answer» D. number | |