DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPacksBlog
ProLogin

Interview Questions

Real questions from top companies Β· medium

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

How would you decide between using DISTKEY and SORTKEY?

Python/Codingmediumjoinpartition0.2 min read
Capco
β†’
162

Implement an algorithm to find the longest common prefix among an array of strings.

Python/Codingmediumpartitionspark0.6 min read
Disney+ Hotstar
β†’
163

List customers with more than 5 orders.

Python/Codingmediumjoinpartitionspark0.6 min read
Comcast
β†’
164

List every combination of dept_name, employee_name, and city such that the employee belongs to the department and the same city in which the department is located.

Python/Codingmediumjoin0.6 min read
Freight Tiger
β†’
165

Multithreading and Synchronization in Java - write code to manage synchronized threads

Python/Codingmediumpartition0.5 min read
Walmart
β†’
166

Replace words and perform string operations in Python (replace, vowel removal, word count, pattern check).

Python/Codingmediumjoinpython0.4 min read
Incedo
β†’
167

Reverse a string with special characters preserved.

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

Sort and merge arrays

Python/Codingmediumjoinpartitionpython0.4 min read
Pubmatic
β†’
169

Spark Coding: Using explode() Function to flatten nested arrays

Python/Codingmediumjoinpartitionspark0.4 min read
Lumiq
β†’
170

Stuff Function for XML Usages

Python/Codingmediumsql0.4 min read
NAB
β†’
171

What role does the executor heap size play in preventing OOM errors?

Python/Codingmediumpartitionpythonspark0.4 min read
PWC
β†’
172

Write Python code to remove duplicates from a string.

Python/Codingmediumjoinpython0.2 min read
EY
β†’
173

Write a Python program to calculate total spending, identify top 5 users by spending, and find the most purchased product

Python/Codingmediumbigquerypartitionpython0.3 min read
Myntra
β†’
174

Write a Python program to reverse words in a string.

Python/Codingmediumjoinpython0.2 min read
Incedo
β†’
175

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

Python/Codingmediumjoin0.2 min read
JP Morgan
β†’
176

Add Row Numbers using window function in PySpark

SQLmediumpartitionsparksql0.2 min read
Presidio
β†’
177

Add a column to the Employees table that shows the name of the employee with the next higher employee_id.

SQLmediumpartition0.2 min read
Freight Tiger
β†’
178

Add a new column with manager names for each employee using a self-join.

SQLmediumjoin0.2 min read
HashedIn
β†’
179

Add a new column with the average salary by department.

SQLmediumpartitionwindow0.2 min read
HashedIn
β†’
180

Advanced SQL with CTEs and Conditional Joins

SQLmediumjoinpartitionsql0.3 min read
Myntra
β†’

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...7891011...24Next
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