UNIX
Welcome frnds!!!Be prepare for it!!!
SET-I
1. UNIX uses ls to list files in a directory. The corresponding command in MS environment is:
A) lf
B) listdir
C) dir
2. A file with extension .txt
A) Is a text file created using vi editor
B) Is a text file created using a notepad
C) Is a text file created using word
3. In the windows environment file extension identifies the application that created it. If we remove the file extension can we still open the file?
A) Yes
B) No
4. Which of the following files in the current directory are identified by the regular expression a?b*.
A) afile
B) aab
C) abb
D) abc
E) axbb
F) abxy
5. For some file the access permissions are modified to 764. Which of the following interpretation are valid:
A) Every one can read, group can execute only and the owner can read and write.
B) Every one can read and write, but owner alone can execute.
C) Every one can read, group including owner can write, owner alone can execute
6. The file’s properties in Windows environment include which amongst the following:
A) File owners’ name
B) File size
C) The date of last modification
D) Date of file creation
E) The folder where it is located
7. Which of the following information is contained in inode structure
A) The file size
B) The name of the owner of the file
C) The access permissions for the file
D) All the dates of modification since the file’s creation
E) The number of symbolic links for this file
8. File which are linked have as many inodes as are the links.
A) True
B) False
9. Which directory under the root contains the information on devices
A) /usr/bin
B) /usr/sbin
C) /usr/peripherals/dev
D) /etc/dev
10. A contiguous allocation is the best allocation policy.
A) True
B) False
11. An indexed allocation policy affords faster information retrieval than the chained allocation policy.
A) True
B) False
12. Absolute path names begin by identifying path from the root.
A) True
B) False
SET-2
1. With what can you stop a process?
A) Stop
B) Shutdown
C) Kill
D) Delete
2. What does the command ls do?
A) Shows a calendar
B) Display of the contents of a file
C) Display of files and folders, present in the folder where you are
D) Opening a file
3. With what command you can see your user name?
A) whoami
B) I
C) pwd
D) me
4. How to create a new file without opening it?
A) less filename
B) pico filename
C) more filename
D) cat filename
E) touch filename
5. How can you display a list of all files, including the hidden files?
A) find all
B) ls -a
C) find -a
D) all
6. How can you append the output of a command to a file?
A) command < file
B) command <> file
C) command << file
D) command > file
E) command >> file
7. What do you use to forward errors to a file?
A) 1> filename
B) 2> filename
C) 2> /dev/null
D) &> filename
8. What command do you have to use to go to the parent directory?
A) cd ~
B) cd ..
C) cd /up
D) cd –
9. How do you delete a file?
A) rm filename
B) dl filename
C) touch filename
D) less filename
10. With what command you can see what folder you are in?
A) place
B) map
C) pwd
D) whereami
SET-III
1. How do you get help about the command "cp"?
A) help cp
B) man cp
C) Cp ?
2. How do you list all the files that are in the current directory?
A) list all
B) ls -full
C) ls -a
D) ls -s
3. How do you rename file "new" in file "old"?
A) mv new old
B) Cp new old
C) Rn new old
4. How do you visualize the content of file "not_empty"?
A) type not_empty
B) cat not_empty
C) more not_empty
5. How do you create a new directory called "flower"?
A) newdir flower
B) mkdir flower
C) crdir flower
SET-IV
1) works as a command interpretor
A) Hardware
B) Kernal
C) Shell
D) CPU
2) The major no for a floppy disk device is
A) 1
B) 3
C) 2
D) 4
3) chown
A) Changes the mode of operation to kernel mode
B) Creates a thread
C) Changes the users and/or group ownership of each given file
D) Creates a child process
4) lilo
A) Uninstalls the boot loader
B) Installs the boot loader
C) Is a login utility
D) Invokes a daemon to logoff
5) netdevice
A) Provides low level access to Linux network devices
B) Provides low level access to Linux storage devices
C) Provides an interface to communicate with graphic devices
D) None of the other option listed for this question
6) The process which terminates before the parent process exits, is called as
A) Zombie
B) Orphan
C) Child
D) None of the other option listed for this question
7) Context switch means
A) Kernel switches from executing one process to another.
B) Process switches from kernel mode to user mode.
C) Process switches from user mode to kernel mode.
D) None of the other option listed for this question
8) The following socket provides two way, sequenced, reliable and unduplicated flow of data with no record boundaries.
A) Sequential packet socket
B) Datagram socket
C) Stream socket
D) Raw socket
9) Identify the point(s) that is not true w.r.t. signals
A) Signals are software generated interrupts that are sent to a process when an event happens
B) Signal delivery is analogous to hardware interrupts in that a signal can be blocked from being delivered in the future.
C) Most signals are synchronous by nature.
D) Most signal cause termination of the receiving process if no action is taken by the process in response to the signal.
10) Identify the point(s) that is true wrt Semaphore
A) Only one process at a time can update a semaphore.
B) All the other options listed for this question
C) They are often used to monitor and control the availability of system resources such as shared memory segments.
D) Is a process with exclusive use of a semaphore terminates abnormally and fails to undo the operation or free the semaphore, the semaphore stays locked in the state the process left
SET-V
1. “ls” command in UNIX
A. Lists the files in a directory
B. Compare the size of two files
C. Gives the currently logged session details
D. Compares two numerals and prints the lower value
2. Which among the following is not a part of UNIX operating system
A. Programs
B. Libraries
C. Kernel
D. Shell
3. In UNIX, the shell act as an interface between user and
A. Kernel
B. Operating System
C. Hardware
D. Programs
4. Everything in UNIX is
A. None
B. a Process
C. a file or a process
D. a File
5. Which command is used for changing directory in UNIX?
A. mkdir
B. cd
C. chgdir
D. cddir
6. In UNIX, file permissions are not set for
A. User
B. Other users
C. Devices
D. User Groups
7. In Unix, how can you read the manual – help pages – about a command
A. Type ‘help’ and the command
B. Type ‘options’ and the command
C. Type ‘details’ and the command
D. Type ‘man’ and the command
8. Which is the most common text editor in UNIX ?
A. Visual editor
B. notepad
C. Word
D. Open office
9. You have created a shell script and wants to run the script. What should you do before trying to run the script ?
A. No action required
B. Compile the script to create the executable
C. Update the execute permission of the script
D. Give ownership of the file to system admin
10. Which is valid mode of operation in vi editor ?
A. Typing mode
B. Command Mode
C. Append mode
D. Open mode
Go here link is not working ...
ReplyDeleteYes, I know it bro...Its not working bcz I don't have answer of these ques whenever I will get answer of these, I will update it.
DeleteSorry for inconvenience...