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. class inheritance operator.






3. method that sorts items alphabetically






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






5. a collection of objects with a defined order






6. a string method that capitalizes first character






7. defines array of multiple elements seperated by a space






8. interpolation operator






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






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






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






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






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






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






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






16. array method that removes last item from an array






17. used in an expression to manipulate objects






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






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






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






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






22. a string method that reverses capitalization






23. the remainder operator






24. a string method that removes last character






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






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






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






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






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






30. a way to describe patterns in text






31. a string method that makes string all caps.






32. (regular expression)any non-whitespace character






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






34. Boolean not and or (lower preference)






35. a set of code within a class or object






36. a string method that uncapitalizes first character






37. comparison operator for "equal to"






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






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






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






41. returns ASCII value of x






42. array method that selects particular items from an array






43. array method that removes last item from an array






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






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






46. a whole number






47. returns ASCII value of x






48. (regular expression)any digit






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






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