GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Placement Papers  >  Accenture  >  Technical
Go To First  |  Previous Question  |  Next Question 
 Technical  |  Question 31 of 32    Print  
Tricky C Program 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: 2 Last Update: November 01, 2008     Asked by: ganesan81 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 27, 2008 09:46:41   #1  
BECKONLAND2004 Member Since: May 2008   Contribution: 1    

RE: Tricky C Program questions

Write a C-COde to blink the character


 
Is this answer useful? Yes | No
October 31, 2008 13:32:05   #2  
ravikth Member Since: October 2008   Contribution: 4    

RE: Tricky C Program questions

Step1: We have to check the condition xy==3(x+y) -> xy/3 = x+y


The above statements unveil two essential points to write efficient program

1. x and y must be int value, not a real (float) value. so the xy will be
divisible by 3.

2. Maximum value of 3(x+y) is 54 if xy equals to 99 (max value of two digit).

so the xy will be less than 54.


Conclusion: we can get the result by checking the numbers which are divisible
by 3 and less than 54 instead of checking all the numbers.

Ans: 27


 
Is this answer useful? Yes | No

 Related Questions

Accenture Technical Interview Questions held on May 25th 2005 by Phani
If u are an MCA then they will surely ask u Dbms and some OOPS concepts IF u are fron CS stream then they will ask pointers and arrays probably I was asked only General Questions like Which Languages 

Latest Answer : Yes We can Compile c Program in C++ Compiler , it is possible to complie, But We cant't Make reverse, coz C compiler does't support object oriented , class function Jai Soni ...
Read Answers (1) | Asked by : mithila

Then he told me to write a query. He wanted me to retrieve data from two tables. The main thing was that we should use " group by "any questions?
Read Answers (1) | Asked by : mithila

1. Pointer to structure.2. Static variable and difference b/w (const char *p,char const*p,const char* const p). 3. Pass by value & reference.4. String library functions(syntax).5. Write a program to compare 
View Question | Asked by : Mansi MCA

This interview was conducted for 1 year or more exp. guys in C++.1) Firstly he asked me about the project and i was thoroughlygrilled.2)Then he asked to list the various types of storage classes and asked 
View Question | Asked by : Mansi MCA

The pattern was :15 C questions---easy15 C++ ---tough15 DBMS---medium15 verbal reasnoing15 logical ---set theorey is important--6 questions overallmental application=============1. patterns like ZZZZZERETTT 
View Question | Asked by : Venki

Accenture Technical Interview Questions 1. Tell about your project. 2. Explain software development life cycle 4. What are your areas of interest in computer field 5. Explain memory management in Operating System. 6. Examples of Unix basic commands 7. Explain Doubly Linked List. 8. Write Fibonacci series and palindrome program in C. 9. Explain complier design phases.10. Explain TCP & IP and OSI Model.11. Explain OOPS concepts.
Read Answers (1) | Asked by : Srikanth
Tags : OOPS

1. Draw an overview of your project and explain it?2. Explain OOPS Concept?3. State the difference between overloading and overriding?4. State the differences between C & C++?5. What are static members?6. 
Latest Answer : How to measure 4 liters of water using a 3 liter and a 5 liter jug?1. Make sure both jugs are empty.2. Fill the 3 liter jug to the top.3. Pour the contents of the 3 liter jug into the 5 liter jug.4. Fill the 3 liter jug to the top.5. Pour the contents ...
Read Answers (2) | Asked by : Ramki

1. What are the rules for RDBMS and who developed it?2. What is waterfall and spiral model?3. What are Primary key and foreign Key?4. What are commands in DDL, DML, DCL & TCL?5. What do you know about 
Latest Answer : Primary key is a constraint that uniquely identifies each row in a table.  The key can be built on a single column or two or more columns together to identify a row uniquely.  Such a column cannot contain a null value.Foreign key is a key that ...
Read Answers (3) | Asked by : Sanjeev Kumar
Tags : RDBMS

1. What is OS?2. What is Data Structures?3. What is the function of OS?3. Tell about oops concept?4. State differences between C++ & Java?7. Write a program to count the number of occurrences 'accenture' 
Latest Answer : 4)OOP concepts are Data Abstraction: Abstrastraction of data from the collection of large amount of data.ex: Person driving a car must know how drive and no need to know all details of manufactuer its part. Encapsulation: Hiding of some informations ...
Read Answers (1) | Asked by : Nemi Chand Ranka
Tags : OOPS


 Sponsored Links

 
Related Articles

How to develop compile and run a C program

The steps involved in building a C program are: 1. First program is created by using any text editor and the file is stored with extension as .c 2. Next the program is compiled. There are many compilers available like GNU C compiler called as gcc, Sun compiler, Borland compiler which is pop
 

Data Warehouses Non Technical Issues

Data Warehouses Non Technical Issues When companies get ready to implement a data warehouse few of them pay attention to the political issues that may surround it It must be emphasized that politics can reduce the chances for success with a data warehouse project and I want to warn companies against
 

Technical Aspects of CRM

Technical Aspects of CRM While it must be emphasized that CRM is not a technology there are a number of technical issues that need to be considered when a company decides to implement a CRM system The first technical issue that needs to be analyzed is scalability In a nutshell the CRM system must be
 

Quality Aspects to Check While Writing COBOL Program

Quality Aspects to Check While Writing COBOL Program This article gives a general list which the programmer must check while delivering programs developed in COBOL This can also be used as a general checklist for checking quality of the COBOL program developed mosgoogle Quality is a vital factor fo
 

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
 

Basic concepts of OOPS and Structure of C++ program

Basic concepts of OOPS and Structure of C program In this tutorial you will learn about Objects Classes Inheritance Data Abstraction Data Encapsulation Polymorphism Overloading Reusability Before starting to learn C it is essential that one must have a basic knowledge of the concepts of Object orie
 

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
 

Online Degree Program Information

Online Degree Program Information While the concept of distance learning is not recent the use of the internet to earn degrees online is a relatively new concept The beginning of what would become a revolution in education started in the middle of the 1990s mosgoogle It was during this time that hig
 

ASP.NET Technical Practice Test

ASP NET Technical Practice Test This article provides details about ASP NET Technical Online Practice Test which is made available at geekinterview com Questions are generated randomly each time you take the test Online Practice Test is made available to everyone you too can take the test and get yo
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape