adplus-dvertising
frame-decoration

Question

Which of the following system call is used for opening or creating a file?

a.

read

b.

write

c.

open

d.

close

Answer: (c).open

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following system call is used for opening or creating a file?

Similar Questions

Discover Related MCQs

Q. There are ___ modes of opening a file.

Q. Which of the following mode is used for opening a file in both reading and writing?

Q. open system call returns the file descriptor as ___

Q. Which of the following system call is used for closing a file?

Q. close system call returns ____

Q. ____ system call is used for writing to a file.

Q. write system call returns -1 when ___________

Q. ____ system call is used for positioning the offset pointer.

Q. Which of the following offset is used with lseek system call to set the offset pointer to the end of the file?

Q. Which of the following system call is used for truncating a file?

Q. truncate needs the ___ of the file as an argument but ftruncate works with _______

Q. Choose the correct statement:

Q. Which of the following fields in the structure stat, has information about the permission setting of a file?

Q. Which of the following are not system calls?

Q. Choose the correct statements

Q. Which of the following remarks about system calls, library functions and UNIX commands are true?

Q. A fork system call will fail if

Q. Which of the following is used to write disk block images from memory to disk?

Q. The PID of the kernel process is