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. returns ASCII value of x






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






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






4. defines a class variable. Can be used anywhere within a class






5. array method that removes last item from an array






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






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






8. conditionally stops a loop






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






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






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






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






13. array method that removes last item from an array






14. returns ASCII value of x






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






16. operator for "Boolean not"






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






18. a string method that removes last character






19. sets a text delimiter






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






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






22. a collection of objects with a defined order






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






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






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






26. using classes and objects to make real-world concepts in programming.






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






28. Boolean not and or (lower preference)






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






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






31. a set of code within a class or object






32. less than or equal to (comparison operator)






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






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






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






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






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






38. (regular expression)any nondigit






39. a string method that capitalizes first character






40. (regular expression)any nondigit






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






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






43. a collection of objects or values with associated keys






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






45. a string method that substituition. Requires 2 arguments.






46. an array method that






47. mixing expressions into strings






48. a single instance of a class.






49. (regular expression)any non-whitespace character






50. greater than or equal to (comparison operator)