1st round:
5 Aptitude questions, 15 coding coding questions. Coding questions will be like "what will be the output for this code snippet", it cover topics like oops, loops, basic operations like ++j, j++ etc
I attended first round interview only it was mcq based test. i did not get selected for the next round of interview. so I did not have much clarity about the interview process.
Me postulé a través de una agencia de empleos. Acudí a una entrevista en Softsuave (Bengaluru) en nov 2020
Entrevista
First round was a written test which includes Java (only to find the outputs) + aptitude. I will include some questions in the questions section here.
I was shortlisted from the first round and was called for the second round which was a programming written test. We all thought it could be the brick brake game or some other string manipulation questions but it was totally different. Check the question in the questions section below. I didn't get a call at the end of the day for the result but I assumed I was not shortlisted from this round.
You are not allowed to take your mobile inside the exam room, otherwise I would have taken a photo and uploaded that here and didn't have to write all of this 😁
Preguntas de entrevista [2]
Pregunta 1
First round: these questions are incomplete, I am writing only the main logic here.
1) public static int x=5;
psvm() {
ClassName obj1 = new ClassName() ;
obj1.x=7;
ClassName obj2 = new ClassName() ;
obj2.x=9;
Sop(x);// write the output of the program. No mcq, you have to figure out the output.
2) boolean b = false;
if(b=true) {
Sop("Hello") ;
} //it was a question of this kind. Practice on if condition,
3) public class A {
protected void message() {
Sop("parent") ;
}
psvm() {
B b= new B() ;
b.message();
}
}
class B{
public void message() {
Sop("derived") ;
}
}
4) public static void main(String[] args) {
final StringBuffer a = new StringBuffer();
final StringBuffer b = new StringBuffer();
new Thread() {
public void run() {
System.out.print(a.append("A"));
synchronized (b) {
System.out.print(b.append("B"));
}
}
}.start();
new Thread() {
public void run() {
System.out.print(b.append("C"));
synchronized (a) {
System.out.print(a.append("D"));
}
}
}.start();
} // use break points to understand this program flow.
5) below program is about anonymous class
public class any{
Psvm() {
System.out.println(new inter1() {
public void returnString() {
System.out.println("inside anonymous class's method");
}
});
}
}
interface inter1{
}
6) psvm() {
String s1 = "Hello" ;
String s2 = s1;
s1 += "there" ;
Sop(s1+"" +s2+"" +(s1==s2)) ;
}
7) one question on increment and decrement. I don't remember it exactly but similar to this one:
int value =20;
int total = - - value;
Sop(++value + total++ +value++ + - - value) ;
8) a question on joining threads inside the main method (again not exact but similar) :
psvm() throws InterruptedException{
new Thread() {
public void run() {
Sop("Hello") ;
}
th.join();
}.start();
}
9) psvm() {
try{
int x=5/0;
} catch(Exception e) {
Sop(e) ;
} catch(ArithmeticException e1) {
Sop(e1) ;
}
}
10) two questions on sql:
1) print 3 minimum salary from a table. //just use LIMIT 3 and ORDER BY salary ASC;
2) two inter linked tables are given. Retrieve all the details also where the employees are Managers.(i don't remember it exactly but very similar 5o this one).
11) There were 10 or 12 aptitude questions on:
1) train (speed, length of the pole...)
2) work
3) probability (dice)
4) percentage( if 40% of the amount is 200 then what is 60% of that amount) - - - - > again I don't remember the numbers here but this is almost the exact except the numbers I mentioned here.
Second round (programming pen & paper test) :
1) again I don't remember this exactly but I want to give you the idea of the question:
In an inland there are white and black rats live. Both of these kind of rats have certain life span and it is as follows:
White rats,
At the end of the:
1) First year, white rats give birth to 2 rats
2) Second year, white rats give birth to 3 rats
3) Third year, it dies
Black rats,
At the end of the:
1) First year, black rats give birth to 3 rats
2) Second year, black rats die.
Design a way to calculate the difference of their population if positive number N is the year and positive integer K is the initial number of rats.
The output can be a large value so print it with the modulo of 10007.
--------------end of the question------
Thats it. I think I have given you the most exact question asked in this round( ~98% accurate) 😁.