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. assigns a key to a hash value






2. Boolean not and or (lower preference)






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






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






5. Boolean OR operator






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






7. a string method that removes last character






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






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






10. comparison operator for "equal to"






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






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






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






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






15. array method that removes last item from an array






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






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






18. (regular expression)any nondigit






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






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






21. (regular expression)any non-whitespace character






22. interpolation operator






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






24. a set of code within a class or object






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






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






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






28. interpolation operator






29. the ternary operator if?then:else






30. operator for "Boolean not"






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






32. a string method that capitalizes first character






33. array assignment oprator






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






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






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






37. greater than or equal to (comparison operator)






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






39. a collection of objects with a defined order






40. a whole number






41. a string method that uncapitalizes first character






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






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






44. (regular expression)any non-whitespace character






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






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






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






48. operator for "Boolean not"






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






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