Accenture Interview Questions
- 0of 0 votes
Answerswhat is common langauage runtime
- kithrak26 May 31, 2022 in United States for software engineer| Report Duplicate | Flag | PURGE
Accenture Android Engineer - 0of 0 votes
Answerswhat is operator overloading
- kithrak26 May 31, 2022 in United States for software engineer| Report Duplicate | Flag | PURGE
Accenture Android Engineer - 0of 0 votes
Answerswhat is .net runtime
- kithrak26 May 31, 2022 in United States for software engineer| Report Duplicate | Flag | PURGE
Accenture Android Engineer .Net/C - 1of 1 vote
AnswersWhat to do when we are poor on coding
- shekharlevadi100 December 21, 2019 in India| Report Duplicate | Flag | PURGE
Accenture Software Engineer Coding - 0of 0 votes
AnswersWhat do you believe are a few disservices of Android?
- hemant.maigro April 05, 2019 in United States| Report Duplicate | Flag | PURGE
Accenture Applications Developer Android - 0of 0 votes
AnswersTell me What Is the Google Android SDK?
- hemant.maigro April 05, 2019 in United States| Report Duplicate | Flag | PURGE
Accenture Applications Developer Operating System - -3of 3 votes
Answers+27633555301 Canada,London
{Win one lottery bonanza
FOR EFFECTIVE LOTTERY BIG MONEY SPELL CASTER CASINO BETTING
- drmamafaima February 01, 2018 in United States| Report Duplicate | Flag | PURGE
Accenture Associate - 0of 0 votes
AnswersGiven 2 numbers (where 6 can also be written as 5, and 5 as 6), calculate the maximum and minimum possible sum
- Noob December 31, 2016 in United States
Ex:-
645 666
545 + 555
646 + 666| Report Duplicate | Flag | PURGE
Accenture Consultant - 0of 0 votes
Answers - Rising star November 06, 2016 in United States| Report Duplicate | Flag | PURGE
Accenture Applications Developer - -2of 2 votes
AnswersProgram to increment the vavue of array element by 1 and cost require to each increment value us 1 print cost
- Rising star November 06, 2016 in United States| Report Duplicate | Flag | PURGE
Accenture Applications Developer - -3of 3 votes
Answersdsjfvbhfgvbfhv
- New Grad August 01, 2016 in United States| Report Duplicate | Flag | PURGE
Accenture Data Scientist Algorithm - 0of 0 votes
AnswerYou have a guy who is walking on a street with "X" doors on one side
- somnathdutta048 June 04, 2016 in India
(say left side).From the third round, He has to walk "X" rounds to and
fro( from point A, starting point to B, ending point).
So he walks "X" times from A to B, and back "X" times.
First two rounds he just walks to and fro.
Every time he walks he closes the particular doors corresponding to
the number of the round of his walk, starting from the third round. So
at the third round, he closes the third door, sixth door, ninth door,
.... upto
"X", if "X" is a multiple of 3,
"X-1", if "X-1" is a multiple of 3
AND
"X-2", if "X-2" is a multiple of 3
Then he walks till the "X" door. This he does for every round, till
the "Xth" round.
So, if X is 300, he walks upto the 300th door, closes the 300th door
and returns.
If X is 400, he closes upto 399th door, goes till the 400th door and returns.
If X is 500, he closes upto 498th door, goes till the 500th door and returns.
While returning, he just does nothing. He just returns to where he
started i.e. POINT A.
Likewise for the fourth round, where he close doors that are multiples
of 4 i.e. 4, 8, 12, 16, etc till X (Similar calc as in the 3rd round,
except that we consider multiples of 4 here).
And so on till the "Xth" round.
I.E.
This continiues till "X" rounds. So, from 3 to X rounds. Note that we
have not included 1st and 2nd rounds.
Problem here is:
Write the code in any language of your choice to find:
What is the minimum number of the round where he would not have to close any door?| Report Duplicate | Flag | PURGE
Accenture Analyst Problem Solving - 0of 0 votes
AnswersGiven a large terabytes of text file, sort the words in the file. Explain how it can be done in Mapreduce and Spark.
- penma May 17, 2016 in United States| Report Duplicate | Flag | PURGE
Accenture Sorting - -1of 1 vote
AnswersYou are given an array of wooden log’s length. each of varying length.You have a wooden cutter with you. it has a sharpness value, say S.
- alien.0101 March 22, 2016 in India
You are supposed to cut as many wooden logs (desired logs), each of length L (not more or less) using only S cuts
if you cut a wood, S will decrease by 1
if you cut two woods together, even then S will decrease by the number of woods in the cut, ie. 2
assume L and S are int. and the length of each wood is also int| Report Duplicate | Flag | PURGE
Accenture Developer Program Engineer Algorithm - 1of 1 vote
AnswersRemove duplicates from string given " cutcopypaste " Return "uoyase"
- ajju February 05, 2016 in India| Report Duplicate | Flag | PURGE
Accenture Software Engineer - 0of 0 votes
Answersthere are N employee sitting in consecutive cubicles , we have to send a few of them to onsite , but each time we send one employee onsite , his cubicle becomes empty , now the other employees from both side of that empty cubicle stops working until they are given a gift .
- ritwik_pandey September 11, 2015 in India
the gifts are given in both sides of the empty cubicle until we reach the end or found another cubicle ,
Input – number of cubicle , and index numbers of people to be sent
output- min number of gifts needed| Report Duplicate | Flag | PURGE
Accenture Dev Lead - 0of 0 votes
AnswersA credit card company allows merchants to use their Point-of-sale (POS) terminal to accept payments. It wishes to charge merchants for every transaction that happens through thier POS terminal. Here are some charging rules that it has come up with:
- tarunverma December 14, 2014 in India for Java Development
Transactions are charged 2.0% of transaction amount if amount is less than 5000.00
Transactions are charged 1.5% of transaction amount if amount is between 5000.00 and 9999.99 (both inclusive)
Transactions are charged 1.0% of transaction amount if amount is equal to or above 10000.00
If merchant has already done transactions worth 50000.00 in a month, then rest of transactions of that month are charged at 0.5%
Every Month - two transactions of amount less than or equal to Rs. 5000.00 are free
Charges are rounded to nearest higher Rupee (Eg: 9.23 is rounded to 10.00)
Please develop a program to compute the charges for given inputs.
Your input will be in the following format. First Line: number of records follows, say N Next N Lines - Transaction data in the order - Transaction Date, Merchant Name, Amount
15
2014-06-25,XYZ Retail,10000.00
2014-07-01,XYZ Retail,10000.00
2014-07-01,ABC Retail,1000.00
2014-07-02,ABC Retail,3999.00
2014-07-02,ABC Retail,2000.00
2014-07-03,ABC Retail,10000.00
2014-07-15,ABC Retail,6530.00
2014-07-15,XYZ Retail,500.00
2014-07-18,ABC Retail,9750.00
2014-07-18,XYZ Retail,35000.00
2014-07-18,XYZ Retail,500.00
2014-07-18,XYZ Retail,5000.00
2014-07-18,XYZ Retail,5000.00
2014-08-02,XYZ Retail,10000.00
2014-08-02,XYZ Retail,1000.00
Transactions must be read and processed in the order given, else output will not match. Do not try to sort the transactions.
Output (Charges for each transaction on separate line)
100.00
100.00
0.00
0.00
40.00
100.00
98.00
0.00
147.00
350.00
0.00
75.00
25.00
100.00
0.00
Sample Input (Plaintext Link)
15
2014-06-25,XYZ Retail,10000.00
2014-07-01,XYZ Retail,10000.00
2014-07-01,ABC Retail,1000.00
2014-07-02,ABC Retail,3999.00
2014-07-02,ABC Retail,2000.00
2014-07-03,ABC Retail,10000.00
2014-07-15,ABC Retail,6530.00
2014-07-15,XYZ Retail,500.00
2014-07-18,ABC Retail,9750.00
2014-07-18,XYZ Retail,35000.00
2014-07-18,XYZ Retail,500.00
2014-07-18,XYZ Retail,5000.00
2014-07-18,XYZ Retail,5000.00
2014-08-02,XYZ Retail,10000.00
2014-08-02,XYZ Retail,1000.00
Sample Output (Plaintext Link)
100.00
100.00
0.00
0.00
40.00
100.00
98.00
0.00
147.00
350.00
0.00
75.00
25.00
100.00
0.00
Explanation
100.00 // Rule 3 applied
100.00 // Rule 3 applied
0.00 // Rule 5 applied (ABC Retail) for the month of July
0.00 // Rule 5 applied (ABC Retail) for the month of July
40.00 //Rule 1 & 6 applied
100.00 // Rule 3 applied
98.00 // Rule 2 & 6 applied
0.00 // Rule 5 applied (XYZ Retail) for the month of July
147.00 // Rule 2 & 6 applied
350.00 //Rule 3 applied
0.00 // Rule 5 applied (XYZ Retail) for the month of July
75.00 // Rule 2 applied
25.00 // Rule 4 applied
100.00 // Rule 3 applied
0.00 // Rule 5 applied (XYZ retail) - for the month of Augus| Report Duplicate | Flag | PURGE
Accenture Applications Developer - 0of 0 votes
Answerspublic class Base Test {
- lucky December 11, 2014 in India
protected void finalize() {
System.out.println("Destroying Base");
}
}
public class DerivedTest extends Base Test{
protected void finalize() {
System.out.println("Destroying Derived");
}
}
What is output when an instance of DerivedTest is finalized?| Report Duplicate | Flag | PURGE
Accenture Applications Developer - 0of 0 votes
AnswersIf a matrix of type float is casted to char *, how is it represented in memory, how to access the array elements.
- sravyachimata October 08, 2014 in Indiafloat mtrx[200][200] ={ {0}}; char *ptr = (char*)(& mtrx[i][j]);
| Report Duplicate | Flag | PURGE
Accenture Developer Program Engineer C# - 1of 1 vote
AnswersDefine a class Point having 2 fields x (int) and y (int) which represents a point (x,y)
- ruhi August 31, 2014 in United States
Define a class Line having 2 Points, pt1 and pt2.
Define a class Quadrilateral having 4 Points, pt1, pt2, pt3 and pt4. The class also has the following functions
- getAllLines() which returns a Line[] consisting all 4 lines of the Quadrilateral. Note that the 4 lines of the quadrilateral will be pt1:pt2, pt2:pt3, pt3:pt4 and pt4:pt1
- longestSide() which return a Line that represents the longest the side of the Quadrilateral.
Also define the constructors for each class| Report Duplicate | Flag | PURGE
Accenture Java Developer - 0of 0 votes
Answerswhat are the top 10 coding standards/code reviews in java?
- Muni August 25, 2014 in India| Report Duplicate | Flag | PURGE
Accenture Java Developer Java - -1of 1 vote
AnswerWhy is returning pointer to a node in linked list from a pointer is unsafe and sometimes gives wrong answers.
- gdg July 25, 2014 in United States| Report Duplicate | Flag | PURGE
Accenture - -1of 1 vote
Answers
- Kavita July 07, 2014 in IndiaProgramme 1 class A { private: A() { } }; int main() { //Do not create an object of A } Is there any error Compile Time error Y/N Run Time error Y/N Programme 2 class A { private: A() { } }; class B : public A { }; int main() { //Do not create an object of A or B } Is there any error Compile time Y/N Run Time Y/N
| Report Duplicate | Flag | PURGE
Accenture Computer Scientist - 0of 0 votes
AnswersI have been asked this question in written test. which pattern to use..
- vishal April 26, 2014 in India
Using Java create a simulation of a car park. The
program will record vehicles entering and exiting the car
park, as well as the total balance of parking fees paid.
Cars can park in the car park for $2 per hour.
Trucks can park in the car park for $3 per hour.
For example a car parked for 2 hours will pay $4
and a truck parked for 2 hours will pay $6.
The program can also be asked for a balance report that
will show how many vehicles have entered and exited,
the number of spaces available and how much money has
been paid so far.
Trucks take up 2 car spaces.
The requirements for the interface:
1. The user records vehicles entering and exiting the
car park.
2. Upon exiting the car park a time in whole hours
spent in the car park is also entered.
3. The user can request a balance report of the car park
at any time.
4. The program can be exited at any time.
5. The program should validate user input.
Provide a production ready solution including source
files, project structure and any testing you have used.
Example #1
--------------------------------------------------
Program: How many spaces does the car park have?
User: 10
User: ENTER CAR
User: ENTER TRUCK
User: REPORT
Program:
Cars Entered: 1
Trucks Entered: 1
Cars Exited: 0
Trucks Exited: 0
Parking Cars: 1
Parking Trucks: 1
Spaces available: 7
Fees paid: $0
User: QUIT
Example #2
--------------------------------------------------
Program: How many spaces does the car park have?
User: 15
User: ENTER CAR
User: ENTER TRUCK
User: EXIT CAR 2
User: REPORT
Program:
Cars Entered: 1
Trucks Entered: 1
Cars Exited: 1
Trucks Exited: 0
Parking Cars: 0
Parking Trucks: 1
Spaces available: 13
Fees paid: $4
User: QUIT| Report Duplicate | Flag | PURGE
Accenture Java Developer - -4of 4 votes
AnswersGiven 2 strings S1 and S2 where length of each string can go upto 10^5 I need to find Longest Common Substring of the two strings (Both its length and Substring also).
- johnathon.20293 March 11, 2014 in United States
If their are many substrings with same maximum length I need to find that substring which occurs earliest in S2.
EXAMPLE : Let S1=defghi and S2=ghidef Then here answer will be ghi and length is 3.
I tried implemented it using suffix array but got stuck in between.Could someone help and provide the code to do it in c++/java
Note : It was mentioned that length of S1 is always greater or equal to length of S2| Report Duplicate | Flag | PURGE
Accenture Software Engineer / Developer - -1of 1 vote
AnswersWhat would be the O/P and why?
#include<stdio.h> #include<conio.h> int main() { int k = -7; printf("%d", 0 < !k); return 0;
}
- gdg March 03, 2014 in United States| Report Duplicate | Flag | PURGE
Accenture - 0of 2 votes
AnswerGiven a N*M grid I want to find biggest submatrix not necessarily a square one that has all the value in it same.
- justhack4fun688 February 10, 2014 in United States
Like
If N=4 and M=5 and matrix is
1 2 3 4 5
1 2 2 2 3
4 2 2 2 6
3 4 5 6 7
Then here answer will be matrix will be
2 2 2
2 2 2
So I need to find upper leftmost coordinate of this submatrix that is [2,2] and bottommost right coordinate that is [3,4].
I was to write a code for it in c++ in my interview| Report Duplicate | Flag | PURGE
Accenture Software Engineer Intern Algorithm - 0of 0 votes
AnswersGiven a 2d array N*M made of only 1's and 0's . I need to find a maximum subarray(square or rectangle) between two rows of the given 2d array which has all ones inside it. I need to find count of ones in this maximum subarray
- justhack4fun688 January 09, 2014 in United States
EXAMPLE : Let N=4 and M=5 and the array be
1 0 1 1 0
1 0 1 1 1
0 1 1 1 1
0 0 0 0 1
Now if their are Q(say here it be 2) queries each describing upper and lower row between which we need to find this subarray.
Query 1 : 1 1(means start at row 1 and end also at row 1).Then we can clearly see answer will be 2
Query 2 : 2 3(means start at row 2 and end at row 3).Then answer will be 6 here.
Now,if queries can be very large in number(say upto 10^6) .How to tackle this problem| Report Duplicate | Flag | PURGE
Accenture Software Engineer / Developer Algorithm - 0of 0 votes
AnswersYou have 13 sorted cards, every cards from "2 ,3, 4, 5, 6, 7, 8, 9, 10, J, Q, K, A".
- Roc September 26, 2013 in United States
you can discard all cards, according to some rules:
a pair of cards, like: 2,2
three cards, like: 8,8,8 or 8,9,10; J,Q,K
card A can convert to any cards as you wish, like: A -> 3
For example: Input: 2 2 3 4 5 5 6 7 8 8 9 9 9
you can discard: 2 2
3 4 5
5 6 7
8 8
9 9 9
output:
TURE
Input:
2 2 3 4 5 5 6 7 8 9 10 J A
“A” can be converted to “J”, so
you can discard
2 2
3 4 5
5 6 7
8 9 10
J J
output
TRUE| Report Duplicate | Flag | PURGE
Accenture Developer Program Engineer