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. interpolation operator






2. the remainder operator






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






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






5. a collection of objects with a defined order






6. a collection of objects or values with associated keys






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






8. greater than or equal to (comparison operator)






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






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






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






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






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






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






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






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






17. an array method that






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






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






20. a collection of characters such as "Hello world!"






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






22. a string method that capitalizes first character






23. returns ASCII value of x






24. comparison operator for "not equal to"






25. a whole number






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






27. (regular expression)any digit






28. assigns a key to a hash value






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






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






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






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






33. a string method that uncapitalizes first character






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






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






36. mixing expressions into strings






37. a string method that uncapitalizes first character






38. (regular expression)any nondigit






39. Boolean not and or (lower preference)






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






41. the ternary operator if?then:else






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






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






44. an array method that






45. a set of code within a class or object






46. operator for "Boolean not"






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






48. a string method that makes string all caps.






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






50. a single instance of a class.