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 Β· easy

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

How would you test these functions with edge cases?

Python/Codingeasy2 min read
Microsoft
β†’
62

Identify the Unix command that lists files with specific permissions

Python/Codingeasy2 min read
Morgan Stanley
β†’
63

Implement a context manager class for a sequence generator using __enter__ and __exit__

Python/Codingeasy2 min read
Moonfare
β†’
64

Implement a function to find the maximum sum subarray (Kadane's algorithm).

Python/Codingeasy1 min read
HashedIn
β†’
65

Implement a function to reverse a string without using built-in methods.

Python/Codingeasy2 min read
HashedIn
β†’
66

Implement a generator function to yield Fibonacci numbers.

Python/Codingeasy2 min read
Moonfare
β†’
67

Implement a program to find the intersection of two lists.

Python/Codingeasy2 min read
Delivery Hero
β†’
68

Implement a program to remove duplicates from a list while maintaining order.

Python/Codingeasy2 min read
Delivery Hero
β†’
69

List Comprehension - example

Python/Codingeasy0.7 min read
LTIMindtree
β†’
70

Problem based on lists operations

Python/Codingeasy0.5 min read
McKinsey
β†’
71

Python libraries - Pandas, NumPy, Matplotlib for data processing

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

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

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

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

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

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

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

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

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

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

Python/Codingeasy2 min read
American Express
β†’
77

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

Python/Codingeasy2 min read
Chryselys
β†’
78

Write a swap function without if-else.

Python/Codingeasypython2 min read
Gartner
β†’
79

Write code for character frequency in a text file.

Python/Codingeasy2 min read
Impetus
β†’
80

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
Previous1234
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