1.ordinary file
2.directory file
3.device file
4. ordinary file and directory file
Answer:1
1. /, NULL
2. $,^
3.., %
4.NULL, $
Answer 11.The number of arguments supplied to a script.
2.The filename of the current script.
3.The exit status of the last command executed.
4.The process number of the last background command
Answer 11.2
2. 3
3.4
4.5
Answer 21.Stephen R. Bourne
2.Stephen R. Korn
3.Stephen R. C.
4.Stephen Watson
Answer 11.0
2.1
3.2
4. -1
Answer 21. break
2. break loop
3.break n
4.break n+i
Answer 31.Checks if the value of two operands are equal or not
2. Checks if the given string operand size is zero
3. Checks if the given string operand size is zero
4.Checks if the given string operand size is non-zero
Answer 21.break
2.continue
3.Both A and B
4. None of the above
Answer 31. finite loop
2.infinite loop
3.simple loop
4.definate loop
Answer 21.vector variables
2.scalar variables
3.array variables
4.none of the above
Answer 21.filename
2.inode number
3.file size
4.Both a and b
Answer 41.4
2.2
3.3
4. 5
Answer 21.2
2.3
3.4
4.5
Answer 21.-eq
2.-gte
3. -ge
4. -gt
Answer 31. For loop
2.While loop
3. until loop
4.Both b and c
Answer 21. ()
2.. " "
3. ' '
4.< >
Answer 31.ordinary file
2.directory file
3.device file
4. ordinary file and directory file
Answer 11.numbers
2. letters
3. underscore character
4.All of the above
Answer 41. 1960s
2.1970s
3.1980s
4.1990s
Answer 21.Uppercase
2. Lowercase
3.First character Uppercase and all other character Lowercase
4. First character Lowercase and all other character Uppercase
Answer 11.read
2.write
3.readonly
4.writeonly
Answer 31.array_name[index]=value
2.set -A array_name value1 value2 ... Valuen
3. array_name=(value1 ... valuen)
4. ${array_name[index]}=value
Answer 31. array_name[index]=value
2. set -A array_name value1 value2 ... Valuen
3. array_name=(value1 ... valuen)
4.${array_name[index]}=value
Answer 21.${array_name[index]}
2. #{array_name[index]}
3.$${array_name[index]}
4. $[array_name{index}]
Answer 11. Checks if file is a directory
2.Checks if file is an ordinary file as opposed to a directory or special file
3.Checks if file exists
4.Checks if file is executable
Answer 31.Checks if str is not the empty string
2.Checks if the given string operand size is non-zero
3.Checks if the given string operand size is zero
4. Checks if the value of two operands are equal or not
Answer 11.Checks if file is executable
2. Checks if file has size greater than 0
3.Checks if file exists
4.Checks if file has its Set User ID (SUID) bit set
Answer 11.Shell supports a different type of variable called an array variable.
2.array variable can hold multiple values at the same time.
3.Arrays provide a method of grouping a set of variables
4.All of the above
Answer 41. Yesterday date
2.Current date
3.Current date and time
4.Tomarrow date and time
Answer 31.VAR_1
2. _ALI
3.VAR1
4. VAR_A!
Answer 41.ld
2. lr
3.ls
4.lp
Answer 31.awk
2.expr
3.sum
4.Both a and b
Answer 41. -g
2.-k
3.-p
4.-a
Answer 21.remove
2. readonly
3. unset
4.delete
Answer 31.and
2. or
3.not
4.All of the above
Answer 41. ${arr[@]:1:4}
2.${arr[@]}
3.${arr[*]}
4.Both A and C
Answer 11.${#arr[0]}
2.${#arr}
3.${#arr[#]}
4.Both a and b
Answer 41. sh
2. set
3.env
4.var
Answer 31. ${arr[@]/*[aA]*/}
2. ${arr[#]/*[aA]*/}
3. ${arr[*]/*[aA]*/}
4.Both A and C
Answer 41.array_name{index}=value
2.array_name(index)=value
3.array_name[index]=value
4.. [index]array_name=value
Answer 31.The C Shell
2.The Korn Shell
3.The Bourne Shell
4.None of the mentioned
Answer 41.All data in Unix is organized into files.
2.All files are organized into directories.
3.The directories are organized into a tree-like structure called the filesystem.
4.All of the above
Answer 41.A Shell provides you with an interface to the Unix system.
2.Shell gathers input from you and executes programs based on that input.
3.Shell is an environment in which we can run our commands, programs, and shell scripts.
4. All of the above
Answer 41.The for loop
2.The until loop
3. The select loop
4.The foreach loop
Answer 41. Arithmetic Operators
2.Boolean Operators
3.Character operators
4. File Test Operators
Answer 31.case
2.Switch
3.switch...case
4.case...esac
Answer 41.continue
2. terminate
3.this
4.break
Answer 41.Double dot (..)
2.Dollar dot($.)
3.Single dot (.)
4.Hash dot(#.)
Answer 31.$# vi filename
2. $ vi filename
3. # vi filename
4.& vi filename
Answer 21.${array_name[*]}
2. ${array_name[@]}
3. ${array_name[$]}
4. Both A and B
Answer 2