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 number with a decimal point such as 1.0 or 3.1






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






3. a string method that capitalizes first character






4. less than or equal to (comparison operator)






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






6. a way to describe patterns in text






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






8. assigns a key to a hash value






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






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






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






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






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






14. array method that selects particular items from an array






15. a string method that changes last character to next alphabetical character






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






17. returns ASCII value of x






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






19. greater than or equal to (comparison operator)






20. a string method that capitalizes first character






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






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






23. method that sorts items alphabetically






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






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






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






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






28. array method that removes last item from an array






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






30. (regular expression)any nondigit






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






32. sets a text delimiter






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






34. a whole number






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






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






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






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






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






40. Boolean OR operator






41. Boolean not and or (lower preference)






42. an array method that






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






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






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






46. operator for "Boolean not"






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






48. a string method that removes last character






49. returns ASCII value of x






50. the remainder operator