Linux Programming Mid - I, September - 2014

1.To display list of all files with inode number ____command is used.
  • Ls –l
  • ls-a
  • ls-i
  • ls-t
Answer: C
2.Awk with what option we can write script in another file.
  • –F
  • –f
  • –e
  • none
Answer: B
3.Using ___ we interact with unix system.
  • Cmd
  • shell
  • kernel
  • system call
Answer: B
4.Redirection input operator is ______.
  • >
  • <
  • <<
  • >>
Answer: B
5.Which shell is called as Bourne again shell.
  • Bash
  • C
  • Kourne
  • Bourne
Answer: A
6.Which files are text files or binary files?
  • Directory
  • char
  • Block
  • regular
Answer: D
7.______ is a special device file which provides a temporary buffer for two or process To communicate.
  • Pipe
  • FIFO
  • Command
  • Block
Answer: B
8.Which is called as a program under execution.
  • Process
  • Thread
  • File
  • Command
Answer: A
9._____ is an area of memory that is managed by the system as a unit.
  • Block
  • segment
  • data structure
  • Process
Answer: B
10.Process 1 is called as _____ process.
  • Init
  • system
  • swapper
  • none
Answer: A
11.____________command is used to display non-repeated lines of a file.
Answer: UNIQ
12.To know your terminal we use ________________command.
Answer: TTY
13.We can give another name to a command using _________command.
Answer: ALIAS
14.Unix is a ________________operating system.
Answer: MULTI USER
15.____________ gives the PID of the current shell.
Answer: $$
16.__________ specifies how software components should interact with each other.
Answer: API
17.___________ allows a process to perform random access of a data in any opened file.
Answer: LSEEK
18.An ____________ process is a process that is still executing but whose parent processis died.
Answer: ORPHAN
19._____________ is used to suspend a process for a fixed amount of time.
Answer: SUSPEND
20._________ system call creates a communication channel between two related processes
Answer: PIPE