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. method to determine if an object is an even number






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






3. class inheritance operator.






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






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






6. defines array of multiple elements seperated by a space






7. assigns a key to a hash value






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






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






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






11. returns ASCII value of x






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






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






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






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






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






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






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






19. (regular expression)any non-whitespace character






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






21. a string method that uncapitalizes first character






22. operator for "Boolean not"






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






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






25. the remainder operator






26. a string method that makes string all caps.






27. an array method that






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






29. (regular expression)any nondigit






30. a string method that removes last character






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






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






33. a string method that reverses capitalization






34. method that sorts items alphabetically






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






36. comparison operator for "not equal to"






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






38. an array method that






39. the ternary operator if?then:else






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






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






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






43. a string method that capitalizes first character






44. a whole number






45. a string method that capitalizes first character






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






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






48. array method that selects particular items from an array






49. Boolean AND operator






50. array method that removes last item from an array






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests