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. method that tells an argument's place value within an array






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






3. Boolean not and or (lower preference)






4. the ternary operator if?then:else






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






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






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






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






9. a way to describe patterns in text






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






11. method that sorts items alphabetically






12. array method that selects particular items from an array






13. symbol for a global variable which can be called from anywhere in an application.






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 regular method that is the anchor for the beggining of a line






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






17. array assignment oprator






18. an array method that






19. returns ASCII value of x






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






21. interpolation operator






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






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






24. the remainder operator






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






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






27. (regular expression)any digit






28. Boolean AND operator






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






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






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






32. a single instance of a class.






33. less than or equal to (comparison operator)






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






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






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






37. a collection of objects with a defined order






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






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






40. operator for "Boolean not"






41. defines array of multiple elements seperated by a space






42. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.






43. a string method that removes last character






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






45. Boolean OR operator






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






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






48. a string method that makes string all caps.






49. a string method that reverses capitalization






50. operator for "Boolean not"