

MCQOPTIONS
Saved Bookmarks
This section includes 133 Mcqs, each offering curated multiple-choice questions to sharpen your Computer Science knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which command allows you to view your file 24 lines at a time? |
A. | more |
B. | pg |
C. | cat |
D. | lp |
Answer» C. cat | |
2. |
Which command is used to terminate all processes in your own system except the login shell? |
A. | kill 1 |
B. | kill 0 |
C. | cancel all |
D. | cancel 1 |
Answer» C. cancel all | |
3. |
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» E. | |
4. |
Major expressions used with find command to select file is it has been accessed in more than 375 days, is |
A. | #NAME? |
B. | #NAME? |
C. | #NAME? |
D. | #NAME? |
Answer» B. #NAME? | |
5. |
Which of the following keys is used to overstrike a whole line? |
A. | R |
B. | v |
C. | C |
D. | u |
Answer» B. v | |
6. |
Which command is used to link the files? |
A. | lk |
B. | ln |
C. | cp |
D. | tar |
Answer» C. cp | |
7. |
Which of are following internal commands is used in mail to forward mail to user in user-list? |
A. | r user-list |
B. | m user-list |
C. | d user-list |
D. | e user-list |
Answer» C. d user-list | |
8. |
Which commands is used to assign executable permission to all of the files named "letter"? |
A. | chmod ugo+r letter |
B. | chmod ugo+rw letter |
C. | chmod u+x letter |
D. | chmod ugo+x letter |
Answer» E. | |
9. |
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» C. wcount | |
10. |
The seventh field of /etc/password is |
A. | password |
B. | login |
C. | shell |
D. | home |
Answer» D. home | |
11. |
Which of the following signs is used to back up over typing errors in vi? |
A. | @ |
B. | # |
C. | $ |
D. | ! |
Answer» C. $ | |
12. |
Which of the following commands is used to summarize the disk usage? |
A. | chkdsk |
B. | fdisk |
C. | du |
D. | disk |
Answer» D. disk | |
13. |
Which command will be used with vi editor to append text at end of line? |
A. | A |
B. | a |
C. | i |
D. | I |
Answer» B. a | |
14. |
Which of the following commands is not the vi Input mode command? |
A. | rch |
B. | R |
C. | S |
D. | j |
Answer» E. | |
15. |
Which command is used with vi editor to search a pattern in the forward direction? |
A. | / |
B. | ? |
C. | // |
D. | ?? |
Answer» B. ? | |
16. |
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» C. 5 | |
17. |
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. | #NAME? |
B. | #NAME? |
C. | -r |
D. | #NAME? |
Answer» B. #NAME? | |
18. |
Which symbol will be used with grep command to match the pattern pat at the end of a line? |
A. | ^pat |
B. | $pat |
C. | pat$ |
D. | pat^ |
Answer» D. pat^ | |
19. |
Which command is used to copy the three files wb, collect and mon into the misc directory, under the same, when you were currently in the programs directory? |
A. | copy wb ../misc collect ../misc mon ../misc |
B. | cp wb collect mon ../misc |
C. | copy wb collect mon /misc |
D. | tar wb collect mon /misc |
Answer» C. copy wb collect mon /misc | |
20. |
In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory. |
A. | .exrc |
B. | .profile |
C. | lastlogin |
D. | .mbox |
Answer» C. lastlogin | |
21. |
Which of the following keys is used to delete the character beneath the cursor? |
A. | x |
B. | X |
C. | dd |
D. | D |
Answer» B. X | |
22. |
Which of the following commands is used to copy directory structures in and out |
A. | cp |
B. | cpio |
C. | cp - p |
D. | copy |
Answer» C. cp - p | |
23. |
Which of following commands is used for an automatic reminder service? |
A. | write |
B. | mesg |
C. | calendar |
D. | |
Answer» D. mail | |
24. |
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» C. cd /.profile | |
25. |
Which of the following shell's wildcards are used to match any number of characters including none? |
A. | [ijk] |
B. | [!ijk] |
C. | ? |
D. | * |
Answer» E. | |
26. |
Which of the following commands is used to get directory one level up? |
A. | cd |
B. | cd .. |
C. | cd/ |
D. | chdir |
Answer» C. cd/ | |
27. |
The command that can be used to restrict incoming messages to a user is |
A. | mesg |
B. | grep |
C. | halt |
D. | sleep |
Answer» B. grep | |
28. |
Which command is used to display the end of the file? |
A. | head - r |
B. | tail |
C. | eof |
D. | bof |
Answer» C. eof | |
29. |
Which option is used with the chmod command recursively to all files and sub-directories in a directory? |
A. | -1 |
B. | #NAME? |
C. | #NAME? |
D. | -R |
Answer» E. | |
30. |
Which command is used to print a file? |
A. | |
B. | prn |
C. | pg |
D. | lp |
Answer» E. | |
31. |
Which command is used with file named 'note' to remove the executable permission from the user and assign read permission to the group and others? |
A. | chmod u-x, go+r note |
B. | chmod go+r, u+x note |
C. | chmod g-x, uo+r note |
D. | chmod go+x, u-x note |
Answer» B. chmod go+r, u+x note | |
32. |
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» B. sh | |
33. |
Which of the following set options is used with vi editor to ignore case while searching for patterns? |
A. | ic |
B. | ai |
C. | sm |
D. | ts |
Answer» B. ai | |
34. |
Which is the earliest and most widely used shell that came with the UNIX system? |
A. | C shell |
B. | Korn shell |
C. | Bourne shell |
D. | Smith shell |
Answer» D. Smith shell | |
35. |
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» C. rm all | |
36. |
Which command is used to display all the lines with the string 'sales' from the file empl.lst? |
A. | cut sales empl.lst |
B. | /sales > empl.lst |
C. | grep sales empl.lst |
D. | cat | /sales > empl.lst |
Answer» D. cat | /sales > empl.lst | |
37. |
Which command is used to create a directory? |
A. | crdir |
B. | md |
C. | mkdir |
D. | cr |
Answer» D. cr | |
38. |
Which command is used to change directory to the name beginning with a 'p'? |
A. | cd p |
B. | cd p? |
C. | cd p* |
D. | cd [p] |
Answer» D. cd [p] | |
39. |
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» D. chusr | |
40. |
Which option will be used with disk free command to include the total amount of disk space in the file system? |
A. | #NAME? |
B. | #NAME? |
C. | -4 |
D. | #NAME? |
Answer» B. #NAME? | |
41. |
The chmod ugo+rw note command can be represented in octal notation as |
A. | chmod 555 note |
B. | chmod 666 note |
C. | chmod 444 note |
D. | chmod 333 note |
Answer» C. chmod 444 note | |
42. |
Which of the following commands is used to display the filenames in multiple columns with indication of directories and executable file? |
A. | ls -F -x |
B. | ls -l |
C. | ls ~ x |
D. | Ip |
Answer» B. ls -l | |
43. |
The [line number G] key allows you |
A. | to move cursor left by one position |
B. | to move cursor right by one position |
C. | to move cursor down by one line |
D. | to move cursor to the beginning of the line specified by the number |
Answer» E. | |
44. |
Which of the following commands is used to remove files? |
A. | erase |
B. | delete |
C. | rm |
D. | dm |
Answer» D. dm | |
45. |
The cat command is used to |
A. | capture a file |
B. | display a file |
C. | print a file |
D. | copy a file |
Answer» C. print a file | |
46. |
Which of the following commands is used to assign executable permission to the owner of the file named "note"? |
A. | chmod g+x note |
B. | chmod u+w note |
C. | chmod u+x note |
D. | chmod ugo+x note |
Answer» D. chmod ugo+x note | |
47. |
Which of the following commands is used to change the working directory? |
A. | cd |
B. | changedir |
C. | chdir |
D. | cdir |
Answer» B. changedir | |
48. |
Which command is used with vi editor scroll half page backward? |
A. | [Control-d] |
B. | [Control - u] |
C. | [Control-c] |
D. | [Control -P] |
Answer» C. [Control-c] | |
49. |
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» E. | |
50. |
The UNIX file system stores a data in physical blocks of |
A. | 1024 bytes |
B. | 2048 bytes |
C. | 512 bytes |
D. | 256 bytes |
Answer» D. 256 bytes | |