DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPacksBlog
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

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

Python/Codingeasy0.1 min read
Expedia
β†’
62

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

Python/Codingeasy0.1 min read
S&P Global
β†’
63

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

Python/Codingeasysql0.1 min read
Coforge
β†’
64

How do you clean missing values in a pandas DataFrame?

Python/Codingeasy0.1 min read
Swiggy
β†’
65

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

Python/Codingeasypython0.1 min read
TCS
β†’
66

How do you sort a dictionary based on values?

Python/Codingeasy0.1 min read
HCL
β†’
67

How would you configure workload management (WLM) queues for heavy queries?

Python/Codingeasy0.2 min read
Capco
β†’
68

How would you handle errors in your code?

Python/Codingeasy0.1 min read
Thoughtworks
β†’
69

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

Python/Codingeasy0.1 min read
Delivery Hero
β†’
70

How would you test these functions with edge cases?

Python/Codingeasy0.1 min read
Microsoft
β†’
71

Identify the Unix command that lists files with specific permissions

Python/Codingeasy0.2 min read
Morgan Stanley
β†’
72

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

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

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

Python/Codingeasy0.1 min read
HashedIn
β†’
74

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

Python/Codingeasy0.1 min read
HashedIn
β†’
75

Implement a generator function to yield Fibonacci numbers.

Python/Codingeasy0.1 min read
Moonfare
β†’
76

Implement a program to find the intersection of two lists.

Python/Codingeasy0.1 min read
Delivery Hero
β†’
77

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

Python/Codingeasy0.1 min read
Delivery Hero
β†’
78

List Comprehension - example

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

Problem based on lists operations

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

Python Code Using Constructors in a Class

Python/Codingeasypython0.5 min read
Tech Mahindra
β†’

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
Previous1234567Next
Categories
All QuestionsSQLSpark / Big DataPython / CodingSystem DesignCloud / ToolsBehavioral
By Company
AmazonGoogleDatabricksSnowflakeMicrosoftNetflixUberTCS
Interview Guides
All GuidesTop SQL QuestionsTop Spark QuestionsTop Python QuestionsTop System DesignSQL Window FunctionsETL QuestionsData Modeling
Products
AI Interview CoachAnswer AnalyzerSQL PlaygroundResume AnalyzerInterview PacksPricing
Company
About UsContact UsAI DisclosureDisclaimerTerms of ServicePrivacy Policy
Β© 2026 DataEngPrep.tech. All rights reserved.
AboutBlogContactDisclaimer