Junior Software Development Engineer

Junior Software Development Engineer Interview Questions and Answers

Updated 27 Jul 2020

Q1. How will you approach the problem of tracing all squares in a chess board by doing valid moves of a Knight, without repeating any squre?

Ans.

Tracing all squares in a chess board by valid moves of a Knight without repeating any square.

  • Create a 2D array to represent the chess board.

  • Start from any square and mark it as visited.

  • Generate all possible moves of a Knight from the current square.

  • Check if the move is valid and not visited before.

  • If yes, mark the square as visited and add it to the path.

  • Repeat the above steps until all squares are visited.

  • If no more moves are possible, backtrack to the previous square and tr...read more

Q2. Fibonnaci Series without using recursive functions

Ans.

Fibonacci series can be generated using iterative approach with a loop and two variables.

  • Declare two variables to store the first two numbers of the series

  • Use a loop to generate the next number by adding the previous two numbers

  • Repeat the loop until the desired number of terms is generated

  • Store the generated numbers in an array

Q3. Inline functions in python

Ans.

Inline functions in Python are functions that are defined and called in a single line of code.

  • Inline functions are defined using the lambda keyword.

  • They are useful for simple operations that don't require a full function definition.

  • Example: double = lambda x: x * 2

  • Inline functions can be used as arguments for other functions.

  • Example: list(map(lambda x: x * 2, [1, 2, 3])) returns [2, 4, 6]

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

Interview experiences of popular companies

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

Junior Software Development Engineer 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