|
|
|
UNIX Questions
Chapter 1 à Unix Operating System
1. The resources in a computer include
A) CPU
B) Memory
C) Devices D) All of the above
2. In a time-sharing system
A) Several programs try to access the CPU at the same time.
B) Uses multiple CPUs
C) Overlapping of I/O and CPU bound jobs
D) None of the above
3. Set of Interfaces provided by the operating system that are callable from a C program are called
A) Programming Constructs B) Utilities C) Commands D) System Calls
4. System V Release 4 (SVR4) was developed by A) AT&T B) Sun Microsystems C) Both A) and B) D) None of the above
5. POSIX (Portable Operating System Interface) and X/Open are A) A flavor of UNIX B) Standards for Vendor neutral OS and X Window system C) A Real time Operating System D) None of the above
6. LINUX was developed by A) SCO B) Linus Torvalds C) AT & T D) Sun Microsystems
7. Features of Unix include
A) Multi-user, Multi-tasking and Time sharing B) Portable C) Secure File Structure D) All of the above
8. The job of the Kernel is A) Interacting with the hardware and to provide services to user programs B) Providing mechanism for creating and deleting process C) Doing Inter-process communication D) All of the above
9. Tools written using various system calls that enable users to interact with the system are called A) Utilities B) Filters C) System Calls D) None of the above
10. _________ provides an environment for the user to interact with the system A) Shell B) Kernel C) Utilities D) System Calls
11. Shell is a A) Command Interpreter B) Programmable and Interactive interface C) Both A) and B) D) None of the above
12. The shell that provides simple recalling and editing of previously entered commands and aliasing is A) C Shell B) Korn Shell C) Bourne Shell D) All the above
13. Process is a A) program in execution B) Address space C) Executable file D) All the above
14. The fork() system call A) Creates a new process B) Executes a command C) Loads a program D) Kills a process
15. Unix uses A) Shortest Job First scheduling B) First In First Out C) Round Robin D) None of the above
16. Which memory management method support Virtual Memory concept A) Segmentation B) Swapping C) Demand Paging D) Memory compaction and garbage collection
17. The following are the types of files in Unix systems A) Regular files: Text, Mail, Data, program code, etc. B) Directories C) Devices D) All of the above
18. ________ is the place holder for home directory and user accounts A) /home B) /tmp C) /etc D) /usr
19. _______ contains those utilities mostly used by the system administrator A) /usr B) /bin C) /etc D) /home
20. Which block used to control the allocation of disk blocks? A) Boot Block B) Super Block C) Data Block D) Inode Block
21. Every file in Unix is internally represented as ________. A) Boot block B) Super block C) Inode D) None of the above
22. The following are the types of users in Unix A) Owner B) Group C) Others D) All of the above
23. ________ begins when user logs on and terminates when user logs out A) Session B) Privilege C) Shell D) None of the above
Chapter 2 à UNIX Commands
1. The command to display current working directory is A) pwd B) cd C) who D) ls
2. The command who displays A) current date and time B) name of the current user C) names of all the users who are logged on D) None of the above
3. The option _____ is used to display the I-node number of the file A) –l B) –i C) -R D) –C
4. Which meta character is used to match any single character? A) […] B) ? C) * D) ;
5. When the file type is l it refers to A) Soft Link B) Hard Link C) Block special file D) Device
6. The option –M in man command is used to A) show all matching man pages B) path to man pages C) list command synopsis D) None of the above
Chapter 3 à Files and Directories
1. No read permission does not all allow the user to A) List the contents of the directory B) Remove the directory C) Both A) and B) D) None of the above
2. No execute permission does not allow the user to A) Change the directory B) Display a file in the directory C) Copy a file to/from the directory D) All of the above
3. Chmod u+x note A) Assigns execute permission to the owner of the file note B) Assigns execute permission to all users C) Assigns execute permission to group D) None of the above
4. The ________ option prints a message for each created directory A) –p B) –m C) –verbose D) All the above
5. The ________ command is used to see the default mask for the file permission
A) chmod
B) chgrp
C) chown D) umask
6. Soft link can link files in different file systems
A) TRUE
B) FALSE
7. Assume a program UpdateFile updates the content of a file sample.dat. In order to prevent unauthorized access to the file sample.dat, only root has read and write permissions. How can users access and update the file
A) chmod u+s UpdateFile
B) chmod 4755 UpdateFile
C) Both A) and B)
D) None of the above
8. Which permission bit makes a directory shareable such that any user can create a file in the directory but only the owner or root can remove the file.
A) SUID
B) SGID
C) Sticky Bit (SVTX)
D) None of the above
9.Which command in vi editor can delete 5 lines from the cursor position
A) 5x
B) 5dw C) 5dd
D) x
10. Which command in vi editor can enable “save as filename”
A) :w! filename
B) :x
C) :q
D) :w
|
| Author: Mahendran 17 Dec 2007 | Member Level: Gold Points : 4 |
CHAPTER 2 1.A) pwd 2.C) names of all the users who are logged on 3.B) –i 4.B) ? 5.A) Soft Link 6. cHAPTER 3
1. A) List the contents of the directory 2. C) Copy a file to/from the directory 3. B) Assigns execute permission to all users 4. C) –verbose 5. D) umask 6. B) FALSE 7. D) None of the above 8. C) Sticky Bit (SVTX) 9. C) 5dd 10. D) :w
|
| Author: Mahendran 17 Dec 2007 | Member Level: Gold Points : 4 |
Chapter 1
6.B) Linus Torvalds 7.D) All of the above 8.D) All of the above 10.A) Shell 11.C) Both A) and B) 12.D) All the above 18.A) /home 19.B) /bin 20.D) I node Block 21.C) Inode 22.D) All of the above 23.A) Session
Some answers may be wrong,if anything wrong. reply with correct answers.
|
| Author: BHARATH 18 Dec 2007 | Member Level: Gold Points : 1 |
thanks for the help buddy
|