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. defines a class variable. Can be used anywhere within a class






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






3. a string method that changes last character to next alphabetical character






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






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






6. defines array of multiple elements seperated by a space






7. assigns a key to a hash value






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






9. a way to describe patterns in text






10. array method that removes last item from an array






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






12. the remainder operator






13. a collection of characters such as "Hello world!"






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






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






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






17. a string method that substituition. Requires 2 arguments.






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






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






20. Boolean AND operator






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






22. interpolation operator






23. method that sorts items alphabetically






24. a single instance of a class.






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






26. conditionally stops a loop






27. an array method that returns TRUE or FALSE if the array contains specified item






28. (regular expression)any nondigit






29. (regular expression)any nondigit






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






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






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






33. a string method that removes last character






34. a placeholder for a single object that may be a number or string or list or instance of a defined class






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






36. class inheritance operator.






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






38. array method that selects particular items from an array






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






40. a string method that capitalizes first character






41. an array method that






42. a string method that uncapitalizes first character






43. a section of code with no discrete name which is not a method by itself that can be called upon and can receive an argument.






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






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






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






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






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






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






50. a string method that capitalizes first character