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 non-whitespace character






2. comparison operator for "equal to"






3. a string method that uncapitalizes first character






4. returns ASCII value of x






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






6. a string method that removes last character






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






8. a set of code within a class or object






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






10. a string method that capitalizes first character






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






12. a module of classes and or functions






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






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






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






16. Boolean not and or (lower preference)






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






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






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






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






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






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






23. class inheritance operator.






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






25. a whole number






26. variable that can be used only where it is defined within an application






27. a string method that reverses capitalization






28. (regular expression)any digit






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






30. array method that removes last item from an array






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






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






33. array method that removes last item from an array






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






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






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






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






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






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






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






41. less than or equal to (comparison operator)






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






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






44. array method that selects particular items from an array






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






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






47. greater than or equal to (comparison operator)






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






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






50. used in an expression to manipulate objects