Skip to content

Instantly share code, notes, and snippets.

@choudeshell
Last active August 29, 2015 14:06
Show Gist options
  • Save choudeshell/0c841be2a4c3ff651544 to your computer and use it in GitHub Desktop.
Save choudeshell/0c841be2a4c3ff651544 to your computer and use it in GitHub Desktop.

EnergyCAP Dev

##Dev Questions

  1. Describe a few design patterns (besides factory or singleton).
  2. Explain Inversion of Control and dependency injection.
  3. Why are interfaces important?
  4. Why are coding standards/conventions important?
  5. How do YOU refactor code?
  6. Explain Single Responsibility Principle and why it is important?
  7. What is the biggest mistake you have ever made coding?
  8. How does Mercurial differ from Subversion?
  9. Explain use of mocks/stubs in unit testing?
  10. What is a lambda function/closure?
  11. What are the main parts of a HTTP request?
  12. What is a stack?
  13. What is a queue?
  14. What is a list?
  15. What is a tree?
  16. What is (connection/object) pooling?
  17. Given two arrays of INTEGERS, a[]=[1,2,3,4,5] and b[]=[2,3,1,0,5]: How would you find which number is not present in the second array? How would you find the largest number of both arrays? How would you combine both arrays?
  18. What is the JVM? How is it used? (Java)
  19. What is over-riding? Over-loading? (Java)
  20. How does an abstract class differ from an interface? (Java)
  21. What are you favorite language features of Java, C#?
  22. What is a pointer?

Explain how the following snippet of code works(JavaScript):

function f (x) {
    return function (y) {
        return x + y;
    };
}
var a = f(5);
var b = a(3);
alert(b); 

What is the value of 'b'?

Some languages cache integers (example below), why do you think they do this?

Integer a = 1000, b = 1000;  
System.out.println(a == b); // false  
Integer c = 100, d = 100;  
System.out.println(c == d); // true

What are other types that could be useful to cache?

##DB Questions

  1. Explain CAP theorem.
  2. How does a RDBMS differ from NOSQL/document store?
  3. How would you explain the concept of a database and a schema to HR?
  4. Explain different join clauses: right, left, full, cross.
  5. Explain an index and its purpose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment