Test your basic knowledge |

Ruby Programming Vocab

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. string method that determines if a string ends with a defined string






2. tells ruby a value to pass while iterating a block of code






3. (regular expression)any nondigit






4. a string method that reverses capitalization






5. Boolean OR operator






6. assigns a key to a hash value






7. passes value into block of code and assigns it the label of "x"






8. a variable that lists the directories where Ruby will look for libraries






9. a regular method that is the anchor for the beggining of a line






10. (regular expression)any digit






11. array method that removes last item from an array






12. array method that selects particular items from an array






13. defines a class variable. Can be used anywhere within a class






14. passes value into block of code and assigns it the label of "x"






15. a string method that splits a string into an array






16. data passed to methods in parenthesis after a method's name.






17. (regular expression)any non-whitespace character






18. array method that transforms the contents of an array according to a specified set of rules






19. method that tells if an argument is within the limits of two numbers






20. a set of code within a class or object






21. class inheritance operator.






22. defines an instance variable which only exists within the object it was created in.






23. a collection of objects or values with associated keys






24. the process of deciding which sections of code to execute based on conditions






25. comparison operator for "not equal to"






26. allows for classes to relate to each other in a hierarchy






27. returns ASCII value of x






28. (regular expression)anchor for the end of a string






29. a whole number






30. method that tells an argument's place value within an array






31. (regular expression)any space or tab or newline or whitespace






32. (regular expression)any space or tab or newline or whitespace






33. a string method that makes string all caps.






34. greater than or equal to (comparison operator)






35. operator for "Boolean not"






36. a number with a decimal point such as 1.0 or 3.1






37. string method that "cleans" extra spaces from strings






38. a definition of a concept in an object oriented language.






39. the ternary operator if?then:else






40. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.






41. a module of classes and or functions






42. runs a proc that has been stored to a variable






43. a string method that removes last character






44. (regular expression)anchor for the start of a string






45. array method that removes last item from an array






46. a string method that substitutes ALL occurrences of a string with another.






47. a regular method that is the anchor for the end of a line






48. a string method that uncapitalizes first character






49. a fixed value that begins with a capital letter such as Pi.






50. method that tells an argument's place value within an array