
Accenture


10+ Accenture Software Developer Interview Questions and Answers for Freshers
Q1. Maximum Subarray Sum Problem Statement
Given an array ARR
consisting of N
integers, your goal is to determine the maximum possible sum of a non-empty contiguous subarray within this array.
Example of Subarrays:...read more
Find the maximum sum of a contiguous subarray in an array of integers.
Use Kadane's algorithm to find the maximum subarray sum efficiently.
Initialize two variables: maxEndingHere and maxSoFar.
Iterate through the array and update the variables accordingly.
Return the maxSoFar as the result.
Q2. Ninja and Candies Problem
Ninja, a boy from Ninjaland, receives 1 coin every morning from his mother. He wants to purchase exactly 'N' candies. Each candy usually costs 2 coins, but it is available for 1 coin i...read more
Calculate the earliest day on which Ninja can buy all candies with special offers.
Iterate through each day and check if any special offer is available for candies Ninja wants to buy
Keep track of the minimum day on which Ninja can buy all candies
Consider both regular price and sale price of candies
Q3. Print Permutations - String Problem Statement
Given an input string 'S', you are tasked with finding and returning all possible permutations of the input string.
Input:
The first and only line of input contains...read more
Return all possible permutations of a given input string.
Use recursion to generate all possible permutations of the input string.
Swap characters at different positions to generate different permutations.
Handle duplicate characters by skipping swapping if the characters are the same.
Return the list of permutations as an array of strings.
Q4. Replace Character Problem Statement
Given an input string S
and two characters 'c1' and 'c2', your task is to replace every occurrence of the character 'c1' with the character 'c2' in the given string.
Input:
L...read more
Replace every occurrence of a character in a string with another character.
Iterate through the input string and replace 'c1' with 'c2' using string manipulation functions.
Return the updated string as the output.
Q5. Arithmetic Expression Evaluation Problem Statement
You are provided with a string expression
consisting of characters '+', '-', '*', '/', '(', ')' and digits '0' to '9', representing an arithmetic expression in...read more
Evaluate arithmetic expressions in infix notation with given operators and precedence rules.
Parse the infix expression to postfix using a stack and then evaluate the postfix expression using another stack
Use a stack to keep track of operators and operands while parsing the expression
Handle operator precedence and associativity rules while converting to postfix and evaluating the expression
Q6. Reverse Number Problem Statement
Ninja is exploring new challenges and desires to reverse a given number. Your task is to assist Ninja in reversing the number provided.
Note:
If a number has trailing zeros, the...read more
Implement a function to reverse a given number, omitting trailing zeros.
Create a function that takes an integer as input and reverses it while omitting trailing zeros
Use string manipulation to reverse the number and remove any trailing zeros
Handle test cases where the number has leading zeros as well
Ensure the reversed number is printed for each test case on a new line
Q7. Valid Parentheses Problem Statement
Given a string 'STR' consisting solely of the characters “{”, “}”, “(”, “)”, “[” and “]”, determine if the parentheses are balanced.
Input:
The first line contains an integer...read more
The task is to determine if a given string of parentheses is balanced or not.
Iterate through the characters of the string and use a stack to keep track of opening parentheses.
When encountering an opening parenthesis, push it onto the stack. When encountering a closing parenthesis, check if it matches the top of the stack.
If the stack is empty at the end or there are unmatched parentheses, the string is not balanced.
Example: For input '{}[]()', the stack will contain '{', '[',...read more
Q8. A link layer switch is involved in_____layers of the TCP/IP protocol suite. a.2 b.3 c.4 d.5
A link layer switch is involved in which layers of the TCP/IP protocol suite?
A link layer switch operates at the data link layer (layer 2) of the TCP/IP protocol suite.
It is responsible for forwarding data packets between devices on the same network segment.
It does not operate at the network, transport, or application layers.
Q9. Program to check if string is palindrome or not.
A program to check if a given string is a palindrome or not.
Remove all non-alphanumeric characters from the string
Convert the string to lowercase
Reverse the string and compare it with the original string
If they are the same, the string is a palindrome
Q10. Which is the oldest programming language?
Fortran is the oldest programming language.
Fortran was developed in the 1950s by IBM.
It stands for Formula Translation.
It was primarily used for scientific and engineering calculations.
Other old programming languages include COBOL and Lisp.
Q11. oops concept explanation
Oops concept is a programming paradigm that focuses on objects and their interactions.
Oops stands for Object-Oriented Programming System
It emphasizes on encapsulation, inheritance, and polymorphism
Encapsulation is the process of hiding implementation details from the user
Inheritance allows a class to inherit properties and methods from another class
Polymorphism allows objects to take on multiple forms or behaviors
Example: Java, C++, Python are object-oriented programming lang...read more
Q12. Different types coding test mcq
The question is about different types of coding test MCQs.
MCQs are multiple-choice questions that test coding knowledge.
Different types of coding test MCQs can include questions on algorithms, data structures, programming languages, and problem-solving.
Examples of coding test MCQs include: 'What is the time complexity of a binary search?', 'Which data structure is best suited for implementing a queue?', 'What is the output of a specific code snippet?'
Q13. any programming language
I am proficient in Java programming language.
Strong understanding of object-oriented programming concepts
Experience with Java frameworks like Spring and Hibernate
Knowledge of Java libraries and tools like Maven and JUnit
More about working at Accenture










Top HR Questions asked in Accenture Software Developer for Freshers
Interview Process at Accenture Software Developer for Freshers

Top Software Developer Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

