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. comparison operator for "not equal to"






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






3. a way to describe patterns in text






4. comparison operator for "equal to"






5. a string method that substitutes ALL occurrences of a string with another.






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






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






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






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






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






11. a string method that uncapitalizes first character






12. a string method that reverses capitalization






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






14. allows for classes to relate to each other in a hierarchy






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






16. a string method that capitalizes first character






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






18. conditionally stops a loop






19. a string method that splits a string into an array






20. operator for "Boolean not"






21. (regular expression)any nondigit






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






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






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






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






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






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






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






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






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






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






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






33. a string method that removes last character






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






35. the ternary operator if?then:else






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






37. returns ASCII value of x






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






39. Boolean AND operator






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






41. a string method that removes last character






42. (regular expression)any non-whitespace character






43. the remainder operator






44. using classes and objects to make real-world concepts in programming.






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






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






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






48. a module of classes and or functions






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






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