⟩ What is job number? a) same as PID b) a unique number, assigned to each job in shell c) both (a) and (b) d) none of the mentioned
b) a unique number, assigned to each job in shell
b) a unique number, assigned to each job in shell
This program will allocate the memory of ___ bytes for pointer "ptr". #include<stdio.h> #include<stdlib.h> int main() { int *ptr; ptr = realloc(0,sizeof(int)*10); return 0; } a) 0 b) 10 c) 40 d) none of the mentioned
Do you know what is the output of this program? #include<stdio.h> #include<stdlib.h> #include<string.h> int main() { char *ptr; memcpy(ptr,"google",11); printf("%sn",ptr); return 0; } a) google b) segmentation fault c) syntax error d) none of the mentioned
The connection between the device file and device driver is based on the a) name of device file b) number of device file c) both (a) and (b) d) none of the mentioned
In linux kernel 2.4, we can have a) 256 character drivers only b) 256 block drivers only c) 256 character drivers and 256 block drivers at the same time d) none of the mentioned
The kernel identifies the driver with its a) module b) major number c) device file d) none of the mentioned
The major number identifies the _____ associated with the device. a) driver b) protocol c) port d) none of the mentioned
The command "sed -n '/google/p' old.txt" will a) print the lines containing the word 'google' in file old.txt b) delete the lines containing the word 'google' in file old.txt c) will generate an error message d) none of the mentioned
Which option is used by sed to specify that the following string is an instruction or set of instructions? a) -n b) -e c) -f d) -i
Which command is used to replace word 'cat' (already present in the file) with 'mouse' at all places in a file 'old.txt' and save the result in a new file 'new.txt'? a) sed 's/cat/mouce/g' old.txt > new.txt b) sed 's/cat/mouse' old.txt new.txt c) sed '/s/cat/mouse/g' old.txt new.txt d) sed '/s/cat/mouse' old.txt > new.txt
Which sed command deletes the specified address range a) [address range]/s b) [address range]/p c) [address range]/d d) [address range]/y