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 collection of characters such as "Hello world!"






2. Boolean AND operator






3. a set of code within a class or object






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






5. mixing expressions into strings






6. a single instance of a class.






7. less than or equal to (comparison operator)






8. used in an expression to manipulate objects






9. comparison operator for "not equal to"






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






11. assigns a key to a hash value






12. a string method that capitalizes first character






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






14. returns ASCII value of x






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






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






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






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






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






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






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






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






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






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






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






26. a string method that capitalizes first character






27. a collection of objects with a defined order






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






29. a string method that makes string all caps.






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






31. (regular expression)any nonletter or nondigit or nonunderscore.






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






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






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






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






36. interpolation operator






37. array method that removes last item from an array






38. conditionally stops a loop






39. interpolation operator






40. the ternary operator if?then:else






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






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






43. defines array of multiple elements seperated by a space






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






45. method that sorts items alphabetically






46. returns ASCII value of x






47. (regular expression)any non-whitespace character






48. comparison operator for "equal to"






49. (regular expression)any nondigit






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