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. less than or equal to (comparison operator)






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






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






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






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






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






7. an array method that






8. comparison operator for "not equal to"






9. a whole number






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






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






12. a collection of objects with a defined order






13. conditionally stops a loop






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






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






16. a string method that uncapitalizes first character






17. the remainder operator






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. a collection of objects or values with associated keys






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






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






23. the ternary operator if?then:else






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






25. method that sorts items alphabetically






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






27. a module of classes and or functions






28. a way to describe patterns in text






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






30. (regular expression)any digit






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






32. used in an expression to manipulate objects






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






34. using classes and objects to make real-world concepts in programming.






35. (regular expression)any nondigit






36. (regular expression)any nondigit






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






38. class inheritance operator.






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






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






41. returns ASCII value of x






42. greater than or equal to (comparison operator)






43. an array method that returns TRUE or FALSE if the array contains specified item






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






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






46. array method that removes last item from an array






47. a string method that capitalizes first character






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






49. assigns a key to a hash value






50. comparison operator for "not equal to"