You are on page 1of 5

Technical - Tricky C Program questions http://www.geekinterview.

com/question_details/49486

GeekInterview.com Home Tech Articles Code Samples Learn -Freelance Projects


Page 2 - Online Testing Geek Talk Job Postings Knowledge Base Geek Blogs Question Bank
I am new, Sign me up!

User Name Remember Me?


Password Log in

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 —

Go To First | Previous Question | Next Question Accenture Aptitude

Technical | Question 30 of 31 Print Accenture C


Accenture Group Discussion
Tricky C Program questions
Accenture HR Questions
1)Write a C program to find a peculiar two digit number which is three times the sum of its digits.
Accenture Interview Procedure
2) Bacteria are known to multiply very rapidly. If a certain container contains just one bacterium on the Accenture Technical
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. Sponsored Links

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

Best Rated Answer —

Submitted by: milan.kadivar

#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();
}

Above answer was rated as good by the following members:


sudhansupatra, Ravi N S, gameboy149, vikram kv, anugna

Sorting Options Page 1 of 2 « First 1 2 > Last »

May 27, 2008 09:46:41


BECKONLAND2004
Member Since: May 2008 Contribution: 1

RE: Tricky C Program questions

Write a C-COde to blink the character

2 of 5 09-09-2010 23:12
Technical - Tricky C Program questions http://www.geekinterview.com/question_details/49486

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

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!

User Name Remember Me?


Password Log in

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 —

Go To First | Previous Question | Accenture Aptitude

Technical | Question 31 of 31 Print Accenture C


Accenture Group Discussion
SQL Update
Accenture HR Questions
can two persons update the same row at same time.if it is possible how?
Accenture Interview Procedure
Accenture Technical

Total Answers and Comments: 6 Last Update: April 10, 2010 Asked by: sasi_akkala Sponsored Links

Sponsored Links

Best Rated Answer —

Submitted by: rajani_vaddepalli15

yes..we can!
because,the updations take place on the secondary storage(database) with difference between
microseconds or nanoseconds!

Above answer was rated as good by the following members:


phaniraj baggolli

June 30, 2008 03:33:54


rajani_vaddepalli15
Member Since: June 2008 Contribution: 19

RE: SQL Update

yes..we can!
because the updations take place on the secondary storage(database) with difference between
microseconds or nanoseconds!

Is this answer useful? Yes | No 1 0 Overall Rating: +1

August 08, 2008 18:29:50


kishorehhappy
Member Since: March 2007 Contribution: 1

RE: SQL Update

No it is not possible to update same row by two different persons

Is this answer useful? Yes | No

January 28, 2009 03:38:40


oz_girl
Member Since: January 2009 Contribution: 1

RE: SQL Update

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.

Is this answer useful? Yes | No

July 09, 2009 01:13:45


bk_karthi
Member Since: July 2009 Contribution: 1

RE: SQL Update

Yes.
We can update by using COMMIT UNCOMMIT methods. Second record cannot update till the first record is
committed.

Is this answer useful? Yes | No

January 16, 2010 21:14:52


subang
Member Since: January 2010 Contribution: 4

RE: SQL Update

Yes the two person's can update the same row at the same time since it doesn't violate any records in the
database.

Is this answer useful? Yes | No

4 of 5 09-09-2010 23:12
Technical - Tricky C Program questions http://www.geekinterview.com/question_details/49486

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

5 of 5 09-09-2010 23:12

You might also like