19. The permission bits of a file noname. can be set to _rws_ _x_ _x by the command.
Correct : D. none of the above
20. /bin/passwd has the user execution permission set to 's' because
Correct : D. all of these
21. If one doesn't want anyone else to read or write to a file named datfile, except through a program in a file filex , then he may use
Correct : D. both (a) and (b)
22. Writing a C program that accepts input from keyboard, rather than from a file is advantageous because
Correct : C. both (a) and (b)
23. Consider the following command that invokes the executable file a.out, with the following command line arguments a .out God loves you
argv( [1][2] )corresponds to the character
Correct : D. d
24. Which of the following string functions can be used to find the last occurrence of a given character in a given string?
Correct : D. none of the above
25. Consider the program main ( )
{
printf("He arose a victor from\n"); system ("date") ;
printf("the dark domain");
}
If a.out is the executable code corresponding to the above source code, then the command a.out > out f
Correct : A. redirects the output of date to file out f
26. The default permission bits of a file when it is created for the first time, is controlled by
Correct : C. umask value
27. Let x.c be a C source code. The command cc x.c > y
Correct : C. serves no purpose
28. A file x is created with the following contents
echo today is: date
If you type x.then