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
41

Given a string 'AAAVGXFHHFSGFGGLK', find the non-repeating letters.

Python/Codingeasy2 min read
Cognizant
β†’
42

Given an n-ary tree, write code to flatten it and store the output in a list.

Python/Codingeasy2 min read
Disney+ Hotstar
β†’
43

Given the Infix, Prefix, or Postfix notation of an expression, write the code to compute the final result.

Python/Codingeasy2 min read
Expedia
β†’
44

Given the input string "AAABBBCCCDDDAAA," compress it to output "A3B3C3D3A3."

Python/Codingeasy2 min read
S&P Global
β†’
45

How are strings handled in Scala? How are they different from Java strings?

Python/Codingeasysql1 min read
Coforge
β†’
46

How do you clean missing values in a pandas DataFrame?

Python/Codingeasy2 min read
Swiggy
β†’
47

How do you install a Python library that is not in the Databricks runtime?

Python/Codingeasypython1 min read
TCS
β†’
48

How do you sort a dictionary based on values?

Python/Codingeasy2 min read
HCL
β†’
49

How would you implement a program to determine the frequency of each letter in a string?

Python/Codingeasy2 min read
Delivery Hero
β†’
50

How would you test these functions with edge cases?

Python/Codingeasy2 min read
Microsoft
β†’
51

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

Python/Codingeasy2 min read
Moonfare
β†’
52

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

Python/Codingeasy1 min read
HashedIn
β†’
53

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

Python/Codingeasy2 min read
HashedIn
β†’
54

Implement a generator function to yield Fibonacci numbers.

Python/Codingeasy2 min read
Moonfare
β†’
55

Implement a program to find the intersection of two lists.

Python/Codingeasy2 min read
Delivery Hero
β†’
56

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

Python/Codingeasy2 min read
Delivery Hero
β†’
57

List Comprehension - example

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

Problem based on lists operations

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

Python libraries - Pandas, NumPy, Matplotlib for data processing

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

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

Python/Codingeasy0.5 min read
Moonfare
β†’

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