Junior Software Development Engineer
Junior Software Development Engineer Interview Questions and Answers
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?
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
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
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]
Interview Questions of Similar Designations
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
Reviews
Interviews
Salaries
Users/Month