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. tells you all methods that an object may invoke.






2. array assignment oprator






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






4. method that sorts items alphabetically






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






6. a way to describe patterns in text






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






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






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






10. Boolean AND operator






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






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






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






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






15. a string method that capitalizes first character






16. a set of code within a class or object






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






18. defines array of multiple elements seperated by a space






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






20. assigns a key to a hash value






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






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






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






24. a string method that removes last character






25. a string method that reverses capitalization






26. (regular expression)any non-whitespace character






27. the remainder operator






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






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






30. (regular expression)any digit






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






32. methods that step through lists element by element (like each or upto or times etc)






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






34. a single instance of a class.






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






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






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






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






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






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






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






42. used in an expression to manipulate objects






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






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






45. a module of classes and or functions






46. returns ASCII value of x






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






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






49. a fixed value that begins with a capital letter such as Pi.






50. (regular expression)any nondigit