Choose the correct statements
A. | The function stat refers a file by its name. |
B. | The function stat refers a file by its tile descriptor |
C. | The function fstat refers a file by its file descriptor. |
D. | The function fstat refers a file by its name. |
Option: C Explanation : Click on Discuss to view users comments. |
Which of the following fields in the structure stat, has information about the permission setting of a file?
A. | st_gid |
B. | st mode |
C. | st_ino |
D. | st_uid |
Option: B Explanation : Click on Discuss to view users comments. |
To simulate the command "system". which of the system calls - fork, wait, and excel isdare to be used?
A. | fork and wait |
B. | all three |
C. | fork and excel |
D. | wait and excel |
Option: B Explanation : When a process executes a system command like system("date"), it forks a child process, waits for it to execute the date command and terminates. This can be implemented by the child making the call exec("/bin/date", "date", (chr *)0) Click on Discuss to view users comments. |
Syllabus covered in this section is-
This Section covers Unix Questions Answers .These questions can be used for the preparation of various competitive and academic exams like
Who can benefit
Various Search Terms Used For This Section Are