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 substituition. Requires 2 arguments.






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






3. an array method that






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






5. array method that selects particular items from an array






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






7. defines array of multiple elements seperated by a space






8. (regular expression)any non-whitespace character






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






10. comparison operator for "not equal to"






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






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






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






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






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






16. array method that removes last item from an array






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






18. the ternary operator if?then:else






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






20. a string method that uncapitalizes first character






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






22. a string method that makes string all caps.






23. comparison operator for "equal to"






24. interpolation operator






25. a set of code within a class or object






26. assigns a key to a hash value






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






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






29. comparison operator for "not equal to"






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






31. a string method that capitalizes first character






32. a single instance of a class.






33. (regular expression)any non-whitespace character






34. conditionally stops a loop






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






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






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






38. a string method that capitalizes first character






39. a way to describe patterns in text






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






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






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






43. Boolean not and or (lower preference)






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






45. mixing expressions into strings






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






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






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






49. a collection of objects or values with associated keys






50. a string method that removes last character