Data Engineering Intern

Data Engineering Intern Interview Questions and Answers

Updated 19 Nov 2022

Q1. LCA of Three Nodes Problem Statement

You are given a Binary Tree with 'N' nodes where each node contains an integer value. Additionally, you have three integers, 'N1', 'N2', and 'N3'. Your task is to find the L...read more

Ans.

Find the Lowest Common Ancestor (LCA) of three nodes in a Binary Tree.

  • Traverse the Binary Tree to find the paths from the root to each of the three nodes.

  • Compare the paths to find the common ancestor node.

  • Return the value of the Lowest Common Ancestor node.

Q2. Equilibrium Indices in a Sequence

You are given an array/list named 'SEQUENCE', which consists of 'N' integers. The task is to identify all equilibrium indices in this sequence.

Explanation:

An equilibrium inde...read more

Ans.

Identify equilibrium indices in a sequence by finding positions where sum of elements before and after is equal.

  • Iterate through the sequence and calculate prefix sum and suffix sum at each index

  • Compare prefix sum and suffix sum to find equilibrium indices

  • Handle edge cases where no equilibrium index exists

  • Return the list of equilibrium indices

Data Engineering Intern Interview Questions and Answers for Freshers

illustration image

Q3. Extract Characters at Prime Indices

Given a string 'STR' of length 'N', return a new string containing all characters that are located at prime indices in the original string. Ensure that the order of character...read more

Ans.

The task is to extract characters at prime indices from a given string and return them in the same order.

  • Iterate through the string and check if the index is prime.

  • Use a helper function to determine if a number is prime.

  • Build the new string by appending characters at prime indices.

Q4. Explain the Concepts of OOPS , abstraction inheritance polymorphism and encapsulation.

Ans.

OOPS concepts include abstraction, inheritance, polymorphism, and encapsulation.

  • Abstraction: Hiding implementation details and showing only necessary information.

  • Inheritance: Creating new classes from existing ones, inheriting properties and methods.

  • Polymorphism: Using a single method to perform different actions based on the object type.

  • Encapsulation: Binding data and methods together, protecting data from outside interference.

Are these interview questions helpful?
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.8
 • 8.1k Interviews
3.5
 • 138 Interviews
3.5
 • 6 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Data Engineering Intern Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter