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 string method that capitalizes first character






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






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






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






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






6. defines array of multiple elements seperated by a space






7. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.






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






9. (regular expression)any non-whitespace character






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






11. array method that selects particular items from an array






12. an array method that






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






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






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






16. (regular expression)any nondigit






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






18. array assignment oprator






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






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






21. interpolation operator






22. a collection of objects or values with associated keys






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






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






25. comparison operator for "not equal to"






26. array method that removes last item from an array






27. Boolean not and or (lower preference)






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






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






30. pushes a new item onto the end of an array.






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






32. a way to describe patterns in text






33. a string method that makes string all caps.






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






35. sets a text delimiter






36. array method that removes last item from an array






37. a string method that capitalizes first character






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






39. (regular expression)any digit






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






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






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






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






44. operator for "Boolean not"






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






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






47. interpolation operator






48. comparison operator for "not equal to"






49. (regular expression)any non-whitespace character






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