PLDC Question BAnk MCQ II 2023-24
PLDC Question BAnk MCQ II 2023-24
PLDC Question BAnk MCQ II 2023-24
_________________________________________________________________________________
a) Another structure
b) Function
c) Array
d) None of the mentioned
Most appropriate sentence to describe unions is
Union contain members of different data types which share the same storage
B.
area in memory
A. union-name.member
B. union-pointer->member
C. Both a & b
D. None of the mentioned
a) int
b) double
c) void
d) File
a) A character string containing the name of the file & the second argument is the mode
b) A character string containing the name of the user & the second argument is the mode
c) A character string containing file pointer & the second argument is the mode
d) None of the mentioned
a) Ram
b) Hard disk
c) Rom
d) None
A mode which is used to open an existing file for both reading and writing ______
a) ”W”
b) ”W+”
c) ”R+”
d) ”A+”
a) pits()
b) putc()
c) fputs()
d) fgets()
a) printf()
b) fprintf()
c) puts()
d) fputs()
A. int *
B. int **
C. void *
D. void **
A. Dealloc()
B. free()
C. Both A and B
D. None of the above
Among 4 header files, which should be included to use the memory allocation functions like
malloc(), calloc(), realloc() and free()?
A. #include<string.h>
B. #include<stdlib.h>
C. #include<memory.h>
D. Both b and c
(c) It is used to modify the size of the previously allocated memory space.