Question
How do you check the exit status of the last executed
command in a shell?Solution
$? returns the exit status (0 for success, non-zero for failure) of the last command.
The series given below contains a sequence of numbers.
Accordingly identify the incorrect number.
9, 14, 24, 38, 59
Find the wrong number in the given number series.
20, 120, 600, 2400, 7000, 14400
Find the wrong number in the given number series.
102, 124, 160, 212, 289, 410
120, 240, 80, 320, 60, 384
210, 140, 105, 84, 70, 63, 52.5Â
768Â Â Â 2304Â Â Â 288Â Â Â 864Â Â Â 106Â Â Â 324
896Â Â Â 2688Â Â Â 336Â Â Â 1008Â Â Â 124Â Â Â 378
 7    12     33    126    635  Â
150, 900, 300, 1800, 600, 3700, 1200
- Find the wrong number in the given number series.
16, 25, 37, 52, 72, 97