Explore topic-wise MCQs in Technical Programming.

This section includes 746 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.

401.

The list of available frame buffers are stored in

A. /proc/[PID]/fb
B. /proc/fb
C. /proc/etc/fb
D. None of the mentioned
Answer» C. /proc/etc/fb
402.

The directory /proc/[PID]/tasks contains

A. hard links to any task that have been started by this process
B. files that containing tasks that have been started by this process
C. sub-direcories of various tasks
D. sub-direcories of various tasks
Answer» B. files that containing tasks that have been started by this process
403.

Which one of the following is a symlink to the root path as seen by the process?

A. /proc/[PID]/root
B. /proc/[PID]/path
C. both /proc/apm and /proc/[PID]/path
D. none of the mentioned
Answer» B. /proc/[PID]/path
404.

Which file contains the boot options passed to the kernel?

A. /proc/cmdline
B. /proc/root
C. /proc/boot
D. none of the mentioned
Answer» D. none of the mentioned
405.

Which one of the following contains various bits of information about the state of power management?

A. /proc/acpi
B. /proc/apm
C. both /proc/acpi and /proc/apm
D. none of the mentioned
Answer» D. none of the mentioned
406.

Obtaining of the PID can be done by the utility

A. pgrep
B. pidof
C. ps
D. all of the mentioned
Answer» E.
407.

Which one of the following operating system does not supports proc filesystem?

A. IBM AIX
B. QNX
C. Solaries
D. None of the mentioned
Answer» E.
408.

/proc/partitions contains

A. major number of each partition
B. minor number of each partition
C. number of block and partition name
D. all of the mentioned
Answer» E.
409.

The file /proc/modules is a text list of

A. static modules
B. dynamic modules
C. modules that have been loaded by the system
D. none of the mentioned
Answer» D. none of the mentioned
410.

Which file of the proc filesystem can be used instead of “syslog” system call to read kernel messages?

A. /proc/kmsg
B. /proc/moudle/kmsg
C. /proc/module/msg
D. /proc/msg
Answer» B. /proc/moudle/kmsg
411.

The proc filesystem records the number of interrupts

A. per CPU only
B. per IO device only
C. per CPU per IO device
D. none of the mentioned
Answer» D. none of the mentioned
412.

The file /proc/cpuinfo is a collection of

A. cpu items
B. architecture independent items
C. both cpu items and architecture independent items
D. none of the mentioned
Answer» B. architecture independent items
413.

The file /proc/devices is the

A. text listing of major numbers
B. text listing of device groups
C. text listing of major numbers & device groups
D. none of the mentioned
Answer» D. none of the mentioned
414.

Proc filesystem does not contains

A. sub-directories for installed buses
B. device files
C. list of registered DMA
D. none of the mentioned
Answer» C. list of registered DMA
415.

“ps” command uses the file _____ to provide the information.

A. /proc/[PID]/stat
B. /proc/[PID]/smaps
C. /proc/[PID]/oom_score_adj
D. /proc/[PID]/oom_score
Answer» B. /proc/[PID]/smaps
416.

What is /proc/[PID]/root?

A. symbolic link that points to the process’s root directory
B. regular file which holds all the PID of the system
C. root directory
D. does not exists in the proc filesystem
Answer» B. regular file which holds all the PID of the system
417.

The file /proc/[PID]/maps contains the

A. currently mapped memory regions
B. available memory regions
C. memory regions which are free to map
D. none of the mentioned
Answer» B. available memory regions
418.

The file /proc/[PID]/limits displays the ______ for each of the process’s resource limits.

A. hard limit
B. soft limit
C. units of measurement
D. all of the mentioned
Answer» E.
419.

The entry for each file opened by the process is present in

A. /proc/[PID]/fd
B. /proc/[PID]/file
C. /proc/[PID]/maps
D. none of the mentioned
Answer» B. /proc/[PID]/file
420.

Which one of the following file contains the environment for the process?

A. /proc/[PID]/environ
B. /proc/[PID]/env
C. /proc/[PID]/path
D. none of the mentioned
Answer» B. /proc/[PID]/env
421.

What is /proc/[PID]/cwd?

A. symbolic link to current directory of the process
B. regular file containing the information about the current status of the process
C. directory containing various sub-directories
D. none of the mentioned
Answer» B. regular file containing the information about the current status of the process
422.

The file /proc/[PID]/cmdline holds the complete command line for the process, unless the process is a

A. child process
B. zombie process
C. orphan process
D. None of the mentioned
Answer» C. orphan process
423.

The file /proc/[PID]/cgroups

A. describes control groups to which the process belongs
B. contains the information about all groups of the system
C. provides the information about the group which has generated the process
D. none of the mentioned
Answer» B. contains the information about all groups of the system
424.

The /proc directory contains

A. numerical sub-directory for each running process
B. sub-directories for installed buses
C. a text listing of filesystems which are supported by the kernel
D. all of the mentioned
Answer» E.
425.

Proc filesystem provides the information about

A. processes
B. processor
C. proxy server
D. none of the mentioned
Answer» B. processor
426.

Which one of the following is not true about proc filesystem?

A. proc filesystem is a pseudo-filesystem
B. proc filesystem is used as an interface to kernel data structures
C. some files in proc filesystem allow kernel variables to be changedsome files in proc filesystem allow kernel variables to be changed
D. none of the mentioned
Answer» E.
427.

Any file or directory present in the ______ directory may not be reserved between the invocation of the program.

A. /var
B. /tmp
C. /etc
D. all of the mentioned
Answer» C. /etc
428.

The directory /srv contains

A. site-specific data which is served by the system
B. all the system files
C. all the service files provided by the specific user
D. none of the mentioned
Answer» B. all the system files
429.

The directory /opt is reserved for

A. installation of add-on application software packages
B. optional booting files
C. optional user specific files
D. none of the mentioned
Answer» B. optional booting files
430.

Kernel modules are present in

A. /lib directory
B. /root directory
C. /boot directory
D. none of the mentioned
Answer» B. /root directory
431.

Which one of the directory does not contain binary files?

A. /bin
B. /sbin
C. /etc
D. none of the mentioned
Answer» D. none of the mentioned
432.

The /boot directory stores the data that is used

A. before the kernel begins executing user mode programs
B. after the kernel begins executing user mode programs
C. before the bootloader is loaded in the RAM
D. none of the mentioned
Answer» B. after the kernel begins executing user mode programs
433.

What is /bin/sh ?

A. bourne shell
B. hard or symbolic link to the real shell command
C. bash shell
D. both bash shell and bourne shell
Answer» C. bash shell
434.

The directory /media is the

A. mount point for removable media
B. mount point for filesystem
C. mount point for removable media & filesystem
D. none of the mentioned
Answer» B. mount point for filesystem
435.

Host specific configuration files are installed in

A. /etc directory
B. /lib directory
C. /root directory
D. /bin directory
Answer» B. /lib directory
436.

When we install a new package in linux system, then

A. all the files of the packages are installed in a single directory
B. different files are installed at different locations of the file system
C. package works just after extraction, installation is not required
D. none of the mentioned
Answer» C. package works just after extraction, installation is not required
437.

Superuser can change the _______ permissions of any file.

A. owner
B. group
C. other
D. all of the mentioned
Answer» E.
438.

In linux filesystem, the passwords of different users are stored in

A. /etc/passwd file
B. /bin/passwd file
C. /etc/shadow file
D. /bin/shadow file
Answer» D. /bin/shadow file
439.

Linux filesystem contains mainly

A. ordinary files
B. device files
C. directory files
D. all of the mentioned
Answer» E.
440.

Static files of the bootloader are installed in

A. /boot directory
B. /root directory
C. /bin directory
D. /sbin directory
Answer» B. /root directory
441.

The contents of root filesystem is responsible to

A. boot the system
B. recover the system
C. repair the system
D. all of the mentioned
Answer» E.
442.

The /dev directory contains the

A. device drivers
B. device files
C. kernel modules of device drivers
D. none of the mentioned
Answer» C. kernel modules of device drivers
443.

System binaries are stored in

A. /sbin directory
B. /usr/sbin directory
C. /usr/local/sbin directory
D. all of the mentioned
Answer» E.
444.

What is /root?

A. root filesystem
B. home directory of the root user
C. the directory which contains all the directories of the filesystem
D. none of the mentioned
Answer» C. the directory which contains all the directories of the filesystem
445.

Which one of the following is a mount point for a temporarily mounted filesystem?

A. /mnt directory
B. /media directory
C. /dev directory
D. none of the mentioned
Answer» B. /media directory
446.

Operating system kernel must be located in

A. /
B. /boot
C. either in / or in /boot
D. none of the mentioned
Answer» D. none of the mentioned
447.

In awk program, the name of the array can not be same with the

A. name of variable
B. value of the array element
C. name of variable & value of the array element
D. none of the mentioned
Answer» B. value of the array element
448.

Which one of the following is used by awk to control the conversion of numbers to string?

A. RS
B. OFMT
C. SUBSEP
D. RSTART
Answer» C. SUBSEP
449.

RSTART is set by invoking the

A. match function
B. index function
C. asort function
D. split function
Answer» B. index function
450.

What is FNR?

A. FNR is the current record number in the current file
B. FNR is the number of fields in the current input record
C. FNR is an array contains the value of environment
D. None of the mentioned
Answer» B. FNR is the number of fields in the current input record