Sdet Intern

Sdet Intern Interview Questions and Answers

Updated 28 Nov 2024
search-icon

Q1. Sort Strings Greatest element in array

Ans.

Find the greatest element in an array of strings.

  • Convert the strings to numbers if applicable before comparing.

  • Use a loop to iterate through the array and keep track of the greatest element.

  • Handle edge cases like empty array or non-numeric strings.

Q2. Create a olympics logo using React.

Ans.

Create a Olympics logo using React.

  • Use SVG elements to create the rings of the logo.

  • Utilize CSS for styling and positioning of the rings.

  • Consider using React components to modularize the design.

  • Implement animations for a dynamic effect.

  • Ensure responsiveness for different screen sizes.

Sdet Intern Interview Questions and Answers for Freshers

illustration image

Q3. Border level traversal of tree

Ans.

Border level traversal of a tree involves visiting the nodes at the outermost edges of the tree in a clockwise or counterclockwise direction.

  • Start by visiting the nodes in the leftmost column from top to bottom, excluding the leaf nodes.

  • Then visit the leaf nodes from left to right at the bottom of the tree.

  • Next, visit the nodes in the rightmost column from bottom to top, excluding the leaf nodes.

  • Finally, visit the leaf nodes from right to left at the top of the tree.

Q4. Burn a tree coding question

Ans.

Implement a function to burn a tree starting from a given node

  • Start by creating a function that takes in the root node of the tree and the node to start burning from

  • Use a queue to perform a level order traversal of the tree

  • Keep track of the nodes that have been burned and the nodes that are yet to be burned

Are these interview questions helpful?

Q5. Detect loop in a linkedlist

Ans.

Use Floyd's Tortoise and Hare algorithm to detect loop in a linked list.

  • Initialize two pointers, slow and fast, at the head of the linked list.

  • Move slow pointer by one step and fast pointer by two steps.

  • If they meet at any point, there is a loop in the linked list.

Sdet Intern Jobs

SDET Intern 0-1 years
3SC
4.0
Gurgaon / Gurugram
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

4.1
 • 5k Interviews
4.0
 • 490 Interviews
3.5
 • 34 Interviews
4.0
 • 1 Interview
1.0
 • 1 Interview
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

Sdet 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