GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  Quantitative Aptitude
Go To First  |  Previous Question  |  Next Question 
 Quantitative Aptitude  |  Question 19 of 49    Print  
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

  
Total Answers and Comments: 7 Last Update: April 04, 2009     Asked by: DeviRavikumar 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: shanthi
 

hi .could u explain clearly how to solve this question.u gave as formula like

3000+(7*7+5-1)*4       in this  wht represent wht .frm where 7 u got & 5 .please explain it .



Above answer was rated as good by the following members:
dmanju_jo, tiru5796
June 14, 2006 14:39:52   #1  
DeviRavikumar Member Since: June 2006   Contribution: 2    

RE: 1. In a two dimensional array X(9,7) with each ele...

ans. X(1 1) 3000 (given)

Each element occupies 4 bytes of memory so

X(1 2) 3004

.

.

X(1 7) 3042

X(2 1) 3046

.

X(2 7) 3052

X(3 1) 3056

................X(3 7) 3080

X(4 1) 3084

.........X(4 7) 3108

X(5 1) 3112

.............X(5 7) 3136

X(6 1) 3140

...............X(6 7) 3164

X(7 1) 3168

.................X(7 7) 3192

x(8 1) 3196

...................X(8 5) 3212-----------ans


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
June 16, 2006 12:03:58   #2  
sidblast Member Since: June 2006   Contribution: 1    

RE: 1. In a two dimensional array X(9,7) with each ele...

There is a shortcut for this:

3000+ (7*7+5-1)*4


 
Is this answer useful? Yes | No
October 06, 2006 04:38:36   #3  
shanthi        

RE: 1. In a two dimensional array X(9,7) with each ele...

hi .could u explain clearly how to solve this question.u gave as formula like

3000+(7*7+5-1)*4 in this wht represent wht .frm where 7 u got & 5 .please explain it .


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 21, 2007 01:34:46   #4  
Amyt        

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

 
Is this answer useful? Yes | No
September 30, 2007 15:34:06   #5  
prasad.telagamsetti Member Since: September 2007   Contribution: 9    

RE: 1. In a two dimensional array X(9,7) with each ele...

2ed one answer is 1234

3ed one answer is 31143
4 th one answer is 48(c)


 
Is this answer useful? Yes | No
May 20, 2008 08:46:35   #6  
spandu Member Since: May 2008   Contribution: 4    

RE: 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 explain2.194 base 10= ___ base 53.the base 5 representation of the
2. 194 base 10 1234 base 5
 
Is this answer useful? Yes | No
April 03, 2009 23:45:05   #7  
farzad_af Member Since: April 2009   Contribution: 3    

RE: 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 explain2.194 base 10= ___ base 53.the base 5 representation of the
4) Just solve the following simultaneous equations:

if the number we are after was XY then:

3/4(Y)+X 10
Y+1/4(Y) 10-1

X 4 Y 8

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape