Professional Documents
Culture Documents
com/question_details/49486
Interview Questions Certification Placement Papers Tech FAQ Career Advice Engineering Ask Question
1 of 5 09-09-2010 23:12
Technical - Tricky C Program questions http://www.geekinterview.com/question_details/49486
GeekInterview.com > Placement Papers > Accenture > Technical Related Categories —
3) Calculate the factorial of a number recursively. From that calculate the value of COS(X) = 1 - X2/2! + X4
/4! - X6/ 6! +…….
4) A number of “Cats” got together and decided to kill between them 999919 mice. Every cat killed equal
number of “mice”. Write a program to find number of cats.
5) Consider the following number 45*45=2025; 20+25=45.Write a program to generate number between 32
and 99 that satisfies the above property.
6) Rita has a money pouch containing Rs.700. There are equal number of 25 paise coins, 50 paise and one
rupee coins. Write a C program to find how many of each are there?
7) Calculate the factorial of a number recursively and from that calculate the value of ex=1+ (X1/1!) + (X2
/2!) + (X3/3!) + ……….
8) There are some goats and ducks in a farm. There are 60 eyes and 86 foot in total. Write a program to
find number of goats and ducks in the farm.
9) Write a C program to find a three digit number which is greater than the aggregate of its third, tenth
and the twelfth parts by 58.
10) Write a C program to find a two digit number, the second digit of which is smaller than its first digit
by 4, and if the number was divided by the digit’s sum, the quotient would be 7.
Total Answers and Comments: 16 Last Update: January 28, 2010 Asked by: ganesan81
Sponsored Links
#include <stdio.h>
#include <conio.h>
void main()
{
int i,x,y;
clrscr();
for(i=10;i<100;i++)
{
x=i/10;
y=i%10;
if(((x+y)*3)==i)
printf("Peculiar Num is : %d",i);
}
getch();
}
2 of 5 09-09-2010 23:12
Technical - Tricky C Program questions http://www.geekinterview.com/question_details/49486
GeekInterview.com Home Tech Articles Code Samples Learn Freelance Projects Online Testing Geek Talk Job Postings Knowledge Base Geek Blogs Question Bank
I am new, Sign me up!
Interview Questions Certification Placement Papers Tech FAQ Career Advice Engineering Ask Question
3 of 5 09-09-2010 23:12
Technical - Tricky C Program questions http://www.geekinterview.com/question_details/49486
GeekInterview.com > Placement Papers > Accenture > Technical Related Categories —
Total Answers and Comments: 6 Last Update: April 10, 2010 Asked by: sasi_akkala Sponsored Links
Sponsored Links
yes..we can!
because,the updations take place on the secondary storage(database) with difference between
microseconds or nanoseconds!
yes..we can!
because the updations take place on the secondary storage(database) with difference between
microseconds or nanoseconds!
Locking and row versioning prevent users from reading uncommitted data and prevent multiple users
from attempting to change the same data at the same time.
Yes.
We can update by using COMMIT UNCOMMIT methods. Second record cannot update till the first record is
committed.
Yes the two person's can update the same row at the same time since it doesn't violate any records in the
database.
4 of 5 09-09-2010 23:12
Technical - Tricky C Program questions http://www.geekinterview.com/question_details/49486
5 of 5 09-09-2010 23:12