You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-23Lines changed: 22 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
Back-End Developer Interview Questions
2
2
======================================
3
3
4
-
I'm not a big fan of asking technical questions in job interviews: I'd rather prefer to sit together with candidates in front of some real code, facing a real problem, and have a full day of pair programming rotating with all the team members. Yet, some technical questions could be used to start a deep and nice conversation, and this can be useful to get a deeper knowledge of eachothers.
4
+
I'm not a big fan of asking technical questions in job interviews: I'd rather prefer to sit together with candidates in front of some real code, facing a real problem, and have a full day of pair programming rotating with all the team members. Yet, some technical questions could be used to start a deep and nice conversation, and this can be useful to get a deeper knowledge of each other.
5
5
6
6
This repo contains a number of backend interview questions that can be used when vetting potential candidates. It is by no means recommended to use every single question here on the same candidate (that would take hours). Choosing a few items from this list should help you vet the intended skills you require.
7
7
8
8
This project is admittedly inspired by [Front-end Job Interview Questions](https://github.com/darcyclarke/Front-end-Developer-Interview-Questions) by [@darcyclarke](https://github.com/darcyclarke)
9
9
10
-
**Note:** Keep in mind that many of these questions are open ended and could lead to interesting discussions that tell you more about the person's capabilities than a straight answer would. Again, I stress that just asking question is hardly sufficient. Complete the interview with a long pair programming session with your candidates: it is one of the best opportunities to know eachothers' style and approach and to let candidates know some details about their future dayjob.
10
+
**Note:** Keep in mind that many of these questions are open ended and could lead to interesting discussions that tell you more about the person's capabilities than a straight answer would. Again, I stress that just asking question is hardly sufficient. Complete the interview with a long pair programming session with your candidates: it is one of the best opportunities to know each other's style and approach and to let candidates know some details about their future day job.
11
11
12
12
13
13
## <aname='toc'>Table of Contents</a>
@@ -26,7 +26,7 @@ This project is admittedly inspired by [Front-end Job Interview Questions](https
26
26
1.[Questions about Software Lifecycle and Team Management](#management)
27
27
1.[Questions about logic and algorithms](#algorithms)
28
28
1.[Questions about Software Architecture](#architecture)
29
-
1.[Questions about Service Oriented Architecture and Microservics](#soa)
29
+
1.[Questions about Service Oriented Architecture and Microservices](#soa)
30
30
1.[Questions about Security](#security)
31
31
1.[Bill Gates Style Questions](#billgates)
32
32
1.[Questions based on snippets of code](#snippets)
@@ -43,7 +43,7 @@ This project is admittedly inspired by [Front-end Job Interview Questions](https
43
43
* What is a real-time system and how is it different from an ordinary system?
44
44
* What's the relationship between real-time languages and heap memory allocation?
45
45
* Immutability is the practice of setting values once, at the moment of their creation, and never changing them. How immutability can help writing safer code?
46
-
* Pro and cons of mutable and unmutable values.
46
+
* Pro and cons of mutable and immutable values.
47
47
* What's the Object-Relational impedence mismatch?
48
48
* Which principles would you apply to define the size of a cache?
49
49
* What's the difference between TCP and HTTP?
@@ -59,7 +59,7 @@ This project is admittedly inspired by [Front-end Job Interview Questions](https
59
59
* Say your Company gives you one week you can use to improve your and your colleagues' lifes: how would you use that week?
60
60
* What did you learn this week?
61
61
* There is an aesthetic element to all design. The question is, is this aesthetic element your friend or your enemy?
62
-
* List the last 5 books you read.
62
+
* List the last 5 books you read.
63
63
* How would you introduce Continue Delivery in a multi million waterfall shop?
64
64
* Let's have a conversation about "*Reinventing the wheel*", the "*Not Invented Here Syndrome*" and the "*Eating Your Own Food*" practice
65
65
* What's the next thing you would automate in your current workflow?
@@ -71,7 +71,7 @@ This project is admittedly inspired by [Front-end Job Interview Questions](https
71
71
* Defend the monolithic architecture.
72
72
* What does it mean to be a "Professional Developer"?
73
73
* Is developing software an art, a craftsmanship or an engineering endeavour? Your opinion.
74
-
* "People who like this also like... ". How would you implement this feature in an e-commerce shop?
74
+
* "People who like this also like... ". How would you implement this feature in an e-commerce shop?
75
75
* Why are corporations slower than startups in innovating?
76
76
77
77
@@ -110,9 +110,9 @@ This project is admittedly inspired by [Front-end Job Interview Questions](https
110
110
* Tell me the 3 worse defects of your preferred language
111
111
* Why is there a rising interest about Functional Programming?
112
112
* What is a closure, and what is useful for? What's in common between closures and classes?
113
-
* What are generics useful for?
114
-
* What are high-order functions? What are they useful for? Write one, in your preferred language.
115
-
* Write a loop, then transform it into a recursive function, avoiding mutability. Discuss.
113
+
* What are generics useful for?
114
+
* What are high-order functions? What are they useful for? Write one, in your preferred language.
115
+
* Write a loop, then transform it into a recursive function, avoiding mutability. Discuss.
116
116
* What does it mean when a language treats functions as first-class citizens?
117
117
* Show me an example where an Anonymous Function can be useful
118
118
* What is Dynamic Method Dispatch?
@@ -163,7 +163,7 @@ This project is admittedly inspired by [Front-end Job Interview Questions](https
163
163
####[[↑]](#toc) <aname='concurrency'>Questions about Concurrency:</a>
164
164
165
165
* Why do we need Concurrency, anyway? Explain.
166
-
* Why is testing multithreading / concurrent code so difficult?
166
+
* Why is testing multithreading / concurrent code so difficult?
167
167
* What is a Race Condition? Code an example, using whatever language you like.
168
168
* What is a Deadlock? Explain using code.
169
169
* What is Process Starvation?
@@ -175,10 +175,10 @@ This project is admittedly inspired by [Front-end Job Interview Questions](https
175
175
* In which case whould you apply asynchronously communication between two systems?
176
176
* What are the general pitfalls of Remote Procecure Call?
177
177
* If you are building a distributed system for scalability and robustness, what are the different things you'd think of in the case you are working in a closed and secure network environment or in geographically distributed and public system?
178
-
* How to manage Fault Tolerance in a Web application? And in a Desktop one?
178
+
* How to manage Fault Tolerance in a Web application? And in a Desktop one?
179
179
* How to deal with failures in Distributed Systems?
180
180
* Let's talk about the several approaches to Reconciliation after network partitions
181
-
* What are the Fallacies of Distributed Computing?
181
+
* What are the Fallacies of Distributed Computing?
182
182
* When would you use Request/Reply and when Publish/Subscribe?
183
183
184
184
@@ -195,18 +195,17 @@ This project is admittedly inspired by [Front-end Job Interview Questions](https
195
195
* Are Program Managers useful?
196
196
* Organize a development team using flexible schedules (that is, no imposed working hours) and "Take as you need" vacation policy
197
197
* How would you manage a very high turn over and convince developers not to leave the team, without increasing compensation?
198
-
* What are the top 3 qualities you look for in colleagues, beyond their code?
198
+
* What are the top 3 qualities you look for in colleagues, beyond their code?
199
199
* What are the top 3 things you wish non-technical people knew about code?
200
200
201
-
202
201
####[[↑]](#toc) <aname='algorithms'>Questions about logic and algorithms:</a>
203
202
204
203
* Make a FIFO Queue using only LIFO Stacks. Then build a LIFO Stack using only FIFO Queues.
205
-
* Write a snippet of code affected by a Stack Overflow
204
+
* Write a snippet of code affected by a Stack Overflow
206
205
* Write a tail-recursive version of the factorial function
207
206
* Using your preferred language, write a REPL that echoes your inputs. Evolve it to make it an RPN calculator.
208
207
* How would you design a "defragger" utility?
209
-
* Write a programs that builds random mazes.
208
+
* Write a program that builds random mazes.
210
209
* Write a sample code that produces a memory leak
211
210
* Generate a sequence of unique random numbers
212
211
* Write a simple Garbage collection system
@@ -225,7 +224,7 @@ This project is admittedly inspired by [Front-end Job Interview Questions](https
225
224
* Scale out vs scale up: how are they different? When to apply one, when the other?
226
225
* How to deal with failover and user sessions?
227
226
* What is CQRS (Command Query Responsibility Segregation)? How is it different from the oldest Command-Query Separation Principle?
228
-
* What is Three-Tier architecture?
227
+
* What is Three-Tier architecture?
229
228
* How would you design a software system for scalability?
230
229
* What are the strategies to deal with the C10k problem?
231
230
* How would you design a decentralized (that is, with no central server) P2P system?
@@ -247,7 +246,7 @@ This project is admittedly inspired by [Front-end Job Interview Questions](https
247
246
* Why, in a SOA, long-lived transactions are discorauged and Sagas are suggested instead?
248
247
* What are the differences between Soa and Microservices?
249
248
* Let's talk about web services versioning, version compatibility and breaking changes.
250
-
* What's the difference between a transaction and a compensation operation in a saga, in SOA?
249
+
* What's the difference between a transaction and a compensation operation in a saga, in SOA?
251
250
* When is a Microservice too micro?
252
251
* What are the pros and cons of MicroService architecture?
253
252
@@ -262,7 +261,7 @@ This project is admittedly inspired by [Front-end Job Interview Questions](https
262
261
* Interview me
263
262
* Why are Quora's answers better than Yahoo Answers' ones?
264
263
* Defend Cobol against modern languages
265
-
* Where will be you, in 10 years?
264
+
* Where will you be in 10 years?
266
265
* You are my boss and I'm fired. Inform me.
267
266
* I want to refactor a legacy system. You want to rewrite it from scratch. Argument. Then, switch our roles.
268
267
* Your boss asks you to lie to the Company. What's your reaction?
@@ -275,8 +274,8 @@ This project is admittedly inspired by [Front-end Job Interview Questions](https
275
274
functionhookupevents() {
276
275
for (var i =0; i <3; i++) {
277
276
document.getElementById("button"+ i)
278
-
.addEventListener("click", function() {
279
-
alert(i);
277
+
.addEventListener("click", function() {
278
+
alert(i);
280
279
});
281
280
}
282
281
}
@@ -306,7 +305,7 @@ public class Stack {
306
305
ensureCapacity();
307
306
elements[size++] = e;
308
307
}
309
-
308
+
310
309
publicObjectpop() {
311
310
if (size ==0)
312
311
thrownewEmptyStackException();
@@ -324,7 +323,7 @@ public class Stack {
324
323
}
325
324
```
326
325
327
-
*`if`s and in general conditional statements lead to procedural and imperative programming. Can you get rid of this `switch` and make this snippet more objetct oriented?
326
+
*`if`s and in general conditional statements lead to procedural and imperative programming. Can you get rid of this `switch` and make this snippet more object oriented?
0 commit comments