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. array method that selects particular items from an array






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






3. a set of code within a class or object






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






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






6. array method that removes last item from an array






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






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






9. mixing expressions into strings






10. a string method that uncapitalizes first character






11. returns ASCII value of x






12. a module of classes and or functions






13. assigns a key to a hash value






14. a string method that removes last character






15. Boolean not and or (lower preference)






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






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






18. an array method that






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






20. (regular expression)any digit






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






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






23. a string method that capitalizes first character






24. Boolean AND operator






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






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






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






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






29. (regular expression)any non-whitespace character






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






31. a string method that makes string all caps.






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






33. comparison operator for "not equal to"






34. conditionally stops a loop






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






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






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






38. a string method that removes last character






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






40. (regular expression)any nondigit






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






42. defines array of multiple elements seperated by a space






43. method that sorts items alphabetically






44. string method that determines if a string ends with a defined string






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






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






47. operator for "Boolean not"






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






49. comparison operator for "not equal to"






50. (regular expression)any non-whitespace character