SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Ruby Programming Vocab
Start Test
Study First
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. returns ASCII value of x
?x
.each
constant
#{}
2. tells you all methods that an object may invoke.
.methods
#{}
array
object orientation
3. assigns a key to a hash value
=>
.gsub
not and or
<=>
4. tells ruby a value to pass while iterating a block of code
yield
.scan()
=>
method
5. allows for classes to relate to each other in a hierarchy
d
S
$
inheritance
6. data passed to methods in parenthesis after a method's name.
<
.downcase
?x
arguments
7. (regular expression)any letter or digit or underscore
.scan()
w
|x|
.include?()
8. 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.
code blocks
.swapcase
.each
.methods
9. sets a text delimiter
constant
#{}
%arg
kernel
10. a string method that uncapitalizes first character
regular expressions
.downcase
interpolation
.pop
11. passes value into block of code and assigns it the label of "x"
%
|x|
$
.include?()
12. a string method that substitutes ALL occurrences of a string with another.
.each
^
<<
.gsub
13. operator for "Boolean not"
.downcase
!
.even?
Z
14. a collection of objects or values with associated keys
range
hash
.upcase
d
15. greater than or equal to (comparison operator)
.index
>=
W
library
16. a string method that removes last character
#{}
.chop
.include?()
.each
17. array assignment oprator
D
<<
!
.each
18. a collection of characters such as "Hello world!"
s
yield
D
string
19. Boolean not and or (lower preference)
inheritance
|x|
not and or
|x|
20. a string method that makes string all caps.
.each
.even?
.upcase
.capitalize
21. (regular expression)anchor for the end of a string
constant
ARGV
.capitalize
Z
22. method that tells an argument's place value within an array
.methods
#{}
.index
$
23. a whole number
.next
struct
integer
^
24. Boolean AND operator
.include?()
library
&&
%
25. 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
.match
|x|
end_with?
integer
26. a regular method that is the anchor for the beggining of a line
?x
.each
^
!=
27. (regular expression)anchor for the end of a string
Z
.map
method
==
28. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
.map
variable
method
29. methods that step through lists element by element (like each or upto or times etc)
iterator
.each
=>
constant
30. (regular expression)any nondigit
.next
.between?
kernel
D
31. a string method that splits a string into an array
D
w
.split
.index
32. a collection of objects with a defined order
.methods
array
method
$:.
33. (regular expression)any space or tab or newline or whitespace
W
<=
s
.each
34. (regular expression)any nonletter or nondigit or nonunderscore.
>=
W
integer
Z
35. data passed to methods in parenthesis after a method's name.
range
parameters
.swapcase
!=
36. the process of deciding which sections of code to execute based on conditions
.match
flow control
range
?x
37. used in an expression to manipulate objects
operators
.even?
^
constant
38. returns ASCII value of x
?x
$
|x|
.capitalize
39. conditionally stops a loop
break if
d
call
@@
40. tells you all methods that an object may invoke.
.split
.methods
>=
flow control
41. array method that selects particular items from an array
.select
%
s
variable
42. (regular expression)any non-whitespace character
variable
!=
S
Z
43. (regular expression)any nonletter or nondigit or nonunderscore.
!=
&&
.chop
W
44. an array method that
&&
^
.each
Z
45. a regular method that is the anchor for the beggining of a line
^
regular expressions
s
Z
46. array method that transforms the contents of an array according to a specified set of rules
<<
S
.map
%w{}
47. an array method that
.each
.scan()
$:.
.include?()
48. a string method that changes last character to next alphabetical character
.sort
.next
constant
||
49. defines an instance variable which only exists within the object it was created in.
@
array
range
.scan()
50. a string method that reverses capitalization
.swapcase
start_with?
<<
S