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
61

GeoPandas - definition and features

Python/Codingmediumjoin1 min read
NAB
β†’
62

Given 1TB of a file, how to check word count?

Python/Codinghardpartitionspark2 min read
Citi
β†’
63

Given a list of integers, write a Python function to return the number of unique pairs that sum up to a target.

Python/Codingeasypython1 min read
Amazon
β†’
64

Given a list of intervals, merge the overlaps. How do you optimize it?

Python/Codingeasy2 min read
Microsoft
β†’
65

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

Python/Codingeasy2 min read
Cognizant
β†’
66

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

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

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

Python/Codingeasy2 min read
Expedia
β†’
68

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

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

Grouping and aggregation functions?

Python/Codingmediumpartitionsnowflakewindow1 min read
Snowflake
β†’
70

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

Python/Codingeasysql1 min read
Coforge
β†’
71

How do you clean missing values in a pandas DataFrame?

Python/Codingeasy2 min read
Swiggy
β†’
72

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

Python/Codingeasypython1 min read
TCS
β†’
73

How do you sort a dictionary based on values?

Python/Codingeasy2 min read
HCL
β†’
74

How does your tech stack support scalability and analytics?

Python/Codinghardpartitionspark2 min read
Moonfare
β†’
75

How many cities does each department operate in? List the top 3 departments in terms of the most number of cities. In case of a tie, order by dept_id.

Python/Codingmediumsql2 min read
Freight Tiger
β†’
76

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

Python/Codingeasy2 min read
Capco
β†’
77

How would you decide between using DISTKEY and SORTKEY?

Python/Codingmediumjoinpartition2 min read
Capco
β†’
78

How would you handle memory constraints when processing a large dataset in Python?

Python/Codinghardpythonsql2 min read
Goldman Sachs
β†’
79

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

Python/Codingeasy2 min read
Delivery Hero
β†’
80

How would you process a 10TB dataset on a single machine in Python?

Python/Codinghardpartitionpythonspark2 min read
Goldman Sachs
β†’

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