

McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Computer Science Engineering (CSE) .
151. |
Which command is used to display the characteristics of a process? |
A. | pid |
B. | du |
C. | ps |
D. | au |
Answer» C. ps |
152. |
The filed separator in cut command is specified with |
A. | -a option |
B. | -d option |
C. | -r option |
D. | -x option |
Answer» B. -d option |
153. |
Which option will be used with touch command to change the access time? |
A. | -a |
B. | -b |
C. | -t |
D. | -h |
Answer» A. -a |
154. |
Which command is used to make all files and sub-directories in the directory (progs) executable by all users? |
A. | chmod -r a+x progs |
B. | chmod -r 222 progs |
C. | chmod -1 a+x progs |
D. | chmod -x a+x progs |
Answer» A. chmod -r a+x progs |
155. |
The second set of the three permissions (r-) indicates that |
A. | group has read permission only |
B. | other has read permission only |
C. | owner has read permission only |
D. | group has write permission only |
Answer» A. group has read permission only |
156. |
Which column contains all details of the permissions of a file when you issue the ls - l command? |
A. | second |
B. | fourth |
C. | third |
D. | first |
Answer» D. first |
157. |
Which of the following commands is used to display your working directory? |
A. | second |
B. | fourth |
C. | third |
D. | first |
Answer» C. third |
158. |
While working with mail command, which command is used to save mail i a separate file? |
A. | s |
B. | r |
C. | w |
D. | d |
Answer» A. s |
159. |
Which command is used to terminate a process? |
A. | shutdown |
B. | haltsys |
C. | cancel |
D. | kill |
Answer» D. kill |
160. |
The cp command uses: |
A. | standard input file |
B. | standard output file |
C. | both input and output file |
D. | neither standard input nor standard output file |
Answer» D. neither standard input nor standard output file |
161. |
Which command is used to print a file? |
A. | |
B. | prn |
C. | pg |
D. | lp |
Answer» D. lp |
162. |
Which command is used to list out all the hidden files along with the other files? |
A. | ls -l |
B. | ls -x |
C. | ls -f |
D. | ls -a |
Answer» D. ls -a |
163. |
Which command is used with vi editor to search a pattern in the forward direction? |
A. | / |
B. | ? |
C. | // |
D. | ?? |
Answer» A. / |
164. |
The command to count the number of files in the current directory by using pipes, is |
A. | ls | wc |
B. | ls -l | ws -l |
C. | ls | wc -w |
D. | ls | ws -c |
Answer» C. ls | wc -w |
165. |
Which of the following commands is used to get directory one level up? |
A. | cd |
B. | cd .. |
C. | cd/ |
D. | chdir |
Answer» B. cd .. |
166. |
Which of the following commands is used to count the total number of lines, words, and characters contained in a file. |
A. | count p |
B. | wc |
C. | wcount |
D. | countw |
Answer» B. wc |
167. |
Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories? |
A. | rm * |
B. | rm -r * |
C. | rm all |
D. | rm *.* |
Answer» B. rm -r * |
168. |
Which of the following commands is used to change the working directory? |
A. | cd |
B. | changedir |
C. | chdir |
D. | cdir |
Answer» A. cd |
169. |
Services provided by kernel are……… |
A. | controlling execution of process |
B. | scheduling processes |
C. | allocating main memory for an executing process |
D. | all of these |
Answer» D. all of these |
170. |
The shell acts as an interface between the ……….. |
A. | user and kernel |
B. | user and operating system |
C. | kernel and operating system |
D. | none of these |
Answer» A. user and kernel |
171. |
When a process executes a system call, the execution mode of the process changes from ……….. |
A. | kernel mode to user mode |
B. | user mode to kernel mode |
C. | user mode to operating system mode |
D. | none of these |
Answer» B. user mode to kernel mode |
172. |
when the kernel services an intrrupt, it blocks out low priority interrupts but……….. |
A. | services middle priority interrupt |
B. | services higher priority interrupts |
C. | both a and b |
D. | none of these |
Answer» B. services higher priority interrupts |
173. |
The commonly used UNIX commands like date, ls, cat, etc. are stored in……….. |
A. | /dev directory |
B. | /bin and /usr/bin directories |
C. | /tmp directory |
D. | /unix directory |
Answer» B. /bin and /usr/bin directories |
174. |
Which of the following commands is used to summarize the disk usage? |
A. | chkdsk |
B. | fdisk |
C. | du |
D. | disk |
Answer» C. du |
175. |
Which command is used to sort the lines of data in a file in alphabetical order? |
A. | sort |
B. | sh |
C. | st |
D. | sort -r |
Answer» A. sort |
176. |
If a file has read and write permissions for the owner, then the octal representation of the permissions will be |
A. | 1 |
B. | 6 |
C. | 5 |
D. | 3 |
Answer» B. 6 |
177. |
Which command is used to copy a file wb with the same name from the programs directory to the misc directory? |
A. | copy programs/wb misc/wb |
B. | cp programs/wb misc |
C. | tar programs/wb misc/wb |
D. | copy a:programs/wb b:misc/wb |
Answer» B. cp programs/wb misc |
178. |
The seventh field of /etc/password is…………. |
A. | password |
B. | login |
C. | shell |
D. | home |
Answer» C. shell |
179. |
Which command is used to display the end of the file? |
A. | head - r |
B. | tail |
C. | eof |
D. | bof |
Answer» B. tail |
180. |
The ls -l command tells |
A. | who the owner of the file is |
B. | the name of the group owner of the file |
C. | how large the file is and when the file was last modified. |
D. | all of the above |
Answer» D. all of the above |
181. |
Which option will be used with disk free command to include the total amount of disk space in the file system? |
A. | -t |
B. | -tt |
C. | -4 |
D. | -i |
Answer» A. -t |
182. |
Which command is used to set the three permissions for all the three categories of users of a file? |
A. | chgrp |
B. | chown |
C. | chmod |
D. | chusr |
Answer» C. chmod |
183. |
Which of the following commands can be used to get information about yourself? |
A. | who am i |
B. | i /4 |
C. | pwd |
D. | which |
Answer» A. who am i |
184. |
Which of the following commands can be used to get information about all users who are currently logged into the system? |
A. | which |
B. | who |
C. | who am i |
D. | 1 /u |
Answer» B. who |
185. |
Which of the following keys is used to overstrike a whole line? |
A. | r |
B. | v |
C. | c |
D. | u |
Answer» A. r |
186. |
Which command is used to locate all the .profile files in the system? |
A. | ls profile |
B. | find /-name profile print |
C. | cd /.profile |
D. | l -u .profile |
Answer» B. find /-name profile print |
187. |
The File that contains a set of instructions which are performed when a user logs in, is |
A. | .exrc |
B. | .profile |
C. | .autoexec |
D. | autoexec.bat |
Answer» B. .profile |
188. |
The octal representation 652 indicates |
A. | execute permission for the owner |
B. | write permission for others |
C. | read and write permission of groups |
D. | all of the above |
Answer» B. write permission for others |
189. |
Which of the following command is used to count just the number of lines contained in a file? |
A. | wc -l |
B. | wc -c |
C. | wc -w |
D. | wc -r |
Answer» A. wc -l |
190. |
Which command is used to move all files to the bin sub-directory of the parent directory? |
A. | mv *.* /bin/ |
B. | mv * /bin/* |
C. | mv * ../bin |
D. | mv * ../bin *.* |
Answer» C. mv * ../bin |
191. |
Which command is used to save the standard output in a file, as well as display it on the terminal? |
A. | more |
B. | cat |
C. | grep |
D. | tee |
Answer» D. tee |
192. |
Which of the following commands is used to copy directory structures in and out |
A. | cp |
B. | cpio |
C. | cp - p |
D. | copy |
Answer» B. cpio |
193. |
Which command allows you to view your file 24 lines at a time? |
A. | more |
B. | pg |
C. | cat |
D. | lp |
Answer» B. pg |
194. |
Which of the following special shell variables is used to process number of the current shell? |
A. | $! |
B. | $$ |
C. | 0 |
D. | $* |
Answer» B. $$ |
195. |
Which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files? |
A. | -l |
B. | -d |
C. | -r |
D. | -b |
Answer» A. -l |
196. |
Which command is used with vi editor scroll half page backward? |
A. | [control-d] |
B. | [control - u] |
C. | [control-c] |
D. | [control -p] |
Answer» B. [control - u] |
197. |
Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line? |
A. | tch |
B. | fch |
C. | rch |
D. | ech |
Answer» B. fch |
198. |
Which of the following keys is used to delete the character beneath the cursor? |
A. | x |
B. | x |
C. | dd |
D. | d |
Answer» A. x |
199. |
Which command is used to assign only read permission to all three categories of the file 'note'? |
A. | chmod go+r note |
B. | chmod a-rw |
C. | chmod ugo=r note |
D. | chmod u+r,g+r,o x note |
Answer» C. chmod ugo=r note |
200. |
Which command will be used with vi editor to append text at end of line? |
A. | a |
B. | a |
C. | i |
D. | i |
Answer» A. a |
Done Studing? Take A Test.
Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.