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 whole number






2. Boolean OR operator






3. array method that removes last item from an array






4. a string method that makes string all caps.






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






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






7. a string method that reverses capitalization






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






9. a way to describe patterns in text






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






11. less than or equal to (comparison operator)






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






13. a set of code within a class or object






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






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






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






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






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






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






20. an array method that






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






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






23. (regular expression)any non-whitespace character






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






25. array method that selects particular items from an array






26. a string method that uncapitalizes first character






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






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






29. a module of classes and or functions






30. (regular expression)any nondigit






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






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






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






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






35. returns ASCII value of x






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






37. a string method that capitalizes first character






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






39. the representation of data from a start to end point






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






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






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






43. assigns a key to a hash value






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






45. (regular expression)any digit






46. sets a text delimiter






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






48. a single instance of a class.






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






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