Accenture Previous Year Coding Questions

Accenture plc is a multinational professional services company specializing in IT services and consulting, headquartered in Dublin, Ireland. With operations in over 120 countries and approximately 774,000 employees as of 2024, Accenture serves clients across various industries including communications, financial services, health, and consumer products.

Key Facts:

  • Revenue: $64.9 billion (2024)
  • Employees: 774,000 globally
  • Fortune Global 500 company
  • Operates through five business segments: Strategy and Consulting, Technology, Operations, Accenture Song, and Industry X :cite[9]

History

Accenture originated as the business and technology consulting division of accounting firm Arthur Andersen in the 1950s. It became independent in 1989 as Andersen Consulting before rebranding to Accenture in 2001

Milestones:

  • 1989: Separated from Arthur Andersen as Andersen Consulting
  • 2001: Rebranded as Accenture ("Accent on the future")
  • 2009: Reincorporated from Bermuda to Ireland
  • 2024: Recognized as leader in multiple industry analyst reports

Services and Operations

Accenture organizes its services into five main areas

  1. Strategy and Consulting: Business transformation services
  2. Technology: IT implementation and modernization
  3. Operations: Business process outsourcing
  4. Accenture Song: Digital marketing and customer experience
  5. Industry X: Digital engineering and manufacturing services

The company has been recognized as a leader in:

  • Smart manufacturing
  • Generative AI engineering services
  • Connected product engineering

Recruitment Process

Accenture's hiring process typically includes :cite[2]:cite[5]:cite[10]:

1. Online Application

  • Submit resume and personal details
  • Highlight relevant skills and experience

2. Online Assessments

  • Cognitive Ability Test (50 questions, 50 mins)
    • Critical reasoning
    • Abstract reasoning
    • Verbal ability
  • Technical Assessment (40 questions, 40 mins)
    • Pseudocode
    • Network security
    • Cloud computing
  • Coding Test (2 questions, 45 mins)

3. Communication Assessment

  • Evaluates English proficiency (20-25 questions, 30 mins)
  • Assesses sentence mastery, vocabulary, fluency, and pronunciation

4. Interview Rounds

  • Technical interview
  • HR interview

Accenture Coding Questions

Arrays & Matrices

1. Sum of Second Smallest Element at Odd Positions and Largest at Even Positions

Problem: Given an array, calculate the sum of the second-smallest element from odd positions and the largest element from even positions.
Example: Input [3, 2, 1, 7, 5, 4], Output: 7

2. Find Product of Two Smallest Numbers in Array Whose Sum is Less Than Given Sum

Problem: Given a sum and an array, find the product of the two smallest numbers whose sum is less than the given sum.
Example: Input sum=9, arr=[5,4,2,3,9,1,7], Output: 2

3. Find Second Largest Number in Array of 1000 Integers

Problem: Given an array of 1000 integers, find the second-largest number (return -1 if none exists).
Example: Input num1=3, num2=[2,1,2], Output: 1

4. Find All Unique Pairs of Animal IDs

Problem: Given a list of integers representing animal IDs, find all unique pairs.
Example: Input [1, 2, 3], Output: [(1, 2), (1, 3), (2, 3)]

5. Find Maximum Sum of Coins from Consecutive Treasure Chests

Problem: Given a list of integers representing coins in treasure chests (some negative), find the maximum sum from consecutive chests.
Example: Input [2, -3, 4, -1, 2, 1, -5, 4], Output: 6

6. Calculate Total Weight and Heaviest Ingredient for a Cake

Problem: Given a list of floating-point numbers representing ingredient weights, calculate the total weight and the heaviest ingredient.
Example: Input [1.2, 0.5, 2.3, 1.8], Output: (5.8, 2.3)

7. Find ID of Oldest Book and Average ID of All Books

Problem: Given a list of integers representing book IDs, find the oldest book ID and the average ID (rounded down).
Example: Input [1001, 1002, 999, 1003], Output: (999, 1001)

8. Calculate Total Value and Highest Value of Dragon's Treasures

Problem: Given a list of integers representing treasure values, calculate the total value and the highest value.
Example: Input [200, 500, 1000, 300], Output: (2000, 1000)

9. Check if a Specific Ingredient ID is Used in a Potion

Problem: Given a list of integers representing ingredient IDs and a target ID, check if the target ID is used in the potion.
Example: Input [101, 102, 103, 104], 102, Output: "Yes"

10. Calculate Total Hours and Highest Hour from Clocks

Problem: Given a list of integers representing hours on clocks, calculate the total hours and the highest hour.
Example: Input [3, 7, 5, 9], Output: (24, 9)

11. Find the Second Smallest Element in an Array

Problem: Find the second smallest element in the given array

12. Sum of Even and Odd Elements in an Array

Problem: Calculate sum of even and odd elements separately

13. Reverse the Array and Print Odd and Even Positions

Problem: Reverse array and print elements at even and odd positions

14. Sum of Second Largest from Even Positions and Second Smallest from Odd Positions

Problem: Given an array, calculate the sum of the second-largest element from even positions and the second-smallest from odd positions

15. Find Maximum Value and Index in Array

Problem: Given an array, find the maximum value and its index.
Example: Input [23, 45, 82, 27, 66, 12, 78, 13, 71, 86], Output: (86, 9)

16. Matrix Division and Sum of Second Largest

Problem: Perform matrix division and find the sum of the second-largest elements in each row

Strings

17. Password Checker

Problem: Check if a string is a valid password based on criteria (e.g., length, numbers, capitals, no spaces/slashes).
Example: Input "aA1_67", Output: 1; "a987 abC012", Output: 0

18. Move Hyphen

Problem: Move hyphens in a string to specific positions based on rules

19. Replace Character

Problem: Replace specific characters in a string with another character

20. Operation Choices

Problem: Perform operations on a string based on user-defined choices

21. Shorten Word with Middle Character Count

Problem: Given a word, return the first letter, the count of middle characters, and the last letter

22. Vowel Permutation

Problem: Given a string, print all possible permutations of vowels present in the string

Number Problems

23. Calculate Difference of Sum of Numbers

Problem: Given integers m and n, calculate the difference between the sum of numbers from 1 to n not divisible by m and the sum of numbers divisible by m.
Example: Input m=6, n=30, Output: 285

24. Count Number of Carry Operations When Adding Two Numbers

Problem: Given two numbers, count the number of carry operations when adding them digit by digit.
Example: Input num1=451, num2=349, Output: 2

25. Calculate Total Coins Adam Gives to Charity

Problem: Given x, calculate the total coins Adam gives as i^2 from day 1 to x.
Example: Input: 2, Output: 5

26. Find Sum of Divisors for Given Integer N

Problem: Given an integer N, find the sum of all its divisors.
Example: Input: 6, Output: 12

27. Sum of Binary Digits

Problem: Convert a number N to binary and return the sum of its binary digits (number of 1's)

28. Prime Numbers Between 1 and N

Problem: Print all prime numbers between 1 and N

29. Check Leap Year

Problem: Check if a given year is a leap year

30. Rat Count House

Problem: Involves calculating food consumption for rats across houses

31. Difference of Sum

Problem: Involves calculating differences between sums based on divisibility

32. Product Smallest Pair

Problem: Likely involves finding the product of the smallest pair in an array

33. Decimal to N-Base Notation

Problem: Convert a decimal number to a given base (N)

34. Number of Carries

Problem: Count the number of carry operations when adding two numbers

35. Max Exponents

Problem: Likely involves finding maximum exponents in a number or expression

36. Calculate Sum of Numbers Divisible by 3 and 5

Problem: Calculate the sum of numbers divisible by 3 and 5 within a range

37. Display Table and Sum of Multiples

Problem: Involves displaying a table and summing multiples

38. Print Palindrome Numbers

Problem: Print all palindrome numbers within a given range

39. Sum of Distance Between Three Points

Problem: Likely involves calculating distances between points

40. Autobiographical Number

Problem: Check if a number is autobiographical (each digit indicates its count in the number)

Get the doc file with most Asked coding questions & actual questions from here - Accenture

IBM Previous Year coding questions

Join our Discord Community to ask your doubts- Discord