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. a special class that holds attributes and data but no methods.






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






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






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






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






6. (regular expression)any nondigit






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






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






9. returns ASCII value of x






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






11. array method that removes last item from an array






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






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






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






15. an array method that






16. the ternary operator if?then:else






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






18. interpolation operator






19. a way to describe patterns in text






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






21. Boolean AND operator






22. operator for "Boolean not"






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






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






25. interpolation operator






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






27. returns ASCII value of x






28. symbol for a global variable which can be called from anywhere in an application.






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






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






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






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






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






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






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






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






37. array method that selects particular items from an array






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






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






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






41. an array method that






42. a string method that makes string all caps.






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






44. assigns a key to a hash value






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






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






47. a string method (with /REGEX/ and starting_point separated by comma) that outputs the first string matching the defined regular expression from an optionally defined starting point






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






49. a collection of objects or values with associated keys






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