Question
To check if a file /tmp/data.txt is both readable and
writable by the current user in a shell conditional, which test is correct?Solution
POSIX-compliant way uses two test commands joined by &&. Option E uses -a inside single [ which is not portable; [[ is a Bash extension but the safest explicit form is B.
Two equal vessels A and B contain 70% of milk and 60% of milk respectively and the remaining sugar. In which 30 kg of mixture is taken out from vessel A...
When the area of a square carpet is 676 m2 then what will be the perimeter of the rectangle whose length is 4 more than the side of the squar...
The diagonals of a rhombus are 16 cm and 12 cm. What is the perimeter of the rhombus?
The cost of fencing a rectangular field at the rate of Rs. 14/metre is Rs. 1176. If the ratio of length to breadth is 4:3, find the area of the rectangu...
Each side of square βAβ is 5 cm less than that of square βBβ. The perimeter of a rectangle is 2 times the difference of the perimeters of the tw...
A well with 20 m inside diameter is dug 10 m deep. Soil taken out of it has been evenly spread all around it to a width of 30 m to form an embankment. F...
What will be the measure of each interior angle of a regular polygon whose sides are 10.
Find total surface area of a cylinder of radius 7 cm and height 10 cm. (Ο = 22/7)
The cost of fencing a rectangular field at the rate of Rs. 7/metre is Rs. 350. If the length of the field is 11 metres more than its breadth, then find ...
A room 20 m long, 16 m broad and 8m high has 2 windows of 1 m and `1(1)/(2)` m and a door of 2m `xx` `1(1)/(2)` m. Find the cost of paperi...