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. data passed to methods in parenthesis after a method's name.






2. defines array of multiple elements seperated by a space






3. a collection of objects with a defined order






4. greater than or equal to (comparison operator)






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






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






7. a string method that removes last character






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






9. (regular expression)any non-whitespace character






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






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






12. method that sorts items alphabetically






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






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






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






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






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






18. operator for "Boolean not"






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






20. interpolation operator






21. Boolean not and or (lower preference)






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






23. a string method that makes string all caps.






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






25. comparison operator for "not equal to"






26. interpolation operator






27. the ternary operator if?then:else






28. a number with a decimal point such as 1.0 or 3.1






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






30. the remainder operator






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






32. a single instance of a class.






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






34. a module of classes and or functions






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






36. a string method that capitalizes first character






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






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






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






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






41. (regular expression)any nondigit






42. array method that selects particular items from an array






43. an array method that






44. operator for "Boolean not"






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






46. a whole number






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






48. less than or equal to (comparison operator)






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






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