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. (regular expression)any nondigit






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






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






4. interpolation operator






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






6. (regular expression)any digit






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






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






9. assigns a key to a hash value






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






11. an array method that






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






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






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






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






16. greater than or equal to (comparison operator)






17. a string method that removes last character






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






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






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






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






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






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






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






25. Boolean not and or (lower preference)






26. an array method that






27. (regular expression)any nondigit






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






29. a whole number






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






31. (regular expression)any non-whitespace character






32. allows for classes to relate to each other in a hierarchy






33. a number with a decimal point such as 1.0 or 3.1






34. conditionally stops a loop






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






36. (regular expression)any digit






37. method that sorts items alphabetically






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






39. array method that selects particular items from an array






40. operator for "Boolean not"






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






42. operator for "Boolean not"






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






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






45. the ternary operator if?then:else






46. Boolean AND operator






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






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






49. a fixed value that begins with a capital letter such as Pi.






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