Software developer Interview Questions in Barcelona, Spain | Glassdoor.co.in

# Software developer Interview Questions in Barcelona, Spain

480

software developer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

### Software Engineer at Skyscanner was asked...

31 Oct 2015
 Write function to calculate sum of first N powers of 2 starting from 1. You shouldn't use any built-in function for calculating power. Implement the most efficient solution.4 Answers//This method takes O(nLog(n)) private static int sum(int n) { int sum=0; for(int i=1;i<=n;i++) { sum += power(i, 2); } return sum; } private static int power(int base, int exp) { if(exp==0) return 1; int temp = power(base, exp / 2); if(exp%2==0) return temp * temp; else return base * temp * temp; }You can do this with bitwise operations. The way to come to the solution is by making a table of the calculations in binary. N Sum Sum(bin) 1 2 10 2 6 110 3 14 1110 The progression becomes apparent and then you just need to figure out a way of getting that number with bitwise operations. ((1 Gives 1 followed by N zeros ((1 Makes the above into 1s (minus one spot) ((1 Adds a zero at the end by moving everything one step to the leftYou can do this with bitwise operations. The way to come to the solution is by making a table of the calculations in binary. N Sum Sum(bin) 1 2 10 2 6 110 3 14 1110 The progression becomes apparent and then you just need to figure out a way of getting that number with bitwise operations. `((1 Gives 1 followed by N zeros `((1 Makes the above into 1s (minus one spot) `((1 Adds a zero at the end by moving everything one step to the leftShow more responses2^1 + 2^2 + 2^3 + ... + 2^n = 2^(n+1) - 2 thus int sum(int n) { return (1<<(n+1)) - 2; }

### Software Engineer at New Relic was asked...

13 Sep 2017
 Do you like to break interview processes for companies by posting them in glassdoor?3 AnswersNo. :DJust shut up and provide an answer. This doesn't "break" the process. It could help someone who just does poorly on interviews but is a qualified candidate. People like you are the worse kind of people in techIt also helps a unqualified candidate to pass the interview.

### Javascript Developer at eDreams ODIGEO was asked...

18 Jan 2017
 Irrelevant. Definitely, they were out of my scope (I've never worked with javascript in that way). Anyway, before you start the test they make you check you accept their Code of Honour. They don't have honour. Since the beginning, the recruiter saw me very interested. After the test, I asked for the solution, or what they were expecting to see, and I ended up copying the questions (I broke their code of Honour, because you are not allowed to do that) because she didn't even bother on replying me any more, and if they didn't want me to get the solutions, don't worry, I will get them myself ;)2 AnswersDoesn't matter, if codify does not pass your test, you are out, and with no explanationDo you have the questions?

### Web Developer at Glovo was asked...

11 May 2017
 "Imagine its your first week in the company and I ask you to do a presentation of your choice in front of your colleagues, what would it be about?"2 AnswersMy Chioce will be service renderFirst I will tell them I understand map very well. According to my friends exsplanation I am equal to the task I think is a job I can do I am good in rideing bicycle and I am also very smart my customers will not get delay of their order

### Sales & Marketing Graduate Programmer at RB was asked...

20 Apr 2018
 With which RB value do you identify the most? Can you give an example of when you showed this value? 2 AnswersRB values: responsibility, results, ownership, entrepreneurship, team workSales marketing job

### Senior Software Engineer In Test at Typeform was asked...

2 Jul 2018
 Code a FizzBuzzRazz test. If it's divisible by 3 print "Fizz" if it's divisible by 5 print "Buzz" if it's divisible by 7 print "Razz" if it's divisible by 3 and 5 print "FizzBuzz" if it's divisible by 3 and 7 print "FizzRazz" if it's divisible by 5 and 7 print "BuzzRazz" 2 AnswersSame as FizzBuzz but if it's divisible by 7 and 5 and 3 print FizzBuzzRazz. You'll have to concatenate strings. public static String fizzBuzzRazz(int number) { String result = ""; if (number % 3 == 0) { result +="Fizz"; } if (number % 5 == 0) { result += "Buzz"; } if (number % 7 == 0) { result += "Razz"; } return result.isEmpty() ? String.valueOf(number) : result; }const FIZZ = 'Fizz'; const BUZZ = 'Buzz'; const RAZZ = 'Razz'; const fizzBuzzRazz(number) { if (number % 3 == 105) { return `\${FIZZ}\${BUZZ}\${RAZZ}`; } else if (number % 15 == 0) { return `\${FIZZ}\${BUZZ}`; } else if (number % 21 == 0) { return `\${FIZZ}\${RAZZ}`; } else if (number % 35 == 0) { return `\${BUZZ}\${RAZZ}`; } else if (number % 7 == 0) { return RAZZ; } else if (number % 3 == 0) { return FIZZ; } else if (number % 5 == 0) { return BUZZ; } return number; }

### Software Engineer at umantis was asked...

22 Jul 2016
 If you would have 1 million Euros, what car would you buy, if you can only spend this money on cars?1 AnswerNone, since I do not have a driving license.

### Mobile Developer at Wallapop was asked...

4 May 2018
 Asked me to create an application1 AnswerWasted a whole week of my life

### Intern Developer at T-Systems was asked...

17 Sep 2020
 En el currículo especificas que tienes un nivel medio de ingles...1 AnswerBreve conversación en Ingles para demostrar la experiencia

### Frontend Developer at Stayforlong was asked...

29 Jan 2020
 ¿Qué te motiva para cambiar de trabajo?1 Answer¿Qué opinas sobre la política de empresa que tenemos en Stayforlong?
110 of 480 Interview Questions