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. (regular expression)any letter or digit or underscore






2. a collection of objects or values with associated keys






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






4. a whole number






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






6. (regular expression)any non-whitespace character






7. a string method that makes string all caps.






8. a string method that removes last character






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






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






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






12. a string method that uncapitalizes first character






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






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






15. (regular expression)any digit






16. sets a text delimiter






17. interpolation operator






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






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






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






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






22. a set of code within a class or object






23. Boolean OR operator






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






25. a single instance of a class.






26. a way to describe patterns in text






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






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






29. array assignment oprator






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






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






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






33. method that sorts items alphabetically






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






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






36. comparison operator for "equal to"






37. an array method that






38. a string method that uncapitalizes first character






39. assigns a key to a hash value






40. the representation of data from a start to end point






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






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






43. array method that removes last item from an array






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






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






46. a string method that removes last character






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






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






49. (regular expression)any non-whitespace character






50. using classes and objects to make real-world concepts in programming.