pallavi


{ City } pune
< Country > india
* Profession * software developer
User No # 13430
Total Questions Posted # 0
Total Answers Posted # 5

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

Users Marked my Answers as Correct # 704
Users Marked my Answers as Wrong # 257
Questions / { pallavi }
Questions Answers Category Views Company eMail




Answers / { pallavi }

Question { 21749 }

Frank is 15 years younger then John. In 5 years John will be
twice as old as Frank. How old will Frank be in four years?


Answer

Today Frank's age = x and John's age = x+15

and after 15 years, john will be twice of Frank,
i.e. 2*(x+5)= (x+15+5)
solving this,
we get x = 10 , which is todays age of Frank.
Then after 4 years Frank will 10 + 4 = 14 years old

Is This Answer Correct ?    53 Yes 1 No

Question { Syntel, 195189 }

write program for palindrome


Answer

#include
#include

int main()
{
char str[25],str1[25];
cout<<"Enter a string: ";

gets(str);

strcpy(str1,str);
strrev(str);
if(strcmp(str,str1)!=0)
{
cout<<"string is not palindrome";
}
else
{
cout<<"string is a palindrome";
}

cout<
Is This Answer Correct ?    596 Yes 248 No


Question { 13168 }

A man travels 3 miles due north, then travels 8 miles due
east and further travels 3 miles due north. How far is he
from the starting point?
1) 14 miles
2) 10 miles
3) 100 miles
4) 15 miles


Answer

The write answer is,
10 miles,
which is calculated by Paythgorous Therom.
as calculated triangle diagonal by Paythgorous Therom.

Is This Answer Correct ?    18 Yes 1 No

Question { 10905 }

can u make 1000 by using eight 5's.


Answer

((5+5-5)+5)*(5+5)*(5+5)
=((5)+5)*(10)*(10)
=10*10*10
=1000

Is This Answer Correct ?    29 Yes 2 No

Question { Ramco, 36866 }

How to select nth record from a table?


Answer

Here N is for Nth record.

SELECT TOP 1 * FROM
(SELECT TOP N * FROM
(SELECT Table.Coloumn1,Table.Coloumn2 from Table)
as d order by d.Coloumn1 desc) as p order by Coloumn1

Is This Answer Correct ?    8 Yes 5 No