Unit 5 Objective Questions
Unit 5 Objective Questions
a) waiting
b) executing
c) terminated
d) halted
a) born
b) die
c) waiting
d) terminated
4) Some attributes of every process are maintained by the kernel in memory in a separate
structure called the ______
a) pcb
b) task control block
c) process table
d) task table
a) PID
b) PPID
c) TID
d) PTID
a) True
b) False
a) PID
b) PPID
c) TID
d) PTID
8) Which process is immediately set up by the kernel when we log on to a UNIX system?
a) shell
b) parent
c) shell
d) bash
9) To know the PID of your current shell, which command will be used?
a) echo $$
b) echo $
c) $SHELL
d) $PATH
10) What is the PID of the first process that is set up when the system is booted?
a) 1
b) 0
c) any
d) 2
a) pid
b) $$
c) ps
d) HOME
a) PID
b) PPID
c) tty
d) size
13) Which option is used by ps command to get a detailed listing of process attributes?
a) -u
b) -f
c) -l
d) -x
14) Which option is used by the system administrator for displaying processes of a user?
a) -f
b) -u
c) -a
d) -e
a) -A
b) -a
c) -e
d) –A and -e
a) 2
b) 5
c) 4
d) 3
17) A system call is a programmatic way in which the program requests for the service from the
kernel of an operating system.
a) True
b) False
18) Which of the following system call is used for creating a new process?
a) read
b) fork
c) wait
d) new
19) What is the value returned by fork system call, when the creation of child process is
unsuccessful?
a) positive integer
b) negative integer
c) zero
d) fractional value
a) fork
b) wait
c) exec
d) exit
21) Which system call is used by the parent process to wait for the child process to complete?
a) wait
b) exec
c) fork
d) exit
22) We can schedule a job to run at a specified time of day using _______ command.
a) batch
b) at
c) cron
d) jobs
a) now
b) noon
c) tomorrow
d) evening
24) To remove a job from the queue, which option is used with at command?
a) -r
b) -l
c) -e
d) -t
25) We can list the jobs queued using at command by using ____ option.
a) -p
b) -v
c) -l
d) -r
26) We cannot find out the name of the program scheduled using at command.
a) True
b) False
27) Which command permits to schedule jobs for later execution, as soon as the system load
permits?
a) at
b) %
c) batch
d) cron
a) True
b) False
29) Jobs scheduled using batch command can be removed using ___ option.
a) -a
b) -d
c) -f
d) -r
a) a simple process
b) an orphan process
c) a daemon
d) a zombie process
31) The cron tab is a table having a list of commands that are scheduled to be run at regular
intervals.
a) True
b) False
32) Which of the following command will remove the current crontab?
a) crontab -p
b) crontab -l
c) crontab -e
d) crontab -r
33) _______ option of ps command lists processes of all users but doesn’t display the system
processes.
a) -f
b) -u
c) -a
d) -e
a)True
b)False
b)Array
c)Queue
$ ps -t dev/console
a) processes running on terminal named console
b) undefined output
c) erroneous
d) processes running on the current terminal
37) When fork() is invoked, the child process created gets a new PID.
a) True
b) False
a) signal
b) nice
c) kill
d) nohup
39) Which one of the following command is used for killing the last background job?
a) kill $
b) kill $$
c) kill $!
d) kill !
40) We can use the _____ symbol with at command to redirect our output to a specified file.
a) >
b) <
c) >>
d) %
41) Which one of the following forms used with at command is invalid?
a) at noon
b) at now +2 years
c) at 3:07 + 1 day
d) at morning
b) process who has completed its execution but still has an entry in the process table
a) /etc/crontab
b) /var/spool
c) /var/spool/cron
d) ~/.cron
44) ________ command is used to place the file in the directory containing crontab files for cron
to read file again.
a) crontab
b) cron
c) at
d) batch
a) 5
b) 6
c) 4
d) 7
a) SIGINT
b) SIGTERM
c) SIGKILL
d ) SIGSEGV
a) SIGSTOP
b) SIGTERM
c) SIGKILL
d ) SIGSEGV
a) SIGSTOP
b) SIGTERM
c) SIGKILL
d ) SIGCHLD
a) kill
b) signal
c) Both a and b
b) System crash
c) Program switch
d) Signal destruction
a) Signal identifiers
b) Signal handlers
c) Signal actions
52) The three ways in which a process responds to a signal are _________
c) Both a and b
54) What is the PID of the first process that is set up when the system is booted?
a) 0
b) 1
c) 2
d) 3