Add office photos
Accenture logo
Employer?
Claim Account for FREE

Accenture

3.8
based on 56.6k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Python Developer
Clear (1)

Accenture Python Developer Interview Questions and Answers

Updated 11 Nov 2024

Q1. 2.Write a program to print a string in reverse without using built in methods?

Ans.

This program reverses a given string without using any built-in methods.

  • Iterate through the string from the last character to the first character.

  • Append each character to a new string to reverse the order.

  • Return the reversed string as the output.

View 8 more answers
right arrow

Q2. Sum of unique numbers in the list

Ans.

Find the sum of unique numbers in a list.

  • Create an empty set to store unique numbers

  • Loop through the list and add each number to the set

  • Sum up the numbers in the set

View 3 more answers
right arrow

Q3. Name commonly used inbuilt functions of Python

Ans.

Commonly used inbuilt functions of Python

  • print() - prints output to console

  • len() - returns length of an object

  • range() - generates a sequence of numbers

  • type() - returns type of an object

  • str() - converts an object to string

  • int() - converts a string or float to integer

  • float() - converts a string or integer to float

  • list() - creates a list

  • dict() - creates a dictionary

  • set() - creates a set

Add your answer
right arrow

Q4. Count key frequency in dictionary

Ans.

Count the frequency of keys in a dictionary.

  • Use a loop to iterate through the keys in the dictionary.

  • For each key, use the count() method to count its frequency.

  • Store the key and its frequency in a new dictionary.

Add your answer
right arrow
Discover Accenture interview dos and don'ts from real experiences

Q5. what is namespace and its types?

Ans.

Namespace is a way to organize variables and functions in a program to avoid naming conflicts.

  • Namespace helps in avoiding naming conflicts by providing a unique space for each identifier.

  • Types of namespaces include global namespace, local namespace, built-in namespace, and module namespace.

  • Example: In Python, each module has its own namespace where all the variables and functions defined in that module reside.

Add your answer
right arrow

Q6. define lambda function and give an example?

Ans.

Lambda function is an anonymous function defined using the lambda keyword in Python.

  • Lambda functions are used for creating small, one-time use functions without a name.

  • Syntax: lambda arguments: expression

  • Example: double = lambda x: x * 2

Add your answer
right arrow

Q7. write code to explain multiple inheritance

Ans.

Multiple inheritance in Python allows a class to inherit attributes and methods from more than one parent class.

  • Python supports multiple inheritance by allowing a class to inherit from multiple parent classes.

  • The order of parent classes in the inheritance list matters, as methods are searched for in the order they appear.

  • Diamond problem can occur in multiple inheritance when two parent classes have a common ancestor class.

  • Super() function can be used to call methods from pare...read more

Add your answer
right arrow

Q8. difference between list & tuple?

Ans.

List is mutable, tuple is immutable in Python.

  • List uses square brackets [], tuple uses parentheses ().

  • List elements can be changed, added, or removed, tuple elements cannot be changed.

  • Lists are used for collections of items that may need to be modified, tuples are used for fixed collections of items.

  • Example: list_example = [1, 2, 3], tuple_example = (4, 5, 6)

Add your answer
right arrow

More about working at Accenture

Back
Awards Leaf
AmbitionBox Logo
Top Rated Mega Company - 2024
Awards Leaf
Awards Leaf
AmbitionBox Logo
Top Rated Company for Women - 2024
Awards Leaf
Awards Leaf
AmbitionBox Logo
Top Rated IT/ITES Company - 2024
Awards Leaf
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Accenture Python Developer

based on 3 interviews
1 Interview rounds
Resume Shortlist Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Python Developer Interview Questions from Similar Companies

TCS Logo
3.7
 • 15 Interview Questions
Cognizant Logo
3.7
 • 12 Interview Questions
Infotech Logo
4.0
 • 12 Interview Questions
View all
Recently Viewed
INTERVIEWS
Accenture
No Interviews
REVIEWS
Ernst & Young
No Reviews
JOBS
Ernst & Young
No Jobs
DESIGNATION
INTERVIEWS
Accenture
No Interviews
INTERVIEWS
Accenture
No Interviews
REVIEWS
Ernst & Young
No Reviews
DESIGNATION
JOBS
Ernst & Young
No Jobs
JOBS
Ernst & Young
No Jobs
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter