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. Boolean OR operator






2. greater than or equal to (comparison operator)






3. a string method that removes last character






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






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






6. less than or equal to (comparison operator)






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






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






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






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






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






12. a string method that capitalizes first character






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






14. the ternary operator if?then:else






15. Boolean AND operator






16. used in an expression to manipulate objects






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






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






19. array method that removes last item from an array






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






21. mixing expressions into strings






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






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






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






25. operator for "Boolean not"






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






27. defines array of multiple elements seperated by a space






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






29. returns ASCII value of x






30. assigns a key to a hash value






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






32. a string method that uncapitalizes first character






33. Boolean not and or (lower preference)






34. class inheritance operator.






35. (regular expression)any nondigit






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






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






38. a string method that uncapitalizes first character






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






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






41. array assignment oprator






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






43. comparison operator for "not equal to"






44. an array method that






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






46. interpolation operator






47. a collection of objects with a defined order






48. sets a single character text delimiter for multi-line strings






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






50. a way to describe patterns in text