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. comparison operator for "not equal to"
object orientation
!=
@@
end_with?
2. conditionally stops a loop
end_with?
break if
flow control
integer
3. method that sorts items alphabetically
.between?
parameters
array
.sort
4. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
@@
parameters
<=>
#{}
5. an array method that returns TRUE or FALSE if the array contains specified item
.match
$
.map
.include?()
6. a special array made from arguments that were added to the command line at start up.
.even?
W
ARGV
strip
7. (regular expression)any digit
^
.swapcase
d
!
8. a string method that changes last character to next alphabetical character
inheritance
class
.next
.gsub
9. a string method that uncapitalizes first character
.downcase
.chop
.methods
==
10. (regular expression)any nondigit
string
D
.sub
.match
11. (regular expression)any nonletter or nondigit or nonunderscore.
.each
|x|
W
!=
12. operator for "Boolean not"
class
.methods
!
<<
13. method to determine if an object is an even number
.even?
struct
.index
float
14. an array method that
.each
interpolation
kernel
>=
15. array method that transforms the contents of an array according to a specified set of rules
.map
code blocks
=>
.next
16. a string method that substitutes ALL occurrences of a string with another.
&&
.gsub
.downcase
.sub
17. a regular method that is the anchor for the beggining of a line
.between?
^
.scan()
||
18. array method that removes last item from an array
.gsub
<=
.pop
>=
19. array method that removes last item from an array
||
.split
.pop
%arg
20. a string method that uncapitalizes first character
<<
.select
.downcase
object
21. method to determine if an object is an even number
@
.even?
array
.split
22. a regular method that is the anchor for the beggining of a line
s
.capitalize
hash
^
23. a regular method that is the anchor for the end of a line
=>
array
class
$
24. operator for "Boolean not"
!
@
yield
call
25. a string method that substitutes ALL occurrences of a string with another.
not and or
struct
.gsub
.pop
26. a string method that removes last character
not and or
.chop
$
method
27. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.next
constant
S
code blocks
28. a string method that makes string all caps.
.upcase
object orientation
.methods
arguments
29. a string method that removes last character
.even?
w
.capitalize
.chop
30. the representation of data from a start to end point
%q
string
array
range
31. a special class that holds attributes and data but no methods.
struct
.each
.sort
array
32. a single instance of a class.
.include?()
^
class
object
33. a string method that splits a string into an array
.split
d
^
.scan()
34. data passed to methods in parenthesis after a method's name.
==
parameters
iterator
w
35. (regular expression)any digit
.scan()
.next
|x|
d
36. less than or equal to (comparison operator)
<=
?x
<
.between?
37. string method that "cleans" extra spaces from strings
.chop
iterator
strip
.index
38. a way to describe patterns in text
D
.index
.map
regular expressions
39. a string method that capitalizes first character
!
string
.capitalize
.upcase
40. class inheritance operator.
S
<
.chop
D
41. a set of code within a class or object
method
.chop
.downcase
W
42. (regular expression)any nonletter or nondigit or nonunderscore.
string
start_with?
W
.include?()
43. a number with a decimal point such as 1.0 or 3.1
.chop
end_with?
S
float
44. used in an expression to manipulate objects
operators
class
.each
code blocks
45. a string method that substitutes THE FIRST occurrence of a string within a string
.swapcase
.sub
end_with?
regular expressions
46. passes value into block of code and assigns it the label of "x"
<<
.chop
|x|
iterator
47. a collection of objects or values with associated keys
hash
.downcase
<<
.sub
48. the remainder operator
local variable
ARGV
%
code blocks
49. comparison operator for "equal to"
|x|
object orientation
iterator
==
50. the ternary operator if?then:else
!=
.chop
if?then:else
end_with?