GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Accenture  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 3 of 4    Print  
Accenture 10 C Questions
1)Write a C program to find a peculiar two digit number which is three times the sum of its digits.

2) Bacteria are known to multiply very rapidly. If a certain container contains just one bacterium on the first day and there are twice as many on the next day. In this manner the number of bacteria in the container doubles itself everyday. Assuming that the container would be full on the 10th day with 13,312 bacteria, find the number of bacteria that was initially in the container on the first day.

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: 1 Last Update: October 23, 2009     Asked by: wahids 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 23, 2009 05:18:51   #1  
meenu1992 Member Since: October 2009   Contribution: 2    

RE: Accenture 10 C Questions
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?


#include<stdio.h>
#include<conio.h>
void main()
{long int i j k;
long int n 70000;
for(i 1;i< 100;i++)
for(j 1;j< 100;j++)
for(k 0;k< 100;k++)
{if(((25*i)+(50*j)+(100*k)) n)&&(i j k))
printf("25 paise dn 50 paise dn one rupee dn" i j k)
}
getch();
}

 
Is this answer useful? Yes | No

 Related Questions

Study the Following Points:a.One Cannot Take the address of a Bit Fieldb.bit fields cannot be arrayedc.Bit-Fields are machine Dependantd.Bit-fields cannot be declared as staticWhich of the Following Statements 
Latest Answer : Q2-a Q4-d @7-d Q8-c Q10-c Q11-c (but it shd contain , before strcat) Q12-c Q13-a Q14-c ...

1)Write a C program to find a peculiar two digit number which is three times the sum of its digits.2) Bacteria are known to multiply very rapidly. If a certain container contains just one bacterium on 
Latest Answer : 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?#include#includevoid main(){long int i,j,k;long int ...
Read Answers (1) | Asked by : wahids


 Sponsored Links

 
Related Articles

HR Interview - Most Popular HR Interview Questions With Generic Answer Formats

Most Popular HR Interview Questions With Generic Answer Formats While it is impossible to know exactly what you will be asked during a job interview there are a number of generic questions that most companies will ask you mosgoogle In this article I will present you with some questions that are comm
 

HR Interview - How To Deal With Tricky Interview Questions

How To Deal With Tricky Interview Questions During your HR interview you will be presented with a number of questions from the interviewer The way you answer these questions will play a role in whether or not you re hired While some of these questions have obvious answers others will be tricky and t
 

Questions You Should Be Prepared For During A Job Interview

Questions You Should Be Prepared For During A Job Interview While the way you answer questions during a job interview will only play a small role in whether or not you are hired it is important to pay attention to them Going to a job interview can be stressful especially if it is a highly competitiv
 

ASP.NET Interview Questions

Microsoft ASP NET Interview Questions This article provides Microsoft Interview Questions covering Microsoft ASP NET questions For more Interview Questions Answers related to Microsoft click on links provided at the end of each question set mosgoogle Microsoft ASP NET Interview Questions 1 What is R
 

C# Interview Questions

Microsoft C Interview Questions This article provides Microsoft Interview Questions covering Microsoft C questions For more Interview Questions Answers related to Microsoft click on links provided at the end of each question set mosgoogle Microsoft C Interview Questions 1 What is indexer Where it i
 

C Interview Questions

C Interview Questions This article provides C Interview Questions For more Interview Questions Answers related to C click on links provided at the end of each question set mosgoogle C Interview Questions 1 A switch statement cannot includea constants as arguments b constant expression as argumentsc
 

DB2 Interview Questions

DB2 Interview Questions This article provides Mainframe Interview Questions covering db2 questions For more Interview Questions Answers related to Mainframe click on links provided at the end of each question set mosgoogle 1 Loading of DB2 Unload with packed Decimal&rsquo; data to Oracle envi
 

Siebel Interview Questions

Siebel Interview Questions This article provides Siebel Interview Questions For more Interview Questions Answers related to Siebel click on links provided at the end of each question set mosgoogle Siebel Interview Questions 1 What is foreign key table in Siebel 2 Why do you need Primary in MVG 3 Whe
 

JCL Interview Questions

JCL Interview Questions This article provides Mainframe Interview Questions covering JCL questions For more Interview Questions Answers related to Mainframe click on links provided at the end of each question set mosgoogle JCL Interview Questions 1 What is the advatage of coding RECFM F over RECFM F
 

IDMS Interview Questions

IDMS Interview Questions This article provides Mainframe Interview Questions covering IDMS questions For more Interview Questions Answers related to Mainframe click on links provided at the end of each question set mosgoogle IDMS 1 What is a Region 2 What is the difference between a schema and a su
 

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