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. method to determine if an object is an even number






2. (regular expression)any nondigit






3. a string method that uncapitalizes first character






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






5. a special array made from arguments that were added to the command line at start up.






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






7. array method that selects particular items from an array






8. class inheritance operator.






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






10. (regular expression)any digit






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






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






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






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






15. defines array of multiple elements seperated by a space






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






17. array method that removes last item from an array






18. (regular expression)any digit






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






20. used in an expression to manipulate objects






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






22. greater than or equal to (comparison operator)






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






24. (regular expression)any non-whitespace character






25. an array method that






26. the remainder operator






27. the ternary operator if?then:else






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






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






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






31. Boolean not and or (lower preference)






32. comparison operator for "not equal to"






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






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






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






36. returns ASCII value of x






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






38. 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






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






40. string method that determines if a string starts with a defined string






41. a string method that removes last character






42. assigns a key to a hash value






43. operator for "Boolean not"






44. a string method that makes string all caps.






45. comparison operator for "equal to"






46. a string method that removes last character






47. a string method that reverses capitalization






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






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






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