Software Engineer Trainee Interview Questions

6,022 software engineer trainee 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).

2. Write a program in C to merge the two arrays arr1, arr2 of size len1,len2 and then arrange the elements of the merged array in ascending order. The function is given as Merge_arr(int *arr1[ ], int *arr2[ ], int *len1, int *len2)
avatar

Software Engineer Trainee

Interviewed at Progressive Techserve

3.9
Jul 17, 2015

2. Write a program in C to merge the two arrays arr1, arr2 of size len1,len2 and then arrange the elements of the merged array in ascending order. The function is given as Merge_arr(int *arr1[ ], int *arr2[ ], int *len1, int *len2)

Viewing 2951 - 2960 interview questions

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