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 changes last character to next alphabetical character






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






3. operator for "Boolean not"






4. interpolation operator






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






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






7. class inheritance operator.






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






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






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






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






12. array method that removes last item from an array






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






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






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






16. a module of classes and or functions






17. a definition of a concept in an object oriented language.






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






19. defines array of multiple elements seperated by a space






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






21. a string method that removes last character






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






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






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






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






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






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






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






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






30. the remainder operator






31. a set of code within a class or object






32. Boolean OR operator






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






34. a way to describe patterns in text






35. interpolation operator






36. comparison operator for "not equal to"






37. operator for "Boolean not"






38. array method that removes last item from an array






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






40. a collection of objects or values with associated keys






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






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






43. Boolean AND operator






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






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






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






47. a whole number






48. method that sorts items alphabetically






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






50. sets a text delimiter