Essential cookies keep authentication working. With your permission, we also use analytics cookies to understand and improve the product. Read our Privacy Policy

DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPricingBlog
ProLogin

Interview Questions

Real questions from top companies in Python/Coding

700+ Easy450+ Medium650+ Hard
All CategoriesBehavioralSpark/Big DataSQLPython/CodingSystem Design/ArchitectureCloud/ToolsGeneral/Othereasymediumhard
101

Python libraries - Pandas, NumPy, Matplotlib for data processing

Python/Codingeasyetlpythonspark0.5 min read
Nihilent
β†’
102

Reverse a string with special characters preserved.

Python/Codingmediumjoin0.5 min read
EY
β†’
103

S3 Cleanup Command - write script for managing and cleaning up outdated S3 objects

Python/Codingeasy0.5 min read
Moonfare
β†’
104

Solve for the Kth smallest element in a Binary Search Tree.

Python/Codingeasy0.5 min read
Expedia
β†’
105

Solve the Dutch National Flag problem in one pass. How would you handle it?

Python/Codinghardpartition0.5 min read
Microsoft
β†’
106

Trapping Rain Water - calculate amount of water trapped between array elements

Python/Codingeasy0.6 min read
Meesho
β†’
107

What is the difference between list1 = list2 and list1.copy()?

Python/Codingeasy0.6 min read
HCL
β†’
108

Write Python code to remove duplicates from a string.

Python/Codingmediumjoinpython2 min read
EY
β†’
109

Write a Python program to reverse words in a string.

Python/Codingmediumjoinpython1 min read
Incedo
β†’
110

Write a decorator function to log the execution time of a function.

Python/Codingeasy2 min read
American Express
β†’
111

Write a function that replaces all characters in a list except for a given character

Python/Codingmediumjoin2 min read
JP Morgan
β†’
112

Write a higher-order function to filter values greater than a threshold in a list.

Python/Codingeasy2 min read
Chryselys
β†’
113

Write a swap function without if-else.

Python/Codingeasypython2 min read
Gartner
β†’
114

Write code for character frequency in a text file.

Python/Codingeasy2 min read
Impetus
β†’
115

Write code using Java's concurrent API (forEach, forEachEntry, forEachKey)

Python/Codingeasy2 min read
JP Morgan
β†’

Reading isn't practice. Get AI feedback on your answers.

Type or paste your answer to any of these questions and our AI Coach scores it, highlights gaps, and rewrites it at FAANG quality. Free to try.

Try AI Answer Coach β€” FreeStart a Mock Interview
Previous1...456
Categories
All QuestionsSQLSpark / Big DataPython / CodingSystem DesignCloud / ToolsBehavioral
By Company
AmazonGoogleDatabricksSnowflakeAWSAzureMicrosoftNetflixUberTCS
Interview Guides
All GuidesTop SQL QuestionsTop Spark QuestionsPySpark QuestionsTop Python QuestionsTop System DesignKafka QuestionsAirflow QuestionsSQL Window FunctionsETL QuestionsData Modeling
Products
AI Interview CoachAnswer AnalyzerSQL PlaygroundResume AnalyzerAnswer Vault PDFsPricing
Company
About & Editorial PolicyContact UsAI DisclosureDisclaimerTerms of ServicePrivacy Policy
Β© 2026 DataEngPrep.tech. All rights reserved.
AboutBlogContactDisclaimer