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. the representation of data from a start to end point






2. a way to describe patterns in text






3. mixing expressions into strings






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






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






6. array method that selects particular items from an array






7. Boolean OR operator






8. (regular expression)any nondigit






9. less than or equal to (comparison operator)






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






11. a collection of objects or values with associated keys






12. interpolation operator






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






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






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






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






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






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






19. defines array of multiple elements seperated by a space






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






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






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






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






24. Boolean not and or (lower preference)






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






26. class inheritance operator.






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






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






29. array method that removes last item from an array






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






31. returns ASCII value of x






32. a string method that removes last character






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






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






35. defines a class variable. Can be used anywhere within a class






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






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






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






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






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






41. (regular expression)any digit






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






43. returns ASCII value of x






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






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






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






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






48. a single instance of a class.






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






50. comparison operator for "not equal to"