What is the size of the following union. Assume that the size of int =2, size of float =4 and size of char =1. Union Tag{ int a; flaot b; char c; };
2
4
1
7
What is the output of the following program? (. has been used to indicate a space) main() { char s[]="Hello,.world"; printf(%15.10s",s); }
Hello,.World...
...Hello,.Wor
Hello,.Wor....
None of the above
How many of the integers between 25 and 45 are even ?
21
20
11
10
If taxi fares were Rs 1.00 for the first 1/5 mile and Rs 0.20 for each 1/5 miles thereafter. The taxi fare for a 3-mile ride was
4
3.80
3.60
4.20
A computer routine was developed to generate two numbers (x,y) the first being a random number between 0 and 100 inclusive, and the second being less than or equal to the square root of the first. Each of the following pair satisfies the routine EXCEPT
100
88.30
99.10
99.50
A warehouse had a square floor with area 10,000 sq.meters. A rectangular addition was built along one entire side of the warehouse that increased the floor by one-half as much as the original floor. How many meters did the addition extend beyond the original buildings ?
50
100
150
120
A digital wristwatch was set accurately at 8.30 a.m and then lost 2 seconds every 5 minutes. What time was indicated on the watch at 6.30 p.m of the same day if the watch operated continuously that time ?
5.55
6.26
4.45
3.23
A 5 litre jug contains 4 litres of a salt water solution that is 15 percent salt. If 1.5 litres of the solution spills out of the jug, and the jug is then filled to capacity with water, approximately what percent of the resulting solution in the jug is salt?
4.6%
7.5%
3.6%
3.5%
A merchant sells an item at a 20 percent discount. but still makes a gross profit of 20 percent of the cost. What percent of cost would be gross profit on the item have been if it had been sold without the discount?
30%
45%
50%
23%
A millionaire bought a job lot of hats 1/4 of which were brown. The millionaire sold 2/3 of the hats including 4/5 of the brown hats. What fraction of the unsold hats were brown.