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 removes last character






2. array assignment oprator






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






4. a whole number






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






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






7. a special class that holds attributes and data but no methods.






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






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






10. interpolation operator






11. a set of code within a class or object






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






13. an array method that






14. returns ASCII value of x






15. sets a text delimiter






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






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






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






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






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






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






22. a string method that makes string all caps.






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






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






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






26. returns ASCII value of x






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






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






29. a string method that capitalizes first character






30. (regular expression)any nondigit






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






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






33. a module of classes and or functions






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






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






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






37. used in an expression to manipulate objects






38. operator for "Boolean not"






39. greater than or equal to (comparison operator)






40. a string method that uncapitalizes first character






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






42. (regular expression)any digit






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






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






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






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






47. a string method that capitalizes first character






48. conditionally stops a loop






49. a string method that removes last character






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