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 section of code with no discrete name which is not a method by itself that can be called upon and can receive an argument.






2. a way to describe patterns in text






3. Boolean OR operator






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






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






6. (regular expression)any digit






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






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






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






10. a collection of objects or values with associated keys






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






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






13. used in an expression to manipulate objects






14. Boolean not and or (lower preference)






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






16. symbol for a global variable which can be called from anywhere in an application.






17. comparison operator for "not equal to"






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






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






20. string method that "cleans" extra spaces from strings






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






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






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






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






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






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






27. sets a text delimiter






28. an array method that






29. (regular expression)any non-whitespace character






30. a string method that reverses capitalization






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






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






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






34. (regular expression)any non-whitespace character






35. defines array of multiple elements seperated by a space






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






37. returns ASCII value of x






38. (regular expression)any nondigit






39. a string method that uncapitalizes first character






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






41. greater than or equal to (comparison operator)






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






43. the remainder operator






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






45. array method that removes last item from an array






46. variable that can be used only where it is defined within an application






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






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






49. the ternary operator if?then:else






50. class inheritance operator.