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. an array method that






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






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






4. interpolation operator






5. (regular expression)any non-whitespace character






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






7. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.






8. (regular expression)any nondigit






9. tells you all methods that an object may invoke.






10. a string method that uncapitalizes first character






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






12. a set of code within a class or object






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






14. interpolation operator






15. a way to describe patterns in text






16. comparison operator for "not equal to"






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






18. pushes a new item onto the end of an array.






19. a string method that makes string all caps.






20. Boolean AND operator






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






22. a string method that reverses capitalization






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






24. string method that determines if a string ends with a defined string






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






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






27. sets a text delimiter






28. the ternary operator if?then:else






29. (regular expression)any nonletter or nondigit or nonunderscore.






30. the representation of data from a start to end point






31. (regular expression)any non-whitespace character






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






33. (regular expression)any nonletter or nondigit or nonunderscore.






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






35. defines array of multiple elements seperated by a space






36. array method that removes last item from an array






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






38. a string method that removes last character






39. operator for "Boolean not"






40. method to determine if an object is an even number






41. (regular expression)any digit






42. a collection of objects or values with associated keys






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






44. comparison operator for "equal to"






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






46. using classes and objects to make real-world concepts in programming.






47. a string method that scans object for arguments - uses regular expressions.






48. sets a single character text delimiter for multi-line strings






49. array method that selects particular items from an array






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