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. (regular expression)any nondigit






2. a way to describe patterns in text






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






4. comparison operator for "not equal to"






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






6. interpolation operator






7. conditionally stops a loop






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






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






10. less than or equal to (comparison operator)






11. an array method that






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






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






14. (regular expression)any digit






15. array method that removes last item from an array






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






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






18. method that sorts items alphabetically






19. operator for "Boolean not"






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






21. a string method that capitalizes first character






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






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






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






25. (regular expression)any non-whitespace character






26. the ternary operator if?then:else






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






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






29. assigns a key to a hash value






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






31. Boolean AND operator






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






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






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






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






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






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






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






39. class inheritance operator.






40. array assignment oprator






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






42. defines array of multiple elements seperated by a space






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






44. operator for "Boolean not"






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






46. a string method that reverses capitalization






47. (regular expression)any letter or digit or underscore






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






49. a string method that uncapitalizes first character






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