Accenture Interview Questions
- 0of 0 votes
AnswersIn order to print all the nouns and verbs present in a given book, what is the underlying algorithm you see to achieve this problem? Discuss the pros and cons of your choice and also how would you test this method. You may assume that the system already knows what are nouns and verbs.
- Jeanclaude July 09, 2013 in United States| Report Duplicate | Flag | PURGE
Accenture Software Engineer in Test - 3of 3 votes
AnswersIn a given array a = {1, 7, 3, 4, 5, 6, 2} Print the indices of all the combinations which lead to a given sum called target. For e.g. if the method is
- Jeanclaude July 09, 2013 in United States
Void PrintAllSumCombos(int[] arr, int target) - and the array shown above is passed with sum target = 7, then the output should be:
0, 3, 6
0, 5
1
2, 3
4, 6
Note: For simplicity, You may assume the array does not contain any negative numbers and also consider same set of indices with a different order as identical - for e.g. if 2, 3 is already printed, ignore 3, 2 as they are one and the same.| Report Duplicate | Flag | PURGE
Accenture Software Engineer in Test Arrays - 0of 0 votes
Answerswhat will be the output of the following program and why...
- yeshwantit065 March 29, 2013 in United States for dx#include<conio.h> #include<stdio.h> void main() { int a=10,b=20,diff; diff=&a-&b; printf("Difference=%d",diff); float a1=10.0,b1=20.0; diff=&a1-&b1; printf("\nDifference=%d",diff); char a2='a',b2='z'; diff=&a2-&b2; printf("\nDifference=%d",diff); double a3=10.0,b3=20.0; diff=&a3-&b3; printf("\nDifference=%d",diff); getch(); }
| Report Duplicate | Flag | PURGE
Accenture Software Engineer / Developer C - 0of 0 votes
AnswersPhonebook contains number and name.
- Anonymous December 12, 2012 in India
1.use the java collection to add these entry (name and string).
2.Search the name by number
3.Remove the entry (name and string ) by using name.
I need to do this in Java...But if you can suggest me some Collection that can be used here, I shall do that....
I thought of :
1.using Hashmap,but here both name and number will be key....which wont be good...
2.Another option is to wrap both phone and number in an object and then add them to the list.And then Iterating and adding to the list.
Any other suggestions..?| Report Duplicate | Flag | PURGE
Accenture Software Engineer / Developer Java - 0of 0 votes
AnswersPrint below series in java
- Anonymous December 12, 2012 in India
*** 1***
**2 *2**
*3*3*3*
4*4*4*4| Report Duplicate | Flag | PURGE
Accenture Software Engineer / Developer Java - 0of 0 votes
AnswersRSpec's stub method can be used to override a method call on
- paramjitmaan786 November 01, 2012 in India for ruby on rails
an instance only
a class only
an instance or a class only
any Ruby object| Report Duplicate | Flag | PURGE
Accenture Developer Program Engineer - 0of 0 votes
AnswersSally wants to create a dating website and decides to write an algorithm that takes a list of male and female users' preferences and returns the best matching of males with females. To test her algorithm, she manually calculates the best match. She then runs the algorithm and checks to see if the observed output matches with her manual calculation. What FIRST principle is clearly not being followed?
- paramjitmaan786 November 01, 2012 in India for ruby on rails
Fast
Independent
Repeatable
Self-checking
Timely| Report Duplicate | Flag | PURGE
Accenture Developer Program Engineer - 0of 0 votes
AnswersHigh coverage can always be achieved by writing a unit test for every method.
- paramjitmaan786 November 01, 2012 in India for ruby on rails
True
False| Report Duplicate | Flag | PURGE
Accenture Developer Program Engineer - 0of 0 votes
AnswersWhat is the difference between template class and class template ???
- Surender September 11, 2012 in India| Report Duplicate | Flag | PURGE
Accenture Analyst - 1of 1 vote
AnswersYou are given n numbers x1,x2,x3,...,x(n-1) and x(n) and you can only do addition and subtraction operation with numbers, in how many ways can we get x1 S x2 S x3 S ..S x(n-1) = x(n) where S is from set +-
- ashok.singh.sairam September 09, 2012 in India
example X = {1,2,3,4,5,1}
possible solution 1+2-3-4+5
1-2+3+4-5| Report Duplicate | Flag | PURGE
Accenture Software Analyst - 0of 0 votes
Answerswhat is the o/p of following along with justifying logic ?
- jainabhishek.inc June 13, 2012 in United States#include<stdio.h> main() { int i=0; prrintf("%%%%"); }
| Report Duplicate | Flag | PURGE
Accenture Applications Developer C - 0of 0 votes
AnswersIs singleton a class level OR JVM level implementation?
- Avi May 01, 2012 in India| Report Duplicate | Flag | PURGE
Accenture Java - 0of 0 votes
AnswersIs singleton a class level OR JVM level implementation?
- Avi May 01, 2012 in India| Report Duplicate | Flag | PURGE
Accenture Java - 0of 0 votes
AnswersIf my hashcode() method returns zero will it compile, run or throw error?
- Avi May 01, 2012 in India
Is it good practice for hashcode() method returns zero?| Report Duplicate | Flag | PURGE
Accenture Java