0

programming languages Online Quiz - 334

Description: programming languages Online Quiz - 334
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

How can I tell which version of Unix I am using?

  1. version

  2. version -a

  3. uname

  4. no command


Correct Option: C

How do I uncompress a file?

  1. gunzip/expand

  2. gzip

  3. zip

  4. winzip


Correct Option: A
  1. tar -cvf file/tar -xvf file

  2. tar -xvf file /tar -cvf file

  3. tar -cvf file.tar /tar -xvf file.tar /

  4. tar -xvf file.tar /tar -cvf file.tar /


Correct Option: C

How do I remove a file/directory?

  1. removedir

  2. rmdir

  3. rm

  4. None


Correct Option: B
  1. for i in *; do mv $i echo $i | tr [A-Z] [a-z]; done

  2. ls | mv $i | tr [A-Z] [a-z];

  3. ls | for I in do mv $i | tr [A-Z] [a-z]; done

  4. None


Correct Option: A
  1. past working directory

  2. people working directory

  3. path working directory

  4. present working directory


Correct Option: D
  1. A application to create Unix boot immages

  2. Application to create text files

  3. Application to create animations

  4. Application to create text file as well as animations


Correct Option: B

For some file the access permissions are modified to 764. Which of the following

  1. Every one can read, group can execute only and the owner can read and write

  2. Every one can read and write, but owner alone can execute

  3. Every one can read, group including owner can write, owner alone can execute

  4. None


Correct Option: C
  1. A request by the users to access kernel functions

  2. A request by kernel to the device

  3. A request by the device to kernel

  4. None


Correct Option: A

vi editor works on

  1. Append, Insert and copy modes

  2. Insert Mode, delete mode

  3. Add mode, delete mode, append mode

  4. Command, Insert mode, Edit mode


Correct Option: D

How to convert lower case to upper case or vice versa in vi

  1. :set upper/lower on

  2. Use ~

  3. :/s lower to upper

  4. None


Correct Option: B

How to open a file in read only mode using vi

  1. vi -R

  2. vi filename readonly

  3. vi -r

  4. Not possible


Correct Option: C

What is SPOOL?

  1. A mechanism to connect to printer, keyboard and monitor in Unix

  2. A mechanism to share printer across users

  3. A request made by the device to unix kernel

  4. None


Correct Option: B

How to query the printer queue?

  1. Use jobs command

  2. Use print command

  3. Use lpq command

  4. Use lpc command


Correct Option: C
- Hide questions