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. the ternary operator if?then:else






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






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






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






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






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






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






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






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






10. a string method that capitalizes first character






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






12. a string method that reverses capitalization






13. a way to describe patterns in text






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






15. (regular expression)any non-whitespace character






16. (regular expression)any digit






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






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






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






20. comparison operator for "not equal to"






21. a string method that capitalizes first character






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






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






24. a set of code within a class or object






25. conditionally stops a loop






26. array method that removes last item from an array






27. comparison operator for "not equal to"






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






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






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






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






32. a string method that uncapitalizes first character






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






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






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






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






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






38. Boolean AND operator






39. mixing expressions into strings






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






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






42. less than or equal to (comparison operator)






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






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






45. array assignment oprator






46. operator for "Boolean not"






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






48. an array method that






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






50. a string method that removes last character