Global
Guideline
Comprehensive Job Interviews
Home
Interview Questions
Online Quiz Tests
Blog
Contact Us
Close Menu
Copyright © 2005 - 2024. All Rights Reserved
Search
Home
Interviews
Operating System Linux
Linux Shell
Linux OS Shell Question:
The expression expr -9 % 2 evaluates to:
a) 0
b) 1
c) -1
d) 2
Tweet
Share
WhatsApp
Download PDF
Answer:
c) -1
Download Linux Shell PDF
Read All 53 Linux Shell Questions
Previous Question
Next Question
What is the output of the following program?
x = 3; y = 5; z = 10;
if [( $x -eq 3 ) -a ( $y -eq 5 -o $z -eq 10 )]
then
echo $x
else
echo $y
fi
a) 1
b) 3
c) 5
d) Error
What is the output of the following program?
b =
[ -n $b ]
echo $?
[ -z $b ]
echo $?
a) 1
1
b) 2
2
c) 0
0
d) 0
1