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 regular method that is the anchor for the end of a line






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






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






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






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






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






7. (regular expression)any digit






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






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






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






11. a string method that removes last character






12. comparison operator for "equal to"






13. a string method that capitalizes first character






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






15. returns ASCII value of x






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






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






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






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






20. interpolation operator






21. a string method that uncapitalizes first character






22. (regular expression)any nondigit






23. a set of code within a class or object






24. a module of classes and or functions






25. assigns a key to a hash value






26. operator for "Boolean not"






27. a collection of objects with a defined order






28. (regular expression)any digit






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






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






31. a string method that reverses capitalization






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






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






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






35. Boolean OR operator






36. method that sorts items alphabetically






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






38. comparison operator for "not equal to"






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






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






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






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






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






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






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






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






47. an array method that






48. Boolean AND operator






49. the ternary operator if?then:else






50. conditionally stops a loop