Trainee Software Engineer Interview Questions

6,022 trainee software engineer interview questions shared by candidates

<1> write the java code of a function which would have take an int array as input and would return an array which would rearrange all odd numbers to the left of the array then all even numbers to the right after odd numbers. u cant use for loops and only 1 int array can be the function parameter. ❓ Problem restated Input: one int[] array. Rearrange so that odds come first, evens come later. Constraints: No for loops. Function parameter = only the given array (no extra arrays).
avatar

Software Engineer- I (FTE) / Trainee Engineer (Internship)

Interviewed at HashedIn by Deloitte

4.1
Sep 15, 2025

<1> write the java code of a function which would have take an int array as input and would return an array which would rearrange all odd numbers to the left of the array then all even numbers to the right after odd numbers. u cant use for loops and only 1 int array can be the function parameter. ❓ Problem restated Input: one int[] array. Rearrange so that odds come first, evens come later. Constraints: No for loops. Function parameter = only the given array (no extra arrays).

Viewing 2961 - 2970 interview questions

Glassdoor has 6,022 interview questions and reports from Trainee software engineer interviews. Prepare for your interview. Get hired. Love your job.