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 number with a decimal point such as 1.0 or 3.1






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






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






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






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






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






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






8. (regular expression)any nondigit






9. a section of code with no discrete name which is not a method by itself that can be called upon and can receive an argument.






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






11. a string method that reverses capitalization






12. (regular expression)any nondigit






13. sets a text delimiter






14. returns ASCII value of x






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






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






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






18. a module of classes and or functions






19. (regular expression)any non-whitespace character






20. a single instance of a class.






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






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






23. a string method that removes last character






24. conditionally stops a loop






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






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






27. a variable that lists the directories where Ruby will look for libraries






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






29. a set of code within a class or object






30. a collection of objects with a defined order






31. class inheritance operator.






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






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






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






35. array method that removes last item from an array






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






37. operator for "Boolean not"






38. greater than or equal to (comparison operator)






39. mixing expressions into strings






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






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






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






43. array method that selects particular items from an array






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






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






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






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






48. (regular expression)any non-whitespace character






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






50. comparison operator for "not equal to"