manimegalai


{ City } madurai
< Country > india
* Profession *
User No # 75537
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 1
Users Marked my Answers as Wrong # 3
Questions / { manimegalai }
Questions Answers Category Views Company eMail




Answers / { manimegalai }

Question { TCS, 11131 }

what does the following code do?
fn(int n,int p,int r)
{
static int a=p;
switch(n){
case 4:a+=a*r;
case 3:a+=a*r;
case 2:a+=a*r;
case 1:a+=a*r;
}
}
a.computes simple interest for one year
b.computes amount on compound interest for 1 to 4 years
c.computes simple interest for four year
d.computes compound interst for 1 year


Answer

I feel it as d.computes compound interest for one
year.because of switch statement any one of the four gets
executed .. and it seems to be C.I

Is This Answer Correct ?    0 Yes 0 No

Question { Intel, 8407 }

Why are there two Ground pins on DIP (Dual In-line Package) of
8086 Microprocessor IC ?


Answer

one gnd pin is for analog and another one is for digital

Is This Answer Correct ?    1 Yes 3 No