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).2. Find the value of @@+25-++@16, where @ denotes "square" and + denotes "square root". 3. A power unit is there by the bank of the river of 750 meters width. A cable is made from power unit to power a plant opposite to that of the river and 1500mts away from the power unit. The cost of the cable below water is Rs. 15/- per meter and cost of cable on the bank is Rs.12/- per meter. Find the total of laying the cab4. In Madras, temperature at noon varies according to -t^2/2 + 8t + 3, where t is elapsed time. Find how much temperature more or less in 4pm to 9pm.5. A Flight takes off at 2 A.M from northeast direction and travels for 11 hours to reach the destination which is in north west direction.Given the latitude and longitude of source and destination. Find the local time of destination when theflight reaches there?6. A 2D array is declared as A[9,7] and each element requires 2 byte.If A[ 1,1 ] is stored in 3000. Find the memory of A[8,5] ?7. My flight takes of at 2am from a place at 18N 10E and landed 10 Hrs later at a place with coordinates 36N70W. What is the local time when my plane landed.

Showing Answers 1 - 13 of 13 Answers

siva_dvs

  • Dec 30th, 2006
 

given that

@ means square,+ means square root

then question is @@+25-++@16

first simplify @@+25

+25=5

*5=25

*25=625

i.e.,@@+25=625

then ++@16

@16=256

+256=16

+16=4

therefore 625-4=621 is the answer

1)answer will be 3160 because the adress of a[1][1] is 3000 so, the adress of a[8][5] will be as like

3000+8*5*4=3160.

cause the distance of a[1][1] to a[8][5] is 40 and every block use 4 byte so it shud be 40*4=160

  Was this answer useful?  Yes

Arnab Khawas

  • Jan 28th, 2007
 

The diff in longitude between the two places is=(10+70)=80deg.So the time diff bet two places=80*4=320min=5hr20 minthe time when it will reach will be=(2a.m+10hr)-5hr20min=6:40a.maccording to the local time of the destination as it lies on the west side.

  Was this answer useful?  Yes

abhay vikram singh

  • Feb 10th, 2007
 

hi i m abhay vikram singh from MIT (bishnupur).W.B. i have solved the above question, the answers are as follows:
1: 3212
2: 621
3: 20250
4: 7.5 more
5: incomplete
6: 3106
7: 6:40am

  Was this answer useful?  Yes

mona

  • Feb 14th, 2007
 

initial x (1,1) = 3000 u hav to find from x(8,1)so u have x(1,1),x(1,2) ... x(7,7) = so u have totally 7 * 7 = 49 elementsu need to find for x(8,5) ? here we have 5 elements each element have 4 bytes : (49 + 5 -1) * 4 = 212 -----( -1 is to deduct the 1 element ) 3000 + 212 = 3212

Madhumitha

  • Feb 14th, 2007
 

The answer to this Question is given wrongly.First think of a matrix like that. To move to (8,0) first we need to move 7*7 positionsie, 49*4 =196bytes need to be moved.Then the last 4 positions in order to get to the (8,5)positionie,4*4=16bytesThose two answes need to be addedie,196+16=3212bytesAns=3212

pavan

  • Mar 1st, 2007
 

I think the answer is 3212.
Because the total elements upto X(8,5) are 53.
So they occupy 4*53=212.
since the first element occupies 3000, the address of X(8,5) is 3212. 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions