 
			 
			MCQOPTIONS
 Saved Bookmarks
				This section includes 4 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 is the correct sequence of compilation process? | 
| A. | Assembler -> Compiler -> Preprocessor -> Linking | 
| B. | Compiler -> Assenbler -> Preprocessor -> Linking | 
| C. | Preprocessor -> Compiler -> Assembler -> Linking | 
| D. | Assembler -> Compiler -> Linking -> Preprocessor | 
| E. | |
| Answer» D. Assembler -> Compiler -> Linking -> Preprocessor | |
| 2. | Why is calloc() function used for? | 
| A. | allocates the specified number of bytes | 
| B. | allocates the specified number of bytes and initializes them to zero | 
| C. | increases or decreases the size of the specified block of memory and reallocates it if needed | 
| D. | calls the specified block of memory for execution. | 
| Answer» C. increases or decreases the size of the specified block of memory and reallocates it if needed | |
| 3. | Why to use fflush() library function? | 
| A. | To flush all streams and specified streams | 
| B. | To flush only specified stream | 
| C. | To flush input/output buffer | 
| D. | Invalid library function | 
| Answer» B. To flush only specified stream | |
| 4. | # include<stdio.h>#include<stdlib.h>void fun(int *a){ a = (int*)malloc(sizeof(int));}int main(){ int *p; fun(p); *p = 6; printf("%dn",*p); return(0);}37.During preprocessing, the code #include gets replaced by the contents of the file stdio.h. Which is true? | 
| A. | During linking the code #include replaces by stdio.h | 
| B. | Yes | 
| C. | During execution the code #include replaces by stdio.h | 
| D. | During editing the code #include replaces by stdio.h | 
| Answer» C. During execution the code #include replaces by stdio.h | |