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.

601.

Which signal is sent by the command “kill -9 ” ?

A. INT
B. TERM
C. KILL
D. STOP
Answer» D. STOP
602.

Process information in the current shell can be obtained by using

A. kill
B. bg
C. fg
D. ps
Answer» E.
603.

Which command can be executed by a user who is already logged into the system, in order to change to the root user? (type the command without any parameters)

A. su
B. root
C. chroot
D. user
Answer» B. root
604.

How to run a process in the background?

A. &
B. *
C. ?
D. |
Answer» B. *
605.

Which command is used to bring the background process to forground?

A. bg
B. fg
C. background
D. forground
Answer» C. background
606.

If a program executing in background attempts to read from STDIN

A. It is terminated
B. It’s execution is suspended
C. STDIN is made available to it
D. None of the mentioned
Answer» C. STDIN is made available to it
607.

Which file is read by init to get the default runlevel

A. /etc/profile
B. /etc/init
C. /etc/boot
D. /etc/inittab
Answer» E.
608.

The process id of init process is:

A. -1
B. 0
C. 1
D. 2
Answer» D. 2
609.

At the end of kernel bootstrap, which process is started?

A. /etc/init
B. /etc/sched
C. /etc/swap
D. /etc/kernel
Answer» B. /etc/sched
610.

Which daemon manages the physical memory by moving process from physical memory to swap space when more physical memory is needed.

A. Sched daemon
B. Swap daemon
C. Init daemon
D. Process daemon
Answer» C. Init daemon
611.

Which is the only partition mounted in Single user mode

A. boot
B. usr
C. root
D. tmp
Answer» D. tmp
612.

Single user mode shell runs as

A. Admin user
B. Root user
C. Normal user
D. Log user
Answer» C. Normal user
613.

The shell used for Single user mode shell is:

A. bash
B. Csh
C. ksh
D. sh
Answer» E.
614.

Bootstrapping is also known as

A. Quick boot
B. Cold boot
C. Hot boot
D. Fast boot
Answer» C. Hot boot
615.

The process of starting up a computer is known as

A. Boot Loading
B. Boot Record
C. Boot Strapping
D. Booting
Answer» D. Booting
616.

Which is loaded into memory when system is booted?

A. Kernel
B. Shell
C. Commands
D. Script
Answer» B. Shell
617.

On Linux, initrd is a file

A. Containing root file-system required during bootup
B. Contains only scripts to be executed during bootup
C. Contains root-file system and drivers required to be preloaded during bootup
D. None of the mentioned
Answer» D. None of the mentioned
618.

Which of the following is not a valid run-level

A. S
B. 0
C. 8
D. 1
Answer» D. 1
619.

Which command is used to mount file system read only.

A. mount –a
B. mount –v
C. mount –f
D. mount –r
Answer» E.
620.

____ is a directory (which should exist), on which to mount the file system?

A. Root
B. Boot
C. Mount-point
D. Partition
Answer» D. Partition
621.

Which file contains the filesystems to be automatically mounted during boot?

A. /etc/mount
B. /etc/fstab
C. /etc/inittab
D. /etc/boot
Answer» C. /etc/inittab
622.

Which file system has journaling capability?

A. Ext2
B. Ext4
C. Isofs
D. Procfs
Answer» C. Isofs
623.

Filesystem for CDROM is:

A. Ext2
B. Ext3
C. Isofs
D. Procfs
Answer» D. Procfs
624.

Which filesystem can be used to change certain kernel parameters at runtime using sysctl command?

A. Ext3
B. Sysfs
C. Ext4
D. Procfs
Answer» E.
625.

Which among the following allows fast file system recovery?

A. Ext2
B. Journaling
C. Caching
D. Sysfs
Answer» C. Caching
626.

Which command is used to check filesystem usage in a system?

A. mount
B. df
C. du
D. dd
Answer» E.
627.

Which of the following umask settings allow execute permission to be set by default on regular files

A. 222
B. 111
C. 000
D. None of the mentioned
Answer» E.
628.

Which of the following umask settings doesn’t allow execute permission to be set by default on directory files

A. 222
B. 111
C. 000
D. 444
Answer» D. 444
629.

What does chmod +t do?

A. wrong syntax
B. set effective userid for filename
C. set effective groupid for filename
D. set the sticky bit
Answer» E.
630.

A user executes the following command successfully: $ chmod +x file1.txt Which of the following is true of the output of this command?

A. The command results in adding execute permission to the user who ran this command
B. The command results in adding execute permission for the owner of the file
C. The command results in an error since the file is not an executable file
D. The command results in adding execute permission for all users (i.e., user,group & others)
Answer» E.
631.

If you are a root user, how can you grand execute permission only for the owner of the file project1?

A. chmod +x project1
B. chmod u+x project1
C. chmod a+x project1
D. chmod U+X project1
Answer» C. chmod a+x project1
632.

Which of these commands will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else?

A. chmod 046 textfile
B. chmod 640 textfile
C. chmod 310 textfile
D. chmod rw r nil textfile
Answer» C. chmod 310 textfile
633.

Given the command $ chmod o-w datafile

A. sets write permission to everyone for datafile
B. sets write permission to others for datafile
C. clears write permission to everyone for datafile
D. clears write permission to others for datafile
Answer» E.
634.

Which command is used to assign read-write permission to the owner?

A. chmod a+r file
B. chmod o+r file
C. chmod u=rw file
D. chmod og-r file
Answer» D. chmod og-r file
635.

With a umask value of 112, what is the default permission assigned to newly created regular file?

A. —x–x-wx
B. -rw-rw-r–
C. -r-xr-x-r–
D. -rw-rw-r–
Answer» E.
636.

The permission -rwxr-xr-t represented in octal expression will be

A. 0777
B. 1755
C. 1754
D. 2754
Answer» C. 1754
637.

What is the command to set the execute permissions to all the files and subdirectories within the directory /home/user1/direct

A. chmod –r +x /home/user1/direct
B. chmod –R +x /home/user1/direct
C. chmod –f –r +x /home/user1/direct
D. chmod –F +x /home/user1/direct
Answer» C. chmod –f –r +x /home/user1/direct
638.

If the umask value is 0002. what will be the permissions of new directory

A. 777
B. 775
C. 774
D. 664
Answer» C. 774
639.

A user does a chmod operation on a file. Which of the following is true?

A. The last accessed time of the file is updated
B. The last modification time of the file is updated
C. The last change time of the file is updated
D. None of the mentioned
Answer» D. None of the mentioned
640.

If user tries to remove (rm) a readonly file (444 permission), what will happen?

A. The file is removed successfully (and silently)
B. The rm command prompts for a confirmation, the command is successful upon confirmation
C. The rm command prompts for a confirmation, however the operation fails because of insufficient permissions
D. The rm command fails because of insufficient permissions
Answer» C. The rm command prompts for a confirmation, however the operation fails because of insufficient permissions
641.

The permission -rwxr-sr– represented in octal expression will be

A. 0777
B. 2766
C. 2744
D. 2754
Answer» E.
642.

The permission -rwSr–r– represented in octal expression will be

A. 0777
B. 2666
C. 4744
D. 4644
Answer» E.
643.

Sticky bit can be set using following permission

A. 0777
B. 2666
C. 4744
D. 1711
Answer» E.
644.

Effective group id can be set using following permission

A. 0777
B. 2666
C. 4744
D. 1711
Answer» C. 4744
645.

Effective user id can be set using following permission

A. 0777
B. 2666
C. 4744
D. 1711
Answer» D. 1711
646.

The permission -rwxr–r– represented in octal expression will be

A. 777
B. 666
C. 744
D. 711
Answer» D. 711
647.

The file permission 764 means:

A. Every one can read, group can execute only and the owner can read and write
B. Every one can read and write, but owner alone can execute
C. Every one can read, group including owner can write, owner alone can execute
D. Every one can read and write and execute
Answer» D. Every one can read and write and execute
648.

All device files are stored in which directory?

A. /etc
B. /bin
C. /dev
D. /usr
Answer» D. /usr
649.

Which is an example for block special file?

A. Virtual Terminal
B. CD-ROM
C. Terminal
D. Serial modem
Answer» C. Terminal
650.

Which is an example for character special file?

A. Hard disk
B. CD-ROM
C. Terminal
D. Memory
Answer» D. Memory