Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
100 practice technical interview questions for junior developers.
Justin Kestler: 37 24 32 62 46 68 57
Masha Rikhter: 50 5 27 56 46 37 49
Erin Lee: 55 9 43 15 58 21 25
Ana Becker: 56 37 46 21 39 69 65
John Ferguson: 67 32 12 60 22 67 26
Dave Liu: 25 55 3 54 51 48 28
Tim Hunter: 55 61 12 21 28 48 25
Tyler Davis: 68 17 49 68 36 70 26
Rahul Seshan: 45 64 2 71 0 52 6
Ei-lene Heng: 6 61 2 27 7 3 21
Cho Kim: 43 27 55 20 28 72 59
Dan Gantz: 41 47 26 17 2 5 50
Jesse La Russo: 50 12 72 41 60 51 60
Eric Lacutone: 11 69 59 45 33 3 14
Eugene Wang: 38 46 19 60 12 44 66
Alex Gorski: 60 61 24 9 9 66 39
Laura Brown: 6 30 0 3 48 2 67
Harrison Wang: 65 47 61 39 69 13 58
Anthony Winjen: 1 29 20 18 22 3 33
Jane Vora: 24 28 42 8 42 66 20
Crystal Chang: 53 40 64 59 25 34 12
Christina Chang: 29 62 20 16 51 8 5
Danny Olisinky: 66 27 6 69 21 22 25
Wallis Tsai: 22 32 60 62 66 25 23
Andrew Callahan: 13 34 38 61 54 9 21
Rahul Seshan: 6 12 14 17 68 67 55
Yanik Jayaram: 44 55 10 2 34 37 30
Victora Friedman: 63 28 43 32 71 55 70
  1. Given a circular list of integers (when you reach the end of the list you come back to the beginning), what is the most efficient algorithm to find the smallest integer in the list?

For example: circular_list = [22, 52, 66, 82, 5, 8, 12, 19]

  1. Write a function that takes an integer and returns the smallest number that is greater than the given number which is apalendrome.

For example, if the input was 111 the next palindromic number would be 121.

  1. The least common multiple of a set of integers is the smallest positive integer that is a multiple of all of the integers in the set.

Write a function that takes an array of integers and efficiently calculates and returns the LCM.

  1. Explain the difference between a symbol and a string.

  2. What is the purpose of yield

  3. What is a Range?

  4. What is the difference between ‘&&’, ‘and’ and ‘&’ operators?

  5. What is a module?

  6. How can you define a custom Exception?

  7. What do controllers do in Rails?

  8. What is RESTful routing?

  9. What is the purpose of a layout?

  10. What is Rake?

  11. What is Capistrano?

  12. How do you create a has many through relationship?

  13. What is fields_for used for?

  14. What is interpolation?

  15. Reverse the string "question" in place.

  16. Explain the difference between class and instance variables

  17. What is a mixin? What is the difference compared with classical inheritance?

  18. Write a method that turns the string "Hi my name is Bob" into "iH ym eman si boB"

  19. Explain "convention over configuration."

  20. What is ORM?

  21. What is a session?

  22. What is a namespace?

  23. What’s the difference between authorization and authentication?

  24. Explain this ruby idiom: y ||= z

  25. What does self mean?

  26. Give me an example of recursion.

  27. How do redirect and render differ?

  28. Explain what ‘has_many’ is and what happens when it is run.

  29. What’s the difference between PUT and POST?

  30. Explain why in ruby nil.object_id is equal to 4.

  31. How would I revert to a previous commit?

  32. What are different types of joins in SQL?

  33. What data structures are you familiar with?

  34. Name every data type.

  35. What’s a foreign key?

  36. When do validations get called?

  37. What is eager loading?

  38. What’s a partial? What’s it for, how many can you have?

  39. What is HTTP?

  40. Explain the asset pipeline.

  41. How does false differ from nil?

  42. What is Git and why would you use it?

  43. What is a migration?

  44. Explain the Rails request cycle.

  45. Given 1GB of memory, and a billion phone numbers; how do you sort them?

  46. Say you had an app with users. How would you let them have followers?

  47. What is the default Rails server? What are some others.

  48. What is the difference between a lambda, a block and a proc?

  1. What are undefined and undeclared variables?

  2. What is a closure, and how/why would you use one?

  3. What's a typical use case for anonymous functions?

  4. Can you explain how inheritance works in JavaScript?

  5. When would you use document.write()?

  6. Explain AJAX in as much detail as possible

  7. Explain how JSONP works (and how it's not really AJAX)

  8. Describe event bubbling.

  9. What's the difference between an "attribute" and a "property"?

  10. Difference between document load event and document ready event?

  11. What is the difference between == and ===?

  12. Explain how you would get a query string parameter from the browser window's URL.

  13. Explain the same-origin policy with regards to JavaScript.

  14. Explain event delegation.

  1. What's a doctype?

  2. Whats a css reset and what does it do?

  3. Name some HTML5 elements

  4. What is a css clearfix and how do you implement it?

  5. Name some of the different ways to specify font-size in css.

  6. How do you select the 3rd list-element in an unordered list with css?

  7. What are data-attributes good for?

  8. Describe the difference between cookies, sessionStorage and localStorage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.