McqMate
These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Science in Computer Science (BSc CS) .
1. |
/temp is a type of filesystem directory |
A. | True |
B. | False |
Answer» B. False |
2. |
Which of the following commands delete the files from the /tmp directory, issued by non-root user? |
A. | rmdir -rf /tmp/* |
B. | rm -rf /tmp/* -su |
C. | su -c “rm -rf /tmp/*” |
D. | su “rm -rf /tmp/*” |
Answer» C. su -c “rm -rf /tmp/*” |
3. |
Echo is used to Display message on screen. Which of the following options below should be used with echo to not output the trailing newline? |
A. | /e |
B. | /n |
C. | -n |
D. | both b and c |
Answer» C. -n |
4. |
The basic function of ______________ is to search files for lines (or other units of text) that contain a pattern. |
A. | awk |
B. | search |
C. | %awk |
D. | cat |
Answer» A. awk |
5. |
What is the content of /etc directory? |
A. | Configuration files for your system. |
B. | Contains the system startup scripts |
C. | Both a and b |
D. | User specific settings for programs like IRC, X etc. |
Answer» C. Both a and b |
6. |
What is the difference between linux file system and windows file system? |
A. | Under Linux, the various partitions are detected at boot and assigned a drive letter whereas Under windows, unless you mount a partition or a device, the system does not know of the existence of that partition or device. |
B. | Under Windows, the various partitions are detected at boot and assigned a drive letter whereas Under Linux, unless you mount a partition or a device, the system does not know of the existence of that partition or device. |
C. | Under Windows, the various partitions are detected at reboot and assigned a drive letter whereas Under Linux, unless you mount a partition or a device, the system does not know of the existence of that partition or device. |
D. | Under Windows, the various partitions are detected at reboot and assigned a drive letter whereas Under Linux, you mount a partition or a device. |
Answer» B. Under Windows, the various partitions are detected at boot and assigned a drive letter whereas Under Linux, unless you mount a partition or a device, the system does not know of the existence of that partition or device. |
7. |
Which of the following below is/are true for Date command? |
A. | It can work w/o arguments |
B. | It always needs an argument |
C. | It always need to have a+ as an argument |
D. | None of the above |
Answer» A. It can work w/o arguments |
8. |
What is the default number of shell commands saved in the history list of .cshrc file? |
A. | 200 |
B. | 100 |
C. | 150 |
D. | 175 |
Answer» A. 200 |
9. |
mount -r is used to mount a file in read only mode |
A. | True |
B. | False |
Answer» A. True |
10. |
The advantage of using NFS rather than Samba for file sharing in Linux is |
A. | files saved as .tar extension |
B. | compressed files |
C. | compatibility with Windows file sharing |
D. | None of the above |
Answer» C. compatibility with Windows file sharing |
11. |
Which of the following supports for creating a Linux VPN (Virtual Private Network)? |
A. | RC2 |
B. | 3DES |
C. | chap |
D. | NTLMv2 |
Answer» B. 3DES |
12. |
Find command can search for files by |
A. | date |
B. | size |
C. | name |
D. | all of above |
Answer» D. all of above |
13. |
How can we find the current value for shell variables? |
A. | Set command |
B. | Display command |
C. | val command |
D. | Currval command |
Answer» A. Set command |
14. |
CWD is a type of shell variable |
A. | True |
B. | False |
Answer» A. True |
15. |
Which framework is provided for the programs to interchange information about Linux OS? |
A. | Resource Sharing Framework |
B. | Resource Security Framework |
C. | Information Sharing Framework |
D. | Resource Definition Framework |
Answer» D. Resource Definition Framework |
16. |
What is the difference between PATH and path? |
A. | PATH and path specify directories to search for commands and programs |
B. | Both variables always represent the same directory list |
C. | altering either automatically causes the other to be changed |
D. | All choices are correct. |
Answer» D. All choices are correct. |
17. |
How much usable space is available, when a Linux system is configured with a RAID 5 array that consists of six 20 GB hard disk drives? |
A. | 80 |
B. | 100 |
C. | 120 |
D. | 60 |
Answer» C. 120 |
18. |
Which of the following below are environmental variables? |
A. | USER |
B. | HOME |
C. | both a and b |
D. | VARHOST |
Answer» C. both a and b |
19. |
Applications written to provide a GUI shell for Unix and Linux are called |
A. | DOS |
B. | x windows |
C. | OS/2 |
D. | Vista |
Answer» B. x windows |
20. |
Which of the following commands can be used to check for file corruption? |
A. | md5sum |
B. | checkfile |
C. | cat -vet |
D. | tar –checksum |
Answer» A. md5sum |
21. |
Starting or restarting a computer is called |
A. | booting the system |
B. | firing the system |
C. | tasking the system |
D. | restoring the system |
Answer» A. booting the system |
22. |
This type of boot occurs when the computer is already on, and you restart it without turning off the power. |
A. | generic boot |
B. | live boot |
C. | warm boot |
D. | cold boot |
Answer» C. warm boot |
23. |
The ‘logout’ built in command is used to |
A. | shutdown the computer |
B. | logoff of the computer |
C. | logout the current user |
D. | to exit the current shell |
Answer» D. to exit the current shell |
24. |
The command ‘umask -S’ |
A. | prints the current mask using symbolic notation |
B. | prints the current mask using octal numbers |
C. | sets the mask to 000 |
D. | sets the mask to 777 |
Answer» A. prints the current mask using symbolic notation |
25. |
Which command puts a script to sleep untill a signal is recieved? |
A. | sleep |
B. | suspend |
C. | disown |
D. | break |
Answer» B. suspend |
26. |
Which of the following below are true functionalities of shell? |
A. | Authenticates user |
B. | Interprets commands |
C. | Allocates time and memory to programs |
D. | Only a and b |
Answer» B. Interprets commands |
27. |
A process can run only in the background |
A. | True |
B. | False |
Answer» B. False |
28. |
Which of the following below are true functionalities of Kernel? |
A. | Allocates time and memory to programs |
B. | Authenticates user |
C. | Interprets commands |
D. | All choices are correct |
Answer» A. Allocates time and memory to programs |
29. |
To implement new application on IBM z/10. Which of the following options need to be considered if it to be implemented in Linux? |
A. | IBMz/OS outperforms Red Hat Linux in commercial workloads |
B. | IBMz/OS is more expensive, Linux is shareware |
C. | Red Hat Linux does not support all devices supported by IBMz/OS |
D. | z/OS is supported by IBM SupportLine, whereas Red Hat Linux can only be supported by Red Hat |
Answer» C. Red Hat Linux does not support all devices supported by IBMz/OS |
30. |
A process is identified by a unique |
A. | Pid |
B. | Id |
C. | processed |
D. | proid |
Answer» A. Pid |
31. |
Which command reduces the size of a file? |
A. | pzip |
B. | gcat |
C. | pgcat |
D. | gzip |
Answer» D. gzip |
32. |
Which of the following has greater market share of Linux SW/HW |
A. | Linux on z10 |
B. | Linux HP integrity server |
C. | Linux on AS/400 servers locate |
D. | Linux on DELL Xeon |
Answer» A. Linux on z10 |
33. |
Which of the following is the BEST way to set up SSH(Secure Shell) for communicating between System without needing passwords? |
A. | Use ssh-keygen for generating public-private keys. |
B. | Disable passwords on specific accounts that will use SSH. |
C. | Both A and B |
D. | None of the above |
Answer» A. Use ssh-keygen for generating public-private keys. |
34. |
Which of the following commands can be run to remove all the rules in an iptable table? |
A. | iptable-L |
B. | iptable-A |
C. | iptable-F |
D. | iptable-delete |
Answer» C. iptable-F |
35. |
Which command is used to see the online manual? |
A. | Man |
B. | manual |
C. | *man |
D. | %man |
Answer» A. Man |
36. |
The head command writes the first ____________ lines of a file to screen. |
A. | Five |
B. | Twenty |
C. | Ten |
D. | Fifteen |
Answer» C. Ten |
37. |
Which command is used to clear the screen? |
A. | % clear |
B. | clear |
C. | clrscr |
D. | either a or c |
Answer» B. clear |
38. |
Which command is used to find what is in your home directory? |
A. | % List |
B. | % Is |
C. | % home |
D. | Either a or c |
Answer» B. % Is |
39. |
Pipe symbol is represented by |
A. | || |
B. | | |
C. | ^ |
D. | $ |
Answer» B. | |
40. |
What is the shortcut to the login directory? |
A. | shift+cd |
B. | cd+enter key |
C. | alt+ctrl+cd |
D. | ctrl+cd |
Answer» B. cd+enter key |
41. |
What is used to search files for specified words or patterns? |
A. | Less |
B. | Srch |
C. | %src |
D. | Grep |
Answer» D. Grep |
42. |
cd home to get back to your home-directory? |
A. | True |
B. | False |
Answer» B. False |
43. |
> symbol is used to redirect the output of a command |
A. | True |
B. | False |
Answer» A. True |
44. |
Which character is used to match exactly one character? |
A. | | |
B. | * |
C. | ^ |
D. | ? |
Answer» D. ? |
45. |
The hierarchy of a series of directories branching in a user system starts from |
A. | home |
B. | root |
C. | /home |
D. | /root |
Answer» C. /home |
46. |
What PHP stands for? |
A. | Hypertext Preprocessor |
B. | Pre Hypertext Processor |
C. | Pre Hyper Processor |
D. | Pre Hypertext Process |
Answer» D. Pre Hypertext Process |
47. |
How does the identity operator === compare two values? |
A. | It converts them to a common compatible data type and then compares the resulting values |
B. | It returns True only if they are both of the same type and value |
C. | If the two values are strings, it performs a lexical comparison |
D. | It bases its comparison on the C strcmp function exclusively |
Answer» A. It converts them to a common compatible data type and then compares the resulting values |
48. |
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function? |
A. | When the parameter is Boolean |
B. | When the function is being declared as a member of a class |
C. | When the parameter is being declared as passed by reference |
D. | When the function contains only one parameter |
Answer» C. When the parameter is being declared as passed by reference |
49. |
Variables always start with a ........ in PHP |
A. | Pond-sign |
B. | Yen-sign |
C. | Dollar-sign |
D. | Euro-sign |
Answer» C. Dollar-sign |
50. |
What is the value displayed when the following is executed? Assume that the code was executed using the following URL:
|
A. | 25 |
B. | -5 |
C. | 10 |
D. | 5 |
Answer» B. -5 |
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.