⟩ How many links are created when we create a directory file? a) 1 b) 2 c) 3 d) 4
b) 2
b) 2
Which daemon manages the physical memory by moving process from physical memory to swap space when more physical memory is needed? a) Sched daemon b) Swap daemon c) Init daemon d) Process daemon
The process id of init process is a) -1 b) 0 c) 1 d) 2
The shell used for Single user mode shell is a) bash b) Csh c) ksh d) sh
Bootstrapping is also known as a) Quick boot b) Cold boot c) Hot boot d) Fast boot
At the end of kernel bootstrap, which process is started? a) /etc/init b) /etc/sched c) /etc/swap d) /etc/kernel
The process of starting up a computer is known as a) Boot Loading b) Boot Record c) Boot Strapping d) Booting
In this program the allocated memory block can store <pre lang="c" line="1" cssfile="hk1_style"> #include<stdio.h> #include<stdlib.h> int main() { int *ptr; ptr = malloc(10); return 0; } a) int b) char c) float d) all of the mentioned
Please tell me output of this program? #include<stdio.h> #include<stdlib.h> int main() { int *ptr; ptr = (int *)calloc(1,sizeof(int)); if (ptr != 0) printf("%dn",*ptr); return 0; } a) 0 b) -1 c) garbage value d) none of the mentioned
Program given below will allocate the memory of ___ bytes for pointer "ptr". #include<stdio.h> #include<stdlib.h> int main() { int *ptr; ptr = (int*)malloc(sizeof(int)*4); ptr = realloc(ptr,sizeof(int)*2); return 0; } a) 2 b) 4 c) 8 d) none of the mentioned
In which condition this prgram will print the string "google"? #include<stdio.h> #include<stdlib.h> int main() { int *ptr; ptr = (int *)malloc(sizeof(int)*10); if (ptr == NULL) printf("googlen"); return 0; } a) if the memory could not be allocated to the pointer "ptr" b) if the memory has been allocated to the pointer "ptr" successfully c) it will never print d) none of the mentioned