Engineer Interview Questions | Glassdoor.co.in

# Engineer Interview Questions

91,169

Engineer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

16 Oct 2013

23 Apr 2010

17 Apr 2018
hai

16 Feb 2016

29 Feb 2012

7 Jun 2012

24 Dec 2015

### R&D Engineer at Vital Labs was asked...

21 Feb 2018
 Collection,interface, difference set nd list???16 Answersfinal round coding is paper based or system ???Systemquestion in first round????????Show more responsesInput array= 2,4,5,-3,3,4,6 Sum=7 Output:- u have to print all pair whose some is 7Sum*package Virtusa; import java.util.*; class Test{ public static void main(String[] args) { // This is a book System.out.println("Enter String with first alphabet is capital:"); Scanner st=new Scanner(System.in); String s=st.nextLine(); char[] c= s.toCharArray(); int max=c.length,min=0; for(int i=c.length-1;i>=0;i--) { if(c[i]==' ' ){ min=i; printWord(c,min+1,max); max=min; } } printWord(c,0,max); } private static void printWord(char[] c, int min, int max) { if(c.length == max){ c[min] = Character.toUpperCase(c[min]); } if(min == 0){ c[min] = Character.toLowerCase(c[min]); } for(int i=min;ipackage Virtusa; import java.util.*; class Test{ public static void main(String[] args) { // This is a book System.out.println("Enter String with first alphabet is capital:"); Scanner st=new Scanner(System.in); String s=st.nextLine(); char[] c= s.toCharArray(); int max=c.length,min=0; for(int i=c.length-1;i>=0;i--) { if(c[i]==' ' ){ min=i; printWord(c,min+1,max); max=min; } } printWord(c,0,max); } private static void printWord(char[] c, int min, int max) { if(c.length == max){ c[min] = Character.toUpperCase(c[min]); } if(min == 0){ c[min] = Character.toLowerCase(c[min]); } for(int i=min;iU selected?Friends is anyone got selected for the RD engineer post??import java.util.*; public class StringTest { public static void main(String[] args) { String str = "This is my book"; String a[]=str.split(" "); for(int i = 0; i list = Arrays.asList(a); Collections.reverse(list); System.out.print(String.join(" ", list)); } }import java.util.Arrays; import java.util.Collections; import java.util.List; public class StringTest { public static void main(String[] args) { String str = "This is my book"; String a[]=str.split(" "); for(int i = 0; i list = Arrays.asList(a); Collections.reverse(list); System.out.print(String.join(" ", list)); } }package StringTest; import java.util.Arrays; import java.util.Collections; import java.util.List; public class StringTest { public static void main(String[] args) { String str = "This is my book"; String a[]=str.split(" "); for(int i = 0; i list = Arrays.asList(a); Collections.reverse(list); System.out.print(String.join(" ", list)); } }U can't use inbuilt function.Show more responsesstatic void book(){ String s="This is my book"; String[] res=s.split(" "); for(int i=res.length-1;i>=0;i--) { char[] rword=new char[res[i].length()]; for(int j=0;jque-This is my book out-Book my is thisimport java.util.ArrayList; import java.util.Collections; public class AfterReversingFirstLetterOfSentenceIsCapital{ public static void main(String[] args){ String str="This is my book"; String[] c= str.split(""); ArrayList al=new ArrayList(); for(int i=0;i

19 Mar 2009