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. array method that selects particular items from an array






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






3. the ternary operator if?then:else






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






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






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






7. a set of code within a class or object






8. a way to describe patterns in text






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






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






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






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






13. sets a text delimiter






14. assigns a key to a hash value






15. a string method that reverses capitalization






16. Boolean AND operator






17. an array method that






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






19. the remainder operator






20. a single instance of a class.






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






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






23. array method that removes last item from an array






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






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






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






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






28. operator for "Boolean not"






29. a string method that capitalizes first character






30. class inheritance operator.






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






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






33. a string method that uncapitalizes first character






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






35. (regular expression)any digit






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






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






38. an array method that






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






40. a string method that removes last character






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






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






43. interpolation operator






44. a string method that capitalizes first character






45. comparison operator for "not equal to"






46. a string method that makes string all caps.






47. Boolean not and or (lower preference)






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






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






50. (regular expression)any non-whitespace character