programming languages Online Quiz - 333

programming languages Online Quiz - 333

20 Questions Published

Questions

Question 1 True/False

Bourne Shell provides support for command aliasing

  1. True
  2. False
Question 2 True/False

Unix allows more than one root directory

  1. True
  2. False
Question 3 True/False

tar can be used to write on to floppy disks

  1. True
  2. False
Question 4 True/False

if statement needs to end with end if

  1. True
  2. False
Question 5 True/False

du command displays the file system usage for the entire file system

  1. True
  2. False
Question 6 True/False

Normal users can kill init process

  1. True
  2. False
Question 7 True/False

top command can be used to control processes

  1. True
  2. False
Question 8 True/False

Using netstat one can restart network device

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

What will happen if the specfied shell directive is not present in the path as mentioned in the shell script?

  1. Takes default shell
  2. Prompt error
  3. Fixes the path
  4. None
Question 10 Multiple Choice (Single Answer)

What is a named pipe?

  1. A Pipe used by kernel to access device
  2. A pipe to be used by the user to access device
  3. An abstraction to provide support for inter process communication
  4. A device
Question 11 Multiple Choice (Single Answer)

To search exactly one word in a given list

  1. [word1, word2, ..]
  2. {word1, word2, ….}
  3. (word1, word2, ….)
  4. word1, word2, ….
Question 12 Multiple Choice (Single Answer)

It is possible to redirect the output of a process to more than one source

  1. True
  2. False
  3. True but needs root permission
  4. None
Question 13 Multiple Choice (Single Answer)

The components of unix file system are (Give the proper order)

  1. boot block, super block, inode block, data block
  2. super block, boot block, inode block, data block
  3. boot block, inode block, super block, data block
  4. boot block, super block, data block, inode block
Question 14 Multiple Choice (Single Answer)

Commands tar & dd

  1. dd allows block sizes to be defined, tar does not allow
  2. tar allow block sizes to be defined while dd does not allow
  3. both tar & dd allow block sizes to be modified
  4. both tar & dd do not allow block sizes to be modified
Question 15 Multiple Choice (Single Answer)

what does cmp do?

  1. Copies file1 to file2
  2. Compares file1 and file2 and update file1 with file2 whereever differs
  3. Compares file1 and file2 and update file2 with file1 whereever differs
  4. None
Question 16 Multiple Choice (Single Answer)

fsck command is

  1. Used to create file systems
  2. Used to create files
  3. Used to create root file system alone
  4. None
Question 17 Multiple Choice (Single Answer)

fdisk command is

  1. Used to create file systems
  2. Used to create harddisk partitions
  3. Used to create root file system alone
  4. None
Question 18 Multiple Choice (Single Answer)

The option not allowed in test command

  1. -d
  2. -l
  3. -u
  4. -a
Question 19 Multiple Choice (Single Answer)

The valid conditional operator

  1. -NE
  2. -GT
  3. -LT
  4. -eq
Question 20 Multiple Choice (Single Answer)

How to mount a file system?

  1. fsck
  2. fsmount
  3. mount
  4. mountfs