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. symbol for a global variable which can be called from anywhere in an application.






2. the remainder operator






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






4. a collection of objects or values with associated keys






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






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






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






8. operator for "Boolean not"






9. sets a text delimiter






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






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






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






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






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






15. conditionally stops a loop






16. array method that removes last item from an array






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






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






19. defines array of multiple elements seperated by a space






20. a collection of objects with a defined order






21. array method that selects particular items from an array






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






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






24. a string method that reverses capitalization






25. a string method that capitalizes first character






26. array method that removes last item from an array






27. a whole number






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






29. a string method that capitalizes first character






30. interpolation operator






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






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






33. comparison operator for "equal to"






34. a string method that makes string all caps.






35. comparison operator for "not equal to"






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






37. a set of code within a class or object






38. (regular expression)any digit






39. returns ASCII value of x






40. array assignment oprator






41. Boolean not and or (lower preference)






42. an array method that






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






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






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






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






47. comparison operator for "not equal to"






48. returns ASCII value of x






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






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