0

programming languages Online Quiz - 331

Description: programming languages Online Quiz - 331
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. function_name() {command-list }

  2. function_name ( ) { }

  3. function name (command list ) {

  4. None


Correct Option: A
  1. cat testfile >redirfile

  2. cat testfile >>redirfile

  3. cat testfile 1> redirfile

  4. cat testfile 2> redirfile


Correct Option: B
  1. Tests for command-line arguments

  2. Shifts arguments to the left

  3. Exits the program

  4. Creates a pause in the program


Correct Option: D
  1. chattr +i /etc/inputrc

  2. chmod 666 inputrc

  3. chmod g=rw inputrc

  4. None


Correct Option: A

"Which group of letters are the file permissions that apply to a group in the string r--r-xrwx? "

  1. r--

  2. r -x

  3. rwx

  4. None


Correct Option: B

"Which command will create a hard link named ""Link"" to the ""Test"" file? "

  1. ln -s Test Link

  2. ln Test Link

  3. ln / Link Test

  4. ln -h Link Test


Correct Option: B

What does the command umask 123 do?

  1. It sets file owner permissions to read and write

  2. It sets the permissions of other users to read

  3. It sets group permissions to read and execute

  4. All of them


Correct Option: D

User's with user id as 0 (Zero) are

  1. Printer users

  2. Not allowed to login using rlogin/ssh

  3. root users

  4. User id cannot be 0


Correct Option: C

User's passwords are generally stored in

  1. /etc/passwd

  2. /var/passwd

  3. /etc/password

  4. /var/password


Correct Option: A

What is the purpose of sync command?

  1. To synchronize user applications

  2. To synchronize keyboard and monitor

  3. To synchornize disk buffers

  4. To syschronize main memory and cache memory


Correct Option: C

How to mount a file system?

  1. fsck

  2. fsmount

  3. mount

  4. mountfs


Correct Option: C

"Count the number of errors in the statement if [password = password1] then echo password else password"

  1. 0

  2. 4

  3. 1

  4. 2


Correct Option: B

The valid conditional operator

  1. -NE

  2. -GT

  3. -LT

  4. -eq


Correct Option: D

The option not allowed in test command

  1. -d

  2. -l

  3. `-u

  4. -a


Correct Option: B

linux allows more than one root directory

  1. True

  2. False


Correct Option: B
- Hide questions