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 definition of a concept in an object oriented language.






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






3. a string method that removes last character






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






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






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






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






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






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






10. sets a text delimiter






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






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






13. a collection of objects or values with associated keys






14. a string method that uncapitalizes first character






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






16. (regular expression)any nondigit






17. class inheritance operator.






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






19. a string method that makes string all caps.






20. a way to describe patterns in text






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






22. method that sorts items alphabetically






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






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






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






26. comparison operator for "not equal to"






27. returns ASCII value of x






28. a string method that removes last character






29. interpolation operator






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






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






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






33. assigns a key to a hash value






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






35. (regular expression)any non-whitespace character






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






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






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






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






40. a string method that substitutes THE FIRST occurrence of a string within a string






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






42. greater than or equal to (comparison operator)






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






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






45. (regular expression)any digit






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






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






48. Boolean not and or (lower preference)






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






50. conditionally stops a loop