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. method that sorts items alphabetically
.sort
constant
local variable
.select
2. (regular expression)any nonletter or nondigit or nonunderscore.
.capitalize
W
.index
.map
3. using classes and objects to make real-world concepts in programming.
call
object orientation
.each
code blocks
4. array method that removes last item from an array
.pop
?x
kernel
<=>
5. the process of deciding which sections of code to execute based on conditions
flow control
!=
.gsub
inheritance
6. (regular expression)any digit
ARGV
.downcase
s
d
7. a regular method that is the anchor for the end of a line
||
$
call
end_with?
8. an array method that returns TRUE or FALSE if the array contains specified item
float
class
.methods
.include?()
9. the representation of data from a start to end point
>=
!=
.next
range
10. array method that transforms the contents of an array according to a specified set of rules
.sub
.index
code blocks
.map
11. tells you all methods that an object may invoke.
A
flow control
w
.methods
12. a collection of objects with a defined order
array
.gsub
S
float
13. a string method that removes last character
.capitalize
.chop
W
A
14. a whole number
ARGV
integer
A
array
15. a definition of a concept in an object oriented language.
.chop
class
&&
%
16. 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
.downcase
Z
class
17. a string method that scans object for arguments - uses regular expressions.
variable
Z
constant
.scan()
18. used in an expression to manipulate objects
.chop
.next
operators
=>
19. a string method that substitutes ALL occurrences of a string with another.
.gsub
end_with?
.swapcase
!
20. (regular expression)anchor for the end of a string
@
A
Z
#{}
21. array method that transforms the contents of an array according to a specified set of rules
#{}
S
.map
.sort
22. passes value into block of code and assigns it the label of "x"
%q
|x|
constant
%w{}
23. a regular method that is the anchor for the beggining of a line
^
operators
Z
=>
24. (regular expression)anchor for the start of a string
constant
^
.index
A
25. assigns a key to a hash value
method
operators
=>
float
26. a number with a decimal point such as 1.0 or 3.1
|x|
S
range
float
27. array method that removes last item from an array
object
not and or
.chop
.pop
28. method to determine if an object is an even number
.even?
.upcase
.scan()
object
29. a special array made from arguments that were added to the command line at start up.
regular expressions
.index
ARGV
.downcase
30. (regular expression)anchor for the start of a string
break if
^
A
.sub
31. a string method that makes string all caps.
.upcase
s
d
.next
32. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<=>
#{}
D
$:.
33. a single instance of a class.
@
.each
object
.index
34. method that tells an argument's place value within an array
object
.index
==
.each
35. a way to describe patterns in text
&&
regular expressions
.even?
s
36. (regular expression)any non-whitespace character
.capitalize
yield
S
D
37. greater than or equal to (comparison operator)
>=
.pop
break if
.between?
38. returns ASCII value of x
strip
.select
w
?x
39. passes value into block of code and assigns it the label of "x"
^
call
.sort
|x|
40. allows for classes to relate to each other in a hierarchy
inheritance
range
.index
.each
41. a string method that splits a string into an array
.select
?x
.split
strip
42. defines array of multiple elements seperated by a space
%w{}
.index
if?then:else
.upcase
43. a string method that changes last character to next alphabetical character
constant
.capitalize
.next
>=
44. class inheritance operator.
<
!=
.capitalize
d
45. mixing expressions into strings
interpolation
D
s
call
46. an array method that
.each
not and or
.pop
.select
47. comparison operator for "equal to"
S
$
==
constant
48. less than or equal to (comparison operator)
class
<=
.chop
d
49. sets a single character text delimiter for multi-line strings
Z
%q
code blocks
<<
50. (regular expression)anchor for the end of a string
arguments
.gsub
Z
class