⟩ X86-32 uses which programming model? a) IP16 b) IP32 c) ILP16 d) ILP32
d) ILP32
d) ILP32
What is stored in logfile as per below mentioned code if we execute ./a.out > logfile? int main() { int fd; close(1); fd = open("logfile",O_RDWR, 0744); write(fd, "Hello", 5); printf("Worldn"); return 0; } a) Hello b) HelloWorld c) World d) None
Code snippet (file1 size is 2024) f1 = fopen (file1, RDWR, RWX) lseek(f1,1024,SEEK_SET) write(f1,buf,10) What is offset now. a) 1024 b) 1034 c) 2034 d) 2054
Code snippets str1="45678n" str2="123n" f1 = fopen(file1,RDWR,RWX) f2 = dup(f1) write(f1,str1,len_str1) write(f2,str2,len_str2) o/p a) 12378 b) 123(newline)8(newline) c) 123(newline)78(newline) d) 45678(newline)123(newline)
For the below mentioned code int main() { int fd; fd = open("logfile", O_CREAT|O_RDWR, 0600); lseek(fd, 5, SEEK_CUR); write(fd, "Hello", 5); return 0; } What is the logfile size now if it's initially was 1024 bytes? a) 5 b) 1024 c) 1029 d) 1034
Where can I find the printer in the file structure? a) /etc b) /dev c) /lib d) /printer
Which of the following statement is true? a) The cp command will preserve the meta data of the file b) The sort command by default sorts in the numeric order c) The mv command will preserve the meta data of the file d) The command ps will display the filesystem usage
Creation of hardlinks that point across partitions a) is allowed only to root user b) Can be done by all users c) The effects are unspecified d) is not allowed
Which command is used to change permissions of files and directories? a) mv b) chgrp c) chmod d) set
If two files on same partition point to the same inode structure they are called a) Soft links b) Hard links c) Alias d) Special files
Deleting a soft-link a) Deletes the destination file b) Deletes both the softlink and the destination file c) Deletes just the softlink d) backup of the destination is automatically created