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. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.






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






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






4. (regular expression)any nondigit






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






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






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






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






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






10. comparison operator for "not equal to"






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






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






13. methods that step through lists element by element (like each or upto or times etc)






14. an array method that






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






16. array method that selects particular items from an array






17. the ternary operator if?then:else






18. Boolean OR operator






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






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






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






22. (regular expression)any nondigit






23. (regular expression)any non-whitespace character






24. a special class that holds attributes and data but no methods.






25. array method that removes last item from an array






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






27. greater than or equal to (comparison operator)






28. (regular expression)any digit






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






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






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






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






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






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






35. a string method that uncapitalizes first character






36. a string method that reverses capitalization






37. class inheritance operator.






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






39. returns ASCII value of x






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






41. the process of deciding which sections of code to execute based on conditions






42. a string method that removes last character






43. a string method that capitalizes first character






44. a collection of objects with a defined order






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






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






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






48. interpolation operator






49. variable that can be used only where it is defined within an application






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