| |
GeekInterview.com > Placement Papers > TCS > Quantitative Aptitude
| Print | |
Question: 1. In a two dimensional array X(9,7) with each element occupying 4 bytes of memory with the address of the first element x(1,1) is 3000,find the address of X(8,5) ? Ans is 3212 but how explain
2.194 base 10= ___ base 5
3.the base 5 representation of the decimal number 2048 is______
4.when 3/4 of a units digit is added to ten's digit of a two number,the sum of the digit becomes 10.If 1/4 of the ten's digit added to the unit's digit then the sum of the digits is 1 less than the previous.Find the number a)94 b)84 c)48 d)88
|
| May 05, 2007 01:34:46 |
#4 |
| Amyt |
Member Since: Visitor Total Comments: N/A |
RE: 1. In a two dimensional array X(9,7) with each ele... |
<base-addr> + <element-size>[max.cols*(x-1)+(y-1)] here base-addr =3000 elt size = 4 max-cols =7 --> 9x7 x=8 y=5 ==> 3000 + 4[7*(8-1)+(5-1)] =3212 |
| |
Back To Question | |