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 scans object for arguments - uses regular expressions.






2. (regular expression)any nondigit






3. greater than or equal to (comparison operator)






4. a set of code within a class or object






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






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






7. a string method that capitalizes first character






8. less than or equal to (comparison operator)






9. operator for "Boolean not"






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






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






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






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






14. (regular expression)any digit






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






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






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






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






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






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






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






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






23. array method that selects particular items from an array






24. Boolean not and or (lower preference)






25. conditionally stops a loop






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






27. a whole number






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






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






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






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






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






33. a string method that makes string all caps.






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






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






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






37. a string method that uncapitalizes first character






38. a way to describe patterns in text






39. comparison operator for "not equal to"






40. a string method that reverses capitalization






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






42. returns ASCII value of x






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






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






45. defines array of multiple elements seperated by a space






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






47. a string method that removes last character






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






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






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