

MCQOPTIONS
Saved Bookmarks
This section includes 5 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. |
How can you write a[i][j][k][l] in equivalent pointer expression? |
A. | (((***(a+i)+j)+k)+l) |
B. | ((**(*(a+i)+j)+k)+l) |
C. | (*(*(*(a+i)+j)+k)+l) |
D. | *(*(*(*(a+i)+j)+k)+l) |
E. | |
Answer» E. | |
2. |
The reason for using pointers in a Cprogram is |
A. | Pointers allow different functions to share and modify their local variables. |
B. | To pass large structures so that complete copy of the structure can be avoided. |
C. | Pointers enable complex "linked" data structures like linked lists and binary trees. |
D. | All of the above |
Answer» E. | |
3. |
|
A. | A variable that stores address of an instruction |
B. | A variable that stores address of other variable |
C. | A keyword used to create variables |
D. | None of these |
Answer» C. A keyword used to create variables | |
4. |
In C, what is the meaning of following function prototype with empty parameter list |
A. | Function can only be called without any parameter |
B. | Function can be called with any number of parameters of any types |
C. | Function can be called with any number of integer parameters. |
D. | Function can be called with one integer parameter. |
Answer» C. Function can be called with any number of integer parameters. | |
5. |
Pick the correct statements. I. The body of a function should have only one return statement II. The body of a function may have many return statements. III. function can return only one value to the calling environment. IV. If return statement is omitted, then the function does its job but returns no value to the calling environment. |
A. | I and II |
B. | I and III |
C. | II and III |
D. | II anf IV |
Answer» D. II anf IV | |