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 special class that holds attributes and data but no methods.






2. returns ASCII value of x






3. an array method that






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






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






6. conditionally stops a loop






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






8. sets a text delimiter






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






10. comparison operator for "not equal to"






11. used in an expression to manipulate objects






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






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






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






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






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






17. (regular expression)any digit






18. a single instance of a class.






19. a string method that uncapitalizes first character






20. comparison operator for "not equal to"






21. mixing expressions into strings






22. interpolation operator






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






24. array method that removes last item from an array






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






26. a fixed value that begins with a capital letter such as Pi.






27. a collection of objects or values with associated keys






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






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






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






31. a string method that capitalizes first character






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






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






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






35. a set of code within a class or object






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






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






38. an array method that






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






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






41. returns ASCII value of x






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






43. (regular expression)any non-whitespace character






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






45. less than or equal to (comparison operator)






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






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






48. (regular expression)any nondigit






49. a string method that uncapitalizes first character






50. a string method that makes string all caps.