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 string method that removes last character






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






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






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






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






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






7. (regular expression)any nondigit






8. defines array of multiple elements seperated by a space






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






10. the ternary operator if?then:else






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






12. mixing expressions into strings






13. comparison operator for "equal to"






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






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






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






17. (regular expression)any digit






18. class inheritance operator.






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. method that tells if an argument is within the limits of two numbers






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






22. string method that determines if a string starts with a defined string






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






24. comparison operator for "not equal to"






25. (regular expression)any nondigit






26. method that sorts items alphabetically






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






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






29. array method that selects particular items from an array






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






31. sets a text delimiter






32. Boolean OR operator






33. comparison operator for "not equal to"






34. array method that removes last item from an array






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






36. a collection of objects with a defined order






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






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






39. the remainder operator






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






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






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






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






44. conditionally stops a loop






45. greater than or equal to (comparison operator)






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






47. a module of classes and or functions






48. (regular expression)any non-whitespace character






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






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