

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.
1. |
The agency that sits between the user and the LINUX system is called the |
A. | logic |
B. | shell |
C. | .profile |
D. | .exec |
Answer» C. .profile | |
2. |
Which of the following commands is used to view the file 24 lines at a time? |
A. | pg |
B. | 1p |
C. | cat |
D. | /p |
Answer» B. 1p | |
3. |
Which command is used to record a user login session in a file ? |
A. | macro |
B. | read |
C. | script |
D. | none of the above |
Answer» D. none of the above | |
4. |
Which is not the correct option for removing a message queue ? |
A. | ipcrm -Q |
B. | ipcrm -q |
C. | ipcrm -m |
D. | None |
Answer» D. None | |
5. |
SOCK_DGRAM sockets are used by ______ processes. |
A. | UDP |
B. | TCP |
C. | SCTP |
D. | None of these |
Answer» B. TCP | |
6. |
Which command is used to select those lines that begin with a 2 in the tre file empl.1st? |
A. | grep “^2” empl.1st |
B. | grep “2…” empl.1st |
C. | grep “7^” empl.1st |
D. | grep “2^” empl.1st |
Answer» B. grep “2…” empl.1st | |
7. |
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. | |
8. |
The chmodugo+rw note command can be represented in octal notation as |
A. | chmod 555 note |
B. | chmod 666 note |
C. | chmod 333 note |
D. | chmod 444 note |
Answer» C. chmod 333 note | |
9. |
What will be printed for the command below?$ grep –c “^echo” abc |
A. | The count of lines that do not contain the pattern echo in file abc |
B. | The count of lines which begin with the pattern echo in file abc |
C. | The count of lines that ends with the pattern echo in file abc |
D. | None of the above |
Answer» C. The count of lines that ends with the pattern echo in file abc | |
10. |
The commonly used UNIX commands like date, Is, cat, etc. are stored in |
A. | /dev directory |
B. | /bin and /usr/bin directories |
C. | /unixdirecotry |
D. | /tmp directory |
Answer» C. /unixdirecotry | |
11. |
The command “mknodmyfifo b 4 16” |
A. | Will create a block device if user is root |
B. | Will create a block device for all users |
C. | Will create a FIFO if user is not root |
D. | None of the above |
Answer» B. Will create a block device for all users | |
12. |
Which command is used to display all the files including hidden files in your current andits subdirectories ? |
A. | ls –aR |
B. | ls –a |
C. | ls –R |
D. | ls –l |
Answer» B. ls –a | |
13. |
Which of the following commands can be used to change default permissions for filesand directories at the time of creation |
A. | Chmod |
B. | Chown |
C. | Umask |
D. | Chgrp |
Answer» D. Chgrp | |
14. |
What protocol(s) is (are) allowed a user to retrieve her/his mail from the mail server to her/his mail reader? |
A. | POP3 |
B. | FTP |
C. | MAP |
D. | All of the above |
Answer» B. FTP | |
15. |
Which of the following directories contain all the files created by a user, including his login directory? |
A. | /tmp |
B. | /usr |
C. | /etc |
D. | /dev |
Answer» C. /etc | |
16. |
How do the user gets the help about the command “cp”? |
A. | help cp |
B. | man cp |
C. | cd ? |
D. | none |
Answer» C. cd ? | |
17. |
Which of the following tool allows the user to change the default X Window desktop? |
A. | Switchdesk |
B. | Intrc |
C. | Xinitre |
D. | Xchange |
Answer» B. Intrc | |
18. |
Which command is used to make all files and sub-directories in the directory (prog)executable by all users? |
A. | chmod –R a+xprogs |
B. | chmod –x a+xprogs |
C. | chmod -1 a+xprogs |
D. | chmod –R 222 progs |
Answer» B. chmod –x a+xprogs | |
19. |
Which program is used to schedule particular jobs or programs at particular times on thesystem? |
A. | vi |
B. | Outlook |
C. | Scheduler |
D. | cron |
Answer» E. | |
20. |
Which of the following commands is used to copy directory structures in and out? |
A. | cp |
B. | cp-p |
C. | cpio |
D. | copy |
Answer» D. copy | |
21. |
How to identify a communication? |
A. | Source IP Address |
B. | Source Port Number |
C. | Destination IP Address |
D. | All the above |
Answer» E. | |
22. |
Communication using UDP is usually____________. |
A. | connectionless,iterative |
B. | connectionless,concurrent |
C. | connection-oriented,iterative |
D. | connection-oriented,concurrent |
Answer» B. connectionless,concurrent | |
23. |
NetBIOS is |
A. | Session Service |
B. | Datagram service |
C. | General Commands |
D. | None |
Answer» B. Datagram service | |
24. |
If you are a root user, how can you grand execute permission only for the owner of the fileproject1? |
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 | |
25. |
Which command is used to display the unix version ? |
A. | uname -r |
B. | uname -n |
C. | uname -t |
D. | kernel |
Answer» B. uname -n | |
26. |
In which directory can you store system user default files used for creating userdirectories? |
A. | /usr/tmp |
B. | /etc/default |
C. | /etc/skel |
D. | /etc/users |
Answer» D. /etc/users | |
27. |
Which system call is used to create Sys V message Queue ? |
A. | msgget |
B. | shemget |
C. | semget |
D. | msgctl |
Answer» B. shemget | |
28. |
Similar to read and write system calls |
A. | Send |
B. | Recv |
C. | (a) and (b) both |
D. | None |
Answer» D. None | |
29. |
Which among the following is used to write small programs to control Unixfunctionalities? |
A. | Shell Commands |
B. | Shell Script |
C. | Filters |
D. | C Language |
Answer» C. Filters | |
30. |
Which of the following is not the component of LINUX? |
A. | CPU |
B. | Kernel |
C. | Shell |
D. | Utilities |
Answer» B. Kernel | |
31. |
Signals can be sent |
A. | By process itself |
B. | By one process to another process |
C. | By the Kernel to a process |
D. | By (a),(b) and (c) |
Answer» E. | |
32. |
Which of the following commands will allow the user to search contents of a file for aparticular pattern |
A. | touch |
B. | grep |
C. | find |
D. | ls |
Answer» C. find | |
33. |
The asterisk is a meta-character which in the command "ls *.txt" means |
A. | Any single character |
B. | Any combination of one or more characters |
C. | Any combination of zero or more characters |
D. | None of the above |
Answer» B. Any combination of one or more characters | |
34. |
What type of addressing format is used by Class A network? |
A. | Net.Net.Net.Node |
B. | Net.Net.Node.Node |
C. | Net.Node.Net.Node |
D. | Net.Node.Node.Node |
Answer» E. | |
35. |
who cut –d ” ” -f1 what is the ouput if the who command displays like this user1 tty 0 1234 |
A. | user1 |
B. | user1 tty 0 1234 |
C. | tty |
D. | tty 0 1234 |
Answer» B. user1 tty 0 1234 | |
36. |
Which of the following is not a major Unix shell? |
A. | X Shell |
B. | C Shell |
C. | Bash Shell |
D. | Korn Shell |
Answer» D. Korn Shell | |
37. |
Communication using TCP is usually____________. |
A. | connectionless,iterative |
B. | connectionless,concurrent |
C. | connection-oriented,iterative |
D. | connection-oriented,concurrent |
Answer» E. | |
38. |
FIFO Stands For : |
A. | Figure in Figure Out |
B. | First in First Out |
C. | File input File Output |
D. | None |
Answer» C. File input File Output | |
39. |
Which of the following commands is used to list remove files? |
A. | erase |
B. | rm |
C. | delete |
D. | dm |
Answer» C. delete | |
40. |
Physical partitioning can be done using: |
A. | fdisk |
B. | Disk Driud |
C. | Both (a) and (b) |
D. | None |
Answer» D. None | |
41. |
What TCP/IP protocol is used for file transfer with minimal capability and minimaloverhead? |
A. | TELNET |
B. | TFTP |
C. | FTP |
D. | RARP |
Answer» C. FTP | |
42. |
RPM stands for |
A. | Random Process Management |
B. | Red Hat Package Manager |
C. | Both (a) and (b) |
D. | None |
Answer» C. Both (a) and (b) | |
43. |
Which class network is used for a collection of a small number of networks with a largenumber of nodes? |
A. | Class A |
B. | Class B |
C. | Class C |
D. | All of the above |
Answer» B. Class B | |
44. |
Which commands will give you information about how much disk space each file in thecurrent directory uses? |
A. | ls -l |
B. | ls -la |
C. | du |
D. | ls -a |
Answer» D. ls -a | |
45. |
SOCK_STREAM sockets are used by ______ processes. |
A. | UDP |
B. | TCP |
C. | SCTP |
D. | None of these |
Answer» C. SCTP | |
46. |
____ tool allows you to change your default X Window desktop. |
A. | Utilinux |
B. | Cempre |
C. | Switchdesk |
D. | Window |
Answer» D. Window | |
47. |
Which was the first Unix shell? |
A. | X Shell |
B. | C Shell |
C. | Bash Shell |
D. | Korn Shell |
Answer» C. Bash Shell | |
48. |
Which of the following is not a iterative construct in "bash"? |
A. | If |
B. | For |
C. | Until |
D. | While |
Answer» D. While | |
49. |
The set of possible names for a given type of IPC is called its |
A. | Process |
B. | Name Space |
C. | Connect |
D. | Communication |
Answer» C. Connect | |
50. |
What command is used to count the total number of lines, words, and characterscontained in a file? |
A. | countw |
B. | wcount |
C. | wc |
D. | count p |
Answer» D. count p | |