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






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






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






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






6. a string method that reverses capitalization






7. a whole number






8. interpolation operator






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






10. array method that removes last item from an array






11. a string method that uncapitalizes first character






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






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






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






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






16. a way to describe patterns in text






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






18. (regular expression)any nondigit






19. tells ruby a value to pass while iterating a block of code






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






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






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






23. returns ASCII value of x






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






25. used in an expression to manipulate objects






26. a single instance of a class.






27. Boolean not and or (lower preference)






28. a string method that uncapitalizes first character






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






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






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






32. conditionally stops a loop






33. a string method that removes last character






34. sets a text delimiter






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






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






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






38. operator for "Boolean not"






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






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






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






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






43. an array method that






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






45. (regular expression)any digit






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






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






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






49. string method that "cleans" extra spaces from strings






50. variable that can be used only where it is defined within an application