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 passed to methods in parenthesis after a method's name.






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






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






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






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






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






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






8. a way to describe patterns in text






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






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






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






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






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






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






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






16. (regular expression)any non-whitespace character






17. used in an expression to manipulate objects






18. operator for "Boolean not"






19. assigns a key to a hash value






20. (regular expression)any non-whitespace character






21. the ternary operator if?then:else






22. a string method that removes last character






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






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






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






26. array method that selects particular items from an array






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






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






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






30. a module of classes and or functions






31. a string method that removes last character






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






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






34. a set of code within a class or object






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






36. a single instance of a class.






37. Boolean AND operator






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






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






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






41. Boolean OR operator






42. mixing expressions into strings






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






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






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






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






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






48. method that sorts items alphabetically






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






50. Boolean not and or (lower preference)