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 string method that capitalizes first character






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






3. array method that removes last item from an array






4. a string method that removes last character






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






6. a set of code within a class or object






7. a string method that makes string all caps.






8. a string method that removes last character






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






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






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






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






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






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






15. a string method that uncapitalizes first character






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






17. the remainder operator






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






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






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






21. the representation of data from a start to end point






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






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






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






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






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






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






28. interpolation operator






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






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






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






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






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






34. Boolean not and or (lower preference)






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






36. operator for "Boolean not"






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






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






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






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






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






42. comparison operator for "equal to"






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






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






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






46. an array method that






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






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






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






50. (regular expression)any digit