1⟩ If a and b are 2 variables then the meaning of a<<=b is a) b = a << b b) a = a << b c) b = b << a d) a = a << b
b) a = a << b
“Bash Arithmetic Expressions frequently Asked Questions in various Linux Bash Arithmetic Expressions job Interviews by interviewer. The set of questions here ensures that you offer a perfect answer posed to you. So get preparation for your new job hunting”
b) a = a << b
a) ^=
a) $(())
a) let
b) 16
Explanation:
'**' is the exponentation operator in bash shell.
Output:
root@ubuntu:/home/google#./test.sh
16
root@ubuntu:/home/google#
c) =<<
b) 22
c) 1
Firstly the '$a<0' condition has been checked. Because it is false hence the right hand side condition of the colon (:) has been checked and this is true so program output is 1.
b) 0
The condition '$a<0' is false so logical and operator provides the output 0.
a) 14
The operators in decreasing order of precedence are ++, **, *, +.
b) alias
d) all of the mentioned
c) full list of all commands
a) continue
b) dirs
b) removes all running jobs
b) disables the specified built-in command
a) export
b) eval
d) all of the mentioned