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 reverses capitalization






2. mixing expressions into strings






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






4. a string method that uncapitalizes first character






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






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






7. a string method that removes last character






8. a whole number






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






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






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






12. a placeholder for a single object that may be a number or string or list or instance of a defined class






13. an array method that






14. comparison operator for "not equal to"






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






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






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






18. a module of classes and or functions






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






20. (regular expression)any digit






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






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






23. method that sorts items alphabetically






24. array method that selects particular items from an array






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






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






27. assigns a key to a hash value






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






29. a set of code within a class or object






30. a string method that removes last character






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






32. a string method that makes string all caps.






33. (regular expression)any digit






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






35. array assignment oprator






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






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






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






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






40. array method that removes last item from an array






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






42. used in an expression to manipulate objects






43. returns ASCII value of x






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






45. an array method that






46. (regular expression)any non-whitespace character






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






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






49. conditionally stops a loop






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