# 5K

Trainee Software Engineer interview questions shared by candidates

## Top Interview Questions

Sort: Relevance|Popular|Date
Trainee Software Engineer was asked...September 14, 2017

### Merge Linked list

Round 1 had very basic quant and C output questions. Try to solve Test your C skills. Round 2: 1. Reverse Linked List(shocked to see this). 2. Merge Linked List. 3. Sort alphanumeric array 4. Some pattern question. 5. Find 2 numbers in the sorted array having sum closest to the given number. Less

can I use python in coding round of libsys recruitment process

Can you please tell which type of c/c++ questions were asked in the technical apti? Less

### Why u chose IT? Why do want to join syntel?

Results are announced some of my friends got selected ,nd they joined syntel chennai by 7th August Less

Sep 1st week

I gave hr interview in pune on 19 august. When i can expect results ?

### Difficult Quantitative questions

I got shortlisted for further rounds with NetCracker.

could you please say the programming questions which were asked in coding section Less

Could you please tell me the tough one which was asked in coding

### WAP to find and print second largest digit in the given number? ( without using arrays, functions and using only one loop).

while (num&gt;0) { int dig = num % 10; if(dig &gt; largest) { if(seclarg dig &amp;&amp; dig &gt; seclarg) seclarg = dig; num /= 10; } Less

while(n){ x=n%10; if(max1x) max2=x; n=n/10; } } Less

#include using namespace std; int main() { int n,x,max1=0,max2=0; cin&gt;&gt;n; while(n&gt;0) { x=n%10; if(max1&gt;x) {if(max2 Less

### count number of star (*) in between two bar(|) in a substring of a given string( **|*|***)

str1= "**|*|***" li=[] count=0 for x in range(len(str1)): if str1[x]=='|': li.append(x) min_i=li[0] max_i=li[-1] for i in range(min_i,max_i): if str1[i]=="*": count+=1 print(count) Less

for(int i=0;i

import java.util.Scanner; // ****|**|*** public class Ques_13_findStar { public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out.println(findStar(s.next())); } private static int findStar(String str) { int count = 0; int start = 0; for (int i = 0; i &lt; str.length(); i++) { if(str.charAt(i)=='|'){ start = i; break; } } for (int i = start+1; i &lt; str.length(); i++) { if(str.charAt(i)!= '|'){ count++; } } return count-1; } } Less

### what will system.out print do?

I agree with you...this company cannot be trusted.they don't know how to take interviews.these people will never appreciate your knowledge. Less

If you have reference than you will be treated very well. Even if you don't have technical knowledge Less

3 months 4 rounds of interview just shows how screwed up their hiring process is. Less

### 1. Write a program in C to print the following pattern if value for S and N are given. Say if S=3,N=3 the pattern should be: 3 44 555 555 44 3

#include #include int main() { int s=3,i,j; int n=3; for(i=3;i=3;i--) { for(j=i;j&gt;=3;j--) { printf("%d",i); } printf("\n"); } } Less

#include void main() { int s=3, n=3, i, j; printf("Enter the value of s and n:\n"); scanf("%d %d", &amp;s, &amp;n); printf("The value of s = %d and n = %d:\n", s, n); for(i=0;i=0;j--) { printf("%d",s); } s++; printf("\n"); } s--; for(i=n;i&gt;=0;i--) { for(j=0;j Less

#include int main() { int s=3,n=3,i,j; for(i=s;i=s;i--) { for(j=0;j&lt;=(i-n);j++) { printf("%d",i); } printf("\n"); } } Less

### this was asked in second round. harder one: print the pattern 33333 32223 32123 32223 33333

#include using namespace std; #include int main() { int n,p; cin&gt;&gt;n; p=n; int r=0,c = 2*n-1; vector&gt; arr(c); for(int i=0;i(c); while(n&gt;0) { for(int i=r; i=r;i--) { arr[c-1][i]=n; } for(int i=c-2;i&gt;=r+1;i--) { arr[i][r]=n; } n--; r++; c--; } c=2*p-1; for(int i=0;i Less

#include using namespace std; #include int main() { int n,p; cin&gt;&gt;n; p=n; int r=0,c = 2*n-1; vector&gt; arr(c); for(int i=0;i(c); while(n&gt;0) { for(int i=r; i=r;i--) { arr[c-1][i]=n; } for(int i=c-2;i&gt;=r+1;i--) { arr[i][r]=n; } n--; r++; c--; } c=2*p-1; for(int i=0;i Less

#include using namespace std; void print(int a[100][100],int size) { for(int i=0;i Less

### questions Lcm and addition of array 1 hour time

Python solution in O(n) time. l=list(map(int,input().split()) s=sum(l) #it gives the sum of array in O(n) time. for i in l: print(s-i,' ') Less

superrr

easy