Saturday, September 16, 2017

Nagarro Interview Pattern


Round 1) Psychometric test                                               Elimination round
12  minutes, 50 Questions – No negative marking

Round 2) Coding – Hacker Rank                                      Elimination round
3 questions, 18 Test cases – Have to pass minimum 12-13 TC to qualify to next round

Question 1
Reverse first N numbers in an array – Total 8 test cases
array -[1,2,3,4,5,6,7,8]
reverseNumbers(array,4) - > [4,3,2,1,5,6,7,8]
int[] reverseNumbers(int array, int N){
}

Question 2
Sort date arrays – Total 5 test cases

Question 3

All possible sub-strings of a String - Total 5 test cases
String str=”abc”

Output- [a,ab,abc,b,bc,c]
String str=”cat”

Output- [a,at,c,ca,cat,t] <- Do note that array shows order in alphabetical order and thus use of TreeSet is required.

String str=”nnn”

Output- [n,nn,nnn] <- No duplicate elements again in output array

Round 3) Technical round (1:15 Hr)                        Elimination round
A lot has been asked from current project and emphasis was on java frameworks, 1 MVC framework and 1 ORM framework.
     a)    Convert Set<String> to String[]
     b)    Hibernate – n+1 issue
     c)     Hibernate vs normal SQL
    d)    Struts 2 flow and role of Spring DI in Struts 2 framework
    e)     Does Struts 2 action class provide Singleton object or not?
    f)      Flow of strut2 framework, starting from writing a form and press submit.
    g)    Transaction module in Hibernate
    h)    hibernate.cfg.xml and Type of primary key auto generation in Hibernate
    i)      Lazy and Early fetch in Hibernate

Round 4) Technical round (Architect)                     Elimination round
     a)    Tree Map working(AVL and Red-Black tree)
     b)    Spring AOP backend working
     c)     Proxy design pattern and real time usage
     d)   Transaction attributes and Transaction propagation.
     e)     Serialization, why suid is static?
     f)      JDK Dynamic proxy and CGLIB proxy library

     g)    Aka and Actor framework

1 comment: