Linux-OS (Ubuntu,kali linux,.....) MCQ's




Question 1 :
Which of the following is not a communication command?


  1. Write
  2. Mail
  3. Mesg
  4. Gr=
  

Question 2 :
The file that stores an integer as a sequence of characters is a


  1. Text file
  2. Data file
  3. Binary file
  4. Core
  

Question 3 :
To allow only one user to work with a particular file at a particular time ,one has to


  1. Semaphore
  2. Critical region
  3. Locking
  4. Dedicated mode
  

Question 4 :
Shell functions


  1. Are another name for shell procedures
  2. Execute faster than shell procedures
  3. Are executed by a new shell
  4. Are not executed by new shell
  

Question 5 :
Command_________compares two files byte by byte and displays the first mismatch.


  1. cmp
  2. comp
  3. cmap
  4. None of these
  

Question 6 :
Environment variables can be accessed by


  1. System programs
  2. C programs
  3. Shell scripts
  4. None of the above
  

Question 7 :
Which of the following commands is used to count the total number of lines,words and characters contained in a file?


  1. count p
  2. wcount
  3. wc
  4. count w
  

Question 8 :
An attempt to read from locked file,results in


  1. Prematured termination
  2. A deadlock
  3. An indefinite wait
  4. None of the above
  

Question 9 :
UNIX was developed by


  1. Bell labs
  2. Berkley software
  3. California university
  4. American defence academy
  

Question 10 :
The Unix command used to find out the number of characters in a file is


  1. nc
  2. wc
  3. chcnt
  4. c
  

Question 11 :
Which of the following statement best explains a process?


  1. It is a program.
  2. It is a program in execution.
  3. It is an instance of a program in execution.
  4. It is a program that uses system calls.
  

Question 12 :
Which of the following is not a filter?


  1. cat
  2. wc
  3. gr=
  4. sort
  

Question 13 :
The tail command in UNIX


  1. Can be used to look at the tail or bottom of the file
  2. Can be used to display the list of last 10 files in the current directory
  3. Can be used to display the list of last 15 in the current directory
  4. None of the above
  

Question 14 :
The advantage of binary files over text files is that


  1. It is compact
  2. It can be accessed faster
  3. Many commands assume the named file to be a binary file
  4. They are more reliable
  

Question 15 :
Which of the following files contains information related to password aging?


  1. Shadow
  2. Profile
  3. Password
  4. All of these
  

Question 16 :
If cat x ,prints garbage ,then x is probably a


  1. Data file
  2. Binary file
  3. Text file
  4. Source file
  

Question 17 :
Which of the following sections of an executable binary file has all uninitialized data items?


  1. BSS
  2. Data
  3. Header
  4. Symbol
  

Question 18 :
The tar command in UNIX


  1. Used to create compressed archives of directories and files
  2. Used to extract directories and files from an archives
  3. Both A and B
  4. None of the above
  

Question 19 :
Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3?


  1. chmod 777 emp*
  2. chmod u x emp[l-3]
  3. chmod u r ??? emp
  4. chmod 222 emp?
  

Question 20 :
Which of the following keys is used to r=lace a single character with new text?


  1. S
  2. s
  3. r
  4. C
  

Question 21 :
Which of the following system calls transforms an executable binary file into a process?


  1. Fork
  2. Exec
  3. Ioct1
  4. Longjmp
  

Question 22 :
The cat command is used to


  1. Print a file
  2. Display a file
  3. Capture a file
  4. Copy a file
  

Question 23 :
Which of the following changes permission to deny write permission to group and others?


  1. Chmod go-w filex
  2. Chmod go w filex
  3. Chmod go=w file
  4. None of the above
  

Question 24 :
Kernel is not involved


  1. When a read operation is done
  2. When a pressed key is echoed on to the screen
  3. In resource allocation
  4. None of the above
  

Question 25 :
Which command is used to extract specific columns from the file?


  1. cut
  2. gr=
  3. Past
  4. cat
  

Question 26 :
Which command is used to display the device name of the terminal you are using?


  1. who
  2. ls
  3. tty
  4. stty
  

Question 27 :
In which section of a process,the information about the arguments to the program are available?


  1. Data
  2. Text
  3. Stack
  4. User block
  

Question 28 :
Which of the following calls never returns an error?


  1. Getpid
  2. Fork
  3. Ioct1
  4. Open
  

Question 29 :
Which command is used to display a file contents in octal form?


  1. cd
  2. of
  3. od
  4. oct
  

Question 30 :
Which command allows you to view your file 24 lines at a time ?


  1. More
  2. Cat
  3. Pg
  4. None of the above
  
Pages