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. used in an expression to manipulate objects






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






3. interpolation operator






4. (regular expression)any digit






5. Boolean not and or (lower preference)






6. less than or equal to (comparison operator)






7. string method that "cleans" extra spaces from strings






8. a whole number






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






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






11. returns ASCII value of x






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






13. the ternary operator if?then:else






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






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






16. Boolean OR operator






17. method that sorts items alphabetically






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






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






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






21. the remainder operator






22. (regular expression)any non-whitespace character






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






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






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






26. a string method that removes last character






27. array assignment oprator






28. (regular expression)any nondigit






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






30. (regular expression)any digit






31. a string method that capitalizes first character






32. (regular expression)any non-whitespace character






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






34. interpolation operator






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






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






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






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






39. an array method that






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






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






42. a string method that makes string all caps.






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






44. a string method that capitalizes first character






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






46. greater than or equal to (comparison operator)






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






48. a string method that uncapitalizes first character






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






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