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. (regular expression)any nonletter or nondigit or nonunderscore.






2. a definition of a concept in an object oriented language.






3. a module of classes and or functions






4. assigns a key to a hash value






5. used in an expression to manipulate objects






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






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






8. (regular expression)any non-whitespace character






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






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






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






12. conditionally stops a loop






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






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






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






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






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






18. a single instance of a class.






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






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






21. a way to describe patterns in text






22. comparison operator for "not equal to"






23. a whole number






24. interpolation operator






25. Boolean AND operator






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






27. (regular expression)any nondigit






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






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






30. a string method that substitutes THE FIRST occurrence of a string within a string






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






32. comparison operator for "equal to"






33. mixing expressions into strings






34. a set of code within a class or object






35. defines array of multiple elements seperated by a space






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






37. returns ASCII value of x






38. a string method that reverses capitalization






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






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






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






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






43. interpolation operator






44. array method that removes last item from an array






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






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






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






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






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






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