

MCQOPTIONS
Saved Bookmarks
This section includes 7 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. |
Which of the following function is more appropriate for reading in a multi-word string? |
A. | scanf() |
B. | printf() |
C. | gets() |
D. | puts() |
E. | |
Answer» D. puts() | |
2. |
The parameter passing mechanism for an array is |
A. | call by value |
B. | call by reference |
C. | call by value-result |
D. | None of the above |
Answer» C. call by value-result | |
3. |
The information about an array used in program will be stored in |
A. | Symbol Table |
B. | Activation Record |
C. | Dope Vector |
D. | Both A and B |
Answer» D. Both A and B | |
4. |
Array is an example of _______ type memory allocation. |
A. | Compile time |
B. | Run time |
C. | Both A and B |
D. | None of the above |
Answer» B. Run time | |
5. |
Array can be considered as set of elements stored in consecutive memory locations but having __________. |
A. | Same data type |
B. | Different data type |
C. | Same scope |
D. | None of these |
Answer» B. Different data type | |
6. |
What will be the address of the arr[2][3] if arr is a 2-D long array of 4 rows and 5 columns and starting address of the array is 2000? |
A. | 2048 |
B. | 2056 |
C. | 2052 |
D. | 2042 |
Answer» D. 2042 | |
7. |
A one dimensional array A has indices 1....75. Each element is a string and takes up three memory words. The array is stored at location 1120 decimal. The starting address of A[49] is |
A. | 1264 |
B. | 1164 |
C. | 1167 |
D. | 1267 |
Answer» B. 1164 | |