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. (regular expression)anchor for the start of a string






2. class inheritance operator.






3. a string method that capitalizes first character






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






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






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






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






8. Boolean not and or (lower preference)






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






10. an array method that






11. a way to describe patterns in text






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






13. a string method that removes last character






14. Boolean OR operator






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






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






17. conditionally stops a loop






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






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






20. greater than or equal to (comparison operator)






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






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






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






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






25. interpolation operator






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






27. sets a text delimiter






28. a string method that capitalizes first character






29. the ternary operator if?then:else






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






31. array method that selects particular items from an array






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






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






34. (regular expression)any digit






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






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






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






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






39. (regular expression)any non-whitespace character






40. returns ASCII value of x






41. the remainder operator






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






43. a whole number






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






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






46. defines array of multiple elements seperated by a space






47. a single instance of a class.






48. comparison operator for "not equal to"






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






50. returns ASCII value of x