

MCQOPTIONS
Saved Bookmarks
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.
51. |
What command is used to save the standard output in a file, as well as display it on theterminal? |
A. | tee |
B. | grep |
C. | cat |
D. | more |
Answer» B. grep | |
52. |
How many types of sockets are there? |
A. | 2 |
B. | 3 |
C. | 4 |
D. | 5 |
Answer» D. 5 | |
53. |
Which command is used to display the operating system name ? |
A. | os |
B. | Unix |
C. | kernel |
D. | uname |
Answer» E. | |
54. |
The location for subdirectories for local programs and executables for user and administrative commands is: |
A. | /usr |
B. | /tmp |
C. | /opt |
D. | /mnt |
Answer» B. /tmp | |
55. |
Which option of the command ‘cd’ use the actual filesystem path for cd..and the value ofpwd? |
A. | -l |
B. | -L |
C. | -p |
D. | -P |
Answer» E. | |
56. |
NFS stands for |
A. | New file system |
B. | Network file system |
C. | Netware file system |
D. | None of the above |
Answer» C. Netware file system | |
57. |
The shell in the Unix system is the |
A. | Outer layer of a seed |
B. | User interface with the operating system |
C. | Provides a prompt |
D. | Both (b) and (c) |
Answer» B. User interface with the operating system | |
58. |
An interface is a set of ___________ designed to facilitate interaction between two entities |
A. | programs |
B. | instructions |
C. | rules |
D. | none of these |
Answer» C. rules | |
59. |
Which command is used to print a file ? |
A. | |
B. | ptr |
C. | lpr |
D. | none of the above |
Answer» D. none of the above | |
60. |
Which command will be used to match the pattern agarwal, Aggarwal, Agggarwal and agrawal in the file named empl.1st? |
A. | grep “[aA]99*[ar][ra]wal” empl.1st |
B. | grepag* empl.1st |
C. | cutagrawal empl.1st |
D. | grepag[ra][ar]wal empl.1st |
Answer» B. grepag* empl.1st | |
61. |
Which of the following commands is used to count just the number of lines contained in afile? |
A. | wc – 1 |
B. | wc - w |
C. | wc - c |
D. | wc - r |
Answer» B. wc - w | |
62. |
UDP stands for |
A. | User datagram Protocol |
B. | Uninterrupted data part |
C. | Uniform data provider |
D. | None |
Answer» B. Uninterrupted data part | |
63. |
IP address is a |
A. | Static address |
B. | Dynamic address |
C. | Both (a) and (b) |
D. | None |
Answer» D. None | |
64. |
Which of the following commands is used to count the total number of line, words andcharacters contained in a file? |
A. | count p |
B. | wcount |
C. | wc |
D. | countw |
Answer» D. countw | |
65. |
The command which transcribes the standard input to the standard output and also makesa copy of the same in a file is |
A. | tee |
B. | sort |
C. | tr |
D. | grep |
Answer» D. grep | |
66. |
By default, one can mount |
A. | CDs onto your device as root |
B. | Floppy disk onto your device as root |
C. | Pen drive |
D. | Magnetic tapes |
Answer» B. Floppy disk onto your device as root | |
67. |
Which command is used to concatenate all files beginning with the string ‘emp’ andfollowed by non-numeric characters? |
A. | catemp{!0-9] |
B. | more [emp][!0-9] |
C. | cateemp[x-z] |
D. | catemp[a-z] |
Answer» B. more [emp][!0-9] | |
68. |
Which command generates possible completions for string according to the and write it tostandard output? |
A. | compgen |
B. | complete |
C. | continue |
D. | none of the mentioned |
Answer» B. complete | |
69. |
The purpose of the PATH variable is to |
A. | Show the current directory |
B. | Show the directory path of a file |
C. | Tells the shell what directories to search when a command is entered |
D. | Both A and C |
Answer» D. Both A and C | |
70. |
Which command is used to select those lines where the data lies between 7000 and 7999at the end of the line of file empl.lit. |
A. | grep “$7…” empl.1st |
B. | grep “7…^” empl.1st |
C. | grep “7…$” empl.1st |
D. | grep ^7… empl.1st |
Answer» D. grep ^7… empl.1st | |
71. |
Which command is used to assign only read permission to all three categories of the file ‘note’? |
A. | chmod a-rw |
B. | chmodgo+r note |
C. | chmodugo = r = note |
D. | chmodu+r, g+r, o-x note |
Answer» D. chmodu+r, g+r, o-x note | |
72. |
What special character is used to designate the users home directory in the C shell? |
A. | @ |
B. | ~ |
C. | & |
D. | $ |
Answer» D. $ | |
73. |
The kill system call is used to |
A. | Send shutdown messages to all by super-user |
B. | Send a signal to a process |
C. | Kill processes |
D. | Stop the processes |
Answer» C. Kill processes | |
74. |
What command is used to list the files chap0l, chap02 and chap04? |
A. | ls chap* |
B. | ls chap[124] |
C. | ls - x chap0[124] |
D. | ls chap0[124] |
Answer» D. ls chap0[124] | |
75. |
Which option of ls command used to view file inode number ? |
A. | –l |
B. | -o |
C. | –a |
D. | –i |
Answer» E. | |
76. |
Which command is used to get the kernel version in Linux? |
A. | uname -r |
B. | kernel |
C. | uname -n |
D. | uname –s |
Answer» B. kernel | |
77. |
Which of the following command is used to count number of lines in a file? |
A. | wc -l |
B. | wc -c |
C. | wc -w |
D. | None of these |
Answer» B. wc -c | |
78. |
which command is used to print the current working direcotry? |
A. | pwd |
B. | echo $PWD |
C. | Both A and B |
D. | Only A |
Answer» D. Only A | |
79. |
Which command is used to list all the files in your current directory(including hidden)? |
A. | ls -l |
B. | ls -t |
C. | ls -a |
D. | ls –i |
Answer» D. ls –i | |
80. |
Which command is used see the list of users who are currently logged-in? |
A. | login |
B. | users |
C. | who |
D. | which |
Answer» D. which | |
81. |
Which command(s) is/are used to get help about a command in Linux? |
A. | info |
B. | man |
C. | None of these |
D. | Both a and b |
Answer» B. man | |
82. |
Suppose I am in /etc directoy, after executing cd .(single dot), where am I now? |
A. | /etc |
B. | /(root) |
C. | /home |
D. | None of these |
Answer» B. /(root) | |
83. |
What communication command provides communication to another user logged on bywriting to the bottom of their terminal? |
A. | talk |
B. | write |
C. | chat |
D. | tr |
Answer» B. write | |
84. |
What is the right command to save file and exit in Vim? |
A. | :wq |
B. | :a |
C. | :q |
D. | :q! |
Answer» B. :a | |
85. |
Maximum how long can a Linux filename be? |
A. | 128 bytes |
B. | 255 bytes |
C. | 32 bytes |
D. | 64 bytes |
Answer» C. 32 bytes | |
86. |
Which directory contains all the files needed to boot the Linux system? |
A. | /dev |
B. | /boot |
C. | /bin |
D. | none |
Answer» C. /bin | |
87. |
Which of the following is not an editor? |
A. | expr |
B. | vi |
C. | emacs |
D. | ex |
Answer» B. vi | |
88. |
Which special character should be avoided during naming a file? |
A. | .(dot) |
B. | $ |
C. | _(underscore) |
D. | -(Hyphen) |
Answer» E. | |
89. |
Which directory in Linux contains all the config file of the system? |
A. | /etc |
B. | /var |
C. | /lib |
D. | /bin |
Answer» B. /var | |
90. |
Which command is used to copy entire directory? |
A. | cp -r |
B. | cp -i |
C. | cp |
D. | none of these |
Answer» B. cp -i | |
91. |
In Linux everything stored as a |
A. | file |
B. | directory |
C. | executables |
D. | None of the above |
Answer» B. directory | |
92. |
Which of the following command can be used as an alternative to echo command? |
A. | |
B. | printr |
C. | printf |
D. | none of these |
Answer» D. none of these | |
93. |
In a date +format, you add the hour in 24 hours format using: |
A. | %f |
B. | %H |
C. | %F |
D. | %h |
Answer» C. %F | |
94. |
Which of the following umask settings doesn’t allow execute permission to be set by defaulton directory files |
A. | 222 |
B. | 111 |
C. | 000 |
D. | 444 |
Answer» D. 444 | |
95. |
mv command can be used to ? |
A. | Move the file to different directory. |
B. | Renaming a file |
C. | Both a and b. |
D. | Only a. |
Answer» D. Only a. | |
96. |
Which command is used to print the login shell of an user? |
A. | echo $SHELL |
B. | echo $LOGIN |
C. | echo $LSHELL |
D. | None of the Above |
Answer» B. echo $LOGIN | |
97. |
Which of the following command is used to create file in Linux? |
A. | touch |
B. | cat |
C. | echo |
D. | All of the above |
Answer» E. | |
98. |
Which command is/are used to remove directory in Linux? |
A. | rmdir |
B. | rm -r |
C. | only b |
D. | Both a and b |
Answer» E. | |
99. |
Which combination of keys is used to exit from terminal? |
A. | Ctrl + t |
B. | Ctrl + z |
C. | Ctrl + d |
D. | Ctrl + e |
Answer» D. Ctrl + e | |
100. |
Standard set of functions through which interacts with kernel is defined by ___________ |
A. | system libraries |
B. | kernel code |
C. | compilers |
D. | utility programs |
Answer» B. kernel code | |