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. a string method that capitalizes first character
.capitalize
float
call
.downcase
2. defines array of multiple elements seperated by a space
%w{}
A
?x
.upcase
3. passes value into block of code and assigns it the label of "x"
%w{}
.each
|x|
A
4. tells ruby a value to pass while iterating a block of code
.index
.select
parameters
yield
5. method that tells if an argument is within the limits of two numbers
.between?
W
S
end_with?
6. a string method that splits a string into an array
.split
D
||
.map
7. a special array made from arguments that were added to the command line at start up.
ARGV
.chop
.pop
?x
8. used in an expression to manipulate objects
if?then:else
operators
S
.downcase
9. string method that determines if a string ends with a defined string
.next
<=>
!
end_with?
10. (regular expression)anchor for the end of a string
!
.downcase
.methods
Z
11. a string method that substitutes ALL occurrences of a string with another.
regular expressions
%q
.sort
.gsub
12. a string method that scans object for arguments - uses regular expressions.
if?then:else
range
.scan()
operators
13. sets a text delimiter
$
.each
#{}
%arg
14. (regular expression)any digit
w
d
object orientation
.match
15. Boolean not and or (lower preference)
yield
integer
.sub
not and or
16. array method that transforms the contents of an array according to a specified set of rules
.map
Z
hash
.downcase
17. data passed to methods in parenthesis after a method's name.
.map
!
arguments
iterator
18. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
kernel
start_with?
D
19. defines a class variable. Can be used anywhere within a class
@@
.swapcase
integer
.capitalize
20. array method that transforms the contents of an array according to a specified set of rules
.gsub
start_with?
!=
.map
21. a string method that reverses capitalization
iterator
.swapcase
<
<=>
22. a string method that removes last character
.methods
d
.split
.chop
23. operator for "Boolean not"
<<
flow control
|x|
!
24. Boolean AND operator
&&
end_with?
string
<=>
25. array assignment oprator
d
.between?
<<
%
26. (regular expression)any nonletter or nondigit or nonunderscore.
W
if?then:else
parameters
$:.
27. method to determine if an object is an even number
ARGV
$:.
.even?
iterator
28. assigns a key to a hash value
%w{}
@@
arguments
=>
29. method that sorts items alphabetically
not and or
.sort
.each
.map
30. less than or equal to (comparison operator)
A
.even?
.index
<=
31. a string method that scans object for arguments - uses regular expressions.
.scan()
.sub
.between?
.map
32. (regular expression)any nondigit
array
s
D
.chop
33. (regular expression)any nonletter or nondigit or nonunderscore.
.next
d
W
.map
34. a regular method that is the anchor for the beggining of a line
^
struct
?x
.pop
35. a string method that substitutes THE FIRST occurrence of a string within a string
%q
.sub
operators
.chop
36. a collection of objects with a defined order
yield
|x|
range
array
37. defines an instance variable which only exists within the object it was created in.
if?then:else
!
@
W
38. a string method that uncapitalizes first character
%q
.capitalize
.pop
.downcase
39. method that tells an argument's place value within an array
.index
%w{}
s
A
40. method that tells an argument's place value within an array
.index
.even?
S
|x|
41. data passed to methods in parenthesis after a method's name.
.scan()
array
parameters
strip
42. a regular method that is the anchor for the beggining of a line
.methods
array
.chop
^
43. conditionally stops a loop
break if
.each
.sort
!
44. pushes a new item onto the end of an array.
%w{}
d
<<
.even?
45. (regular expression)any letter or digit or underscore
ARGV
#{}
w
.each
46. array method that removes last item from an array
.downcase
!=
.pop
.chop
47. greater than or equal to (comparison operator)
not and or
$:.
<
>=
48. (regular expression)any non-whitespace character
range
.upcase
S
.even?
49. a set of code within a class or object
%w{}
A
method
d
50. the representation of data from a start to end point
s
range
.swapcase
.scan()