250+ TOP MCQs on Performance Components and Tools and Answers

Unix Multiple Choice Questions on “Performance Components and Tools”.

1. Which of the following resources are required to be managed and monitored?
a) CPU time
b) I/O time
c) Disk space
d) CPU time, I/O time, disk space

Answer: d
Clarification: A typical UNIX system has some major resources that are required to be monitored. These resources include CPU time, I/O time, disk space, network time. There are many tools available which provides us with guidelines on how to diagnose and fix performance problems.

2. System time comprises ____ components.
a) 5
b) 4
c) 3
d) 8

Answer: a
Clarification: There are five major components which take up the system time. These are -User state CPU, system state CPU, I/O time and network time, virtual memory performance, application program.

3. Which command is used to display all the running and active real-time processes?
a) tp
b) top
c) vmstat
d) lsof

Answer: b
Clarification: top command is system monitoring program which is used to display all the running and active real-time process. It displays CPU usage, memory usage, swap memory, cache size, buffer size, process PID and much more.

4. ____ command displays the list of all open files and processes.
a) top
b) lsof
c) vmstat
d) pipe

Answer: b
Clarification: lsof command is a system monitoring program which displays the list of all open files and processes. The open file includes pipe, devices, network sockets, disk files, processes.

5. ____ is a simple tool that will collect and show system input and output storage device statistics.
a) top
b) lsof
c) vmstat
d) Iostat

  250+ TOP MCQs on Shell Offerings and Answers

Answer: d
Clarification: Iostat is a system monitoring tool which is used to display system input and output storage device statistics.

6. sar is a command line tool for collecting, viewing and recording performance data.
a) True
b) False

Answer: a
Clarification: sar is a command line tool for collecting, viewing and recording performance data. Sar (system activity report) is used to report on various system loads, including system loads, CPU activity, memory/paging, device load, network.

7. To override the default action and catch the signal ____ system call is used.
a) sig
b) SIGKILL
c) signal
d) SIGINT

Answer: c
Clarification: The default disposition of a signal is to terminate the process. However, we can override the default action and catch the signal using system call using the signal system call. Using signal system call.

8. Which of the following functions can be performed using signal system call?
a) ignore the signal
b) restore the default
c) invoke a signal handling function
d) ignore the signal, restore the default and invoke a signal handling function

Answer: d
Clarification: signal system call doesn’t generate any signal but only specifies its disposition. Using signal call we can either ignore the signal, restore the default (if it was changed earlier) or invoke a signal handling function.

9. Which of the following signals can neither be ignored nor catch?
a) SIGKILL
b) SIGSTOP
c) SIGKILL and SIGSTOP
d) SIGALR

Answer: c
Clarification: Irrespective of the action you take, there are two signals that we can neither ignore nor catch by invoking a signal handler. They are SIGKILL and SIGSTOP.

  250+ TOP MCQs on Comparing Files:comm, cmp and diff Command and Answers

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top