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 whole number






2. Boolean not and or (lower preference)






3. a way to describe patterns in text






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






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






6. (regular expression)any digit






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






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






9. array method that removes last item from an array






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






11. a module of classes and or functions






12. a set of code within a class or object






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






14. method that sorts items alphabetically






15. a string method that uncapitalizes first character






16. comparison operator for "not equal to"






17. an array method that






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






19. a collection of objects with a defined order






20. less than or equal to (comparison operator)






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






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






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






24. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.






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






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






27. Boolean OR operator






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






29. a string method that uncapitalizes first character






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






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






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






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






34. comparison operator for "not equal to"






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






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






37. a collection of objects or values with associated keys






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






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






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






41. a string method that capitalizes first character






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






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






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






45. comparison operator for "equal to"






46. (regular expression)any non-whitespace character






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






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






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






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