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 module that works everywhere within ruby without being refereed to. Contains many common ruby methods.






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






3. defines array of multiple elements seperated by a space






4. interpolation operator






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






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






7. comparison operator for "not equal to"






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






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






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






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






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






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






14. (regular expression)any nondigit






15. an array method that






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






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






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






19. (regular expression)any digit






20. (regular expression)any digit






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






22. Boolean not and or (lower preference)






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






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






25. a string method that reverses capitalization






26. the ternary operator if?then:else






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






28. a set of code within a class or object






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






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






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






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






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






34. a string method that removes last character






35. array assignment oprator






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






37. a single instance of a class.






38. a string method that uncapitalizes first character






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






40. method that sorts items alphabetically






41. conditionally stops a loop






42. comparison operator for "not equal to"






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






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






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






46. a string method that capitalizes first character






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






48. (regular expression)any non-whitespace character






49. sets a text delimiter






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