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. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.






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






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






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






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






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






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






8. conditionally stops a loop






9. a collection of objects with a defined order






10. used in an expression to manipulate objects






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






12. methods that step through lists element by element (like each or upto or times etc)






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






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






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






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






17. sets a text delimiter






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






19. less than or equal to (comparison operator)






20. the ternary operator if?then:else






21. (regular expression)any digit






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






23. method that sorts items alphabetically






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






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






26. interpolation operator






27. a way to describe patterns in text






28. Boolean not and or (lower preference)






29. returns ASCII value of x






30. a single instance of a class.






31. the remainder operator






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






33. a string method that removes last character






34. (regular expression)any digit






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






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






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






38. defines array of multiple elements seperated by a space






39. (regular expression)any non-whitespace character






40. an array method that






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






42. interpolation operator






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






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






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






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






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






48. a string method that removes last character






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






50. array method that removes last item from an array