• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

50 Operating System MCQs with Answers

Question 41

In Unix, files can be protected by assigning each one a 9-bit mode called rights bits. Now, consider the following two statements: I. A mode of 641 (octal) means that the owner can read and write the file, other members of the owner’s group can read it, and users can execute only. II. A mode of 100 (octal) allows the owner to execute the file, but prohibits all other access. Which of the following options is correct with reference to above statements ?
  • Only I is correct.
  • Only II is correct.
  • Both I and II are correct.
  • Both I and II are incorrect.

Question 42

Which of the following statement is not correct with reference to cron daemon in UNIX O.S. ?
  • The cron daemon is the standard tool for running commands on a pre-determined schedule.
  • It starts when the system boots and runs as long as the system is up.
  • Cron reads configuration files that contain list of command lines and the times at which they invoked.
  • Crontab for individual users are not stored.

Question 43

In Unix, the command to enable execution permission for file “mylife” by all is ____________.
  • Chmod ugo + X myfile
  • Chmod a + X myfile
  • Chmod + X myfile
  • All of the above

Question 44

A student wishes to create symbolic links in a computer system running Unix. Three text files named "file 1", "file 2" and "file 3" exist in her current working directory, and the student has read and write permissions for all three files. Assume that file 1 contains information about her hobbies, file 2 contains information about her friends and file 3 contains information about her courses. The student executes the following sequence of commands from her current working directory
ln -s file 1 file 2
ln -s file 2 file 3
Which of the following types of information would be lost from her file system? (I) Hobbies (II) Friends (III) Courses
  • (I) and (II) only
  • (II) and (III) only
  • (II) only
  • (I) and (III) only

Question 45

A user level process in Unix traps the signal sent on a Ctrl-C input, and has a signal handling routine that saves appropriate files before terminating the process. When a Ctrl-C input is given to this process, what is the mode in which the signal handling routine executes?
  • kernel mode
  • superuser mode
  • privileged mode
  • user mode

Question 46

Match the following vi commands in Unix: 75
  • (1)
  • (2)
  • (3)
  • (4)

Question 47

Which of the following statement(s) is/are True regarding ‘nice’ command of UNIX ? I. It is used to set or change the priority of a process. II. A process’s nice value can be set at the time of creation. III. ‘nice’ takes a command line as an argument.

  • I, II only

  • II, III only

  • I, II, III

  • I, III only

Question 48

In UNIX, _________ creates three subdirectories : ‘PIS’ and two subdirectories ‘progs’ and ‘data’ from just created subdirectory ‘PIS’.
  • mkdir PIS/progs PIS/data PIS
  • mkdir PIS progs data
  • mkdir PIS PIS/progs PIS/data
  • mkdir PIS/progs data

Question 49

In Unix operating system, when a process creates a new process using the fork () system call, which of the following state is shared between the parent process and child process?
  • Heap
  • Stack
  • Shared memory segments
  • Both Heap and Stack

Question 50

In Unix operating system, special files are used to:
  • buffer data received in its input from where a process reads
  • provide a mechanism to map physical device to file names
  • store list of file names plus pointers associated with i-nodes
  • store information entered by a user application program or utility program

There are 50 questions to complete.

Last Updated :
Take a part in the ongoing discussion