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 regular method that is the anchor for the beggining of a line






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






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






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






5. the process of deciding which sections of code to execute based on conditions






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






7. returns ASCII value of x






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






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






10. operator for "Boolean not"






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






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






13. Boolean OR operator






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






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






16. a whole number






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






18. (regular expression)any digit






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






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






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






22. sets a text delimiter






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






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






25. interpolation operator






26. method that sorts items alphabetically






27. a single instance of a class.






28. comparison operator for "equal to"






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






30. (regular expression)any non-whitespace character






31. (regular expression)any nondigit






32. a string method that reverses capitalization






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






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






35. the ternary operator if?then:else






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






37. comparison operator for "not equal to"






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






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






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






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






42. defines array of multiple elements seperated by a space






43. conditionally stops a loop






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






45. array assignment oprator






46. array method that selects particular items from an array






47. class inheritance operator.






48. operator for "Boolean not"






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






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