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 (with /REGEX/ and starting_point separated by comma) that outputs the first string matching the defined regular expression from an optionally defined starting point






2. a string method that makes string all caps.






3. the remainder operator






4. a collection of objects or values with associated keys






5. a set of code within a class or object






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






7. comparison operator for "not equal to"






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






9. array method that selects particular items from an array






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






11. an array method that






12. assigns a key to a hash value






13. a string method that uncapitalizes first character






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






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






16. conditionally stops a loop






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






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






19. a string method that removes last character






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






21. defines array of multiple elements seperated by a space






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






23. array method that removes last item from an array






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






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






26. operator for "Boolean not"






27. operator for "Boolean not"






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






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






30. a string method that uncapitalizes first character






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






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






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






34. sets a text delimiter






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






36. array assignment oprator






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






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






39. a placeholder for a single object that may be a number or string or list or instance of a defined class






40. interpolation operator






41. (regular expression)any non-whitespace character






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






43. a module of classes and or functions






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






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






46. greater than or equal to (comparison operator)






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






48. a string method that reverses capitalization






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






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