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 substitutes THE FIRST occurrence of a string within a string






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






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






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






5. a string method that reverses capitalization






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






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






8. the representation of data from a start to end point






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






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






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






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






13. array method that removes last item from an array






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






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






16. Boolean OR operator






17. Boolean not and or (lower preference)






18. array assignment oprator






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






20. the remainder operator






21. a string method that makes string all caps.






22. comparison operator for "not equal to"






23. defines array of multiple elements seperated by a space






24. interpolation operator






25. comparison operator for "not equal to"






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






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






28. a string method that capitalizes first character






29. sets a text delimiter






30. (regular expression)any nondigit






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






32. a string method that removes last character






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






34. greater than or equal to (comparison operator)






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






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






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






38. a way to describe patterns in text






39. operator for "Boolean not"






40. a collection of objects with a defined order






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






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






43. a set of code within a class or object






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






45. returns ASCII value of x






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






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






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






49. a variable that lists the directories where Ruby will look for libraries






50. a single instance of a class.