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 number with a decimal point such as 1.0 or 3.1
<=
A
.next
float
2. an array method that returns TRUE or FALSE if the array contains specified item
struct
|x|
.include?()
.pop
3. tells you all methods that an object may invoke.
.include?()
flow control
W
.methods
4. defines a class variable. Can be used anywhere within a class
!
$
S
@@
5. a string method that splits a string into an array
.split
<<
if?then:else
class
6. a string method that scans object for arguments - uses regular expressions.
<<
method
.pop
.scan()
7. a regular method that is the anchor for the beggining of a line
Z
S
^
s
8. (regular expression)any nondigit
.methods
D
ARGV
w
9. 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.
yield
code blocks
@
w
10. 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
struct
A
.match
float
11. a string method that reverses capitalization
<<
.swapcase
Z
.between?
12. (regular expression)any nondigit
$
.between?
D
method
13. sets a text delimiter
^
%arg
call
yield
14. returns ASCII value of x
Z
?x
code blocks
.chop
15. a string method that changes last character to next alphabetical character
D
.between?
.next
<
16. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
^
strip
d
kernel
17. (regular expression)any letter or digit or underscore
end_with?
arguments
w
flow control
18. a module of classes and or functions
class
.index
library
>=
19. (regular expression)any non-whitespace character
constant
<
S
$
20. a single instance of a class.
<=>
object
@@
.between?
21. (regular expression)anchor for the end of a string
.each
.chop
Z
$
22. a special class that holds attributes and data but no methods.
array
d
parameters
struct
23. a string method that removes last character
Z
.chop
strip
iterator
24. conditionally stops a loop
^
break if
@
.chop
25. string method that determines if a string ends with a defined string
.include?()
.upcase
#{}
end_with?
26. allows for classes to relate to each other in a hierarchy
.match
range
.next
inheritance
27. a variable that lists the directories where Ruby will look for libraries
s
$:.
S
w
28. (regular expression)anchor for the start of a string
A
method
&&
.capitalize
29. a set of code within a class or object
.index
method
s
.index
30. a collection of objects with a defined order
.capitalize
&&
!
array
31. class inheritance operator.
.upcase
<
%q
object
32. (regular expression)any nonletter or nondigit or nonunderscore.
W
$
D
struct
33. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.sub
<<
not and or
<=>
34. a special array made from arguments that were added to the command line at start up.
W
<=
ARGV
.pop
35. array method that removes last item from an array
.pop
.next
.chop
@
36. array method that transforms the contents of an array according to a specified set of rules
array
D
.map
S
37. operator for "Boolean not"
!
.sub
iterator
@
38. greater than or equal to (comparison operator)
>=
if?then:else
.each
?x
39. mixing expressions into strings
if?then:else
s
.pop
interpolation
40. a collection of characters such as "Hello world!"
.include?()
string
s
?x
41. defines an instance variable which only exists within the object it was created in.
.each
@
$
operators
42. a string method that substituition. Requires 2 arguments.
&&
.sub
class
operators
43. array method that selects particular items from an array
^
.select
code blocks
.next
44. string method that determines if a string starts with a defined string
start_with?
.sub
.next
A
45. a string method that substitutes ALL occurrences of a string with another.
constant
.gsub
.scan()
.each
46. (regular expression)anchor for the end of a string
$:.
parameters
Z
.pop
47. method that tells if an argument is within the limits of two numbers
<=
.between?
ARGV
.downcase
48. (regular expression)any non-whitespace character
D
d
S
code blocks
49. pushes a new item onto the end of an array.
<<
w
.methods
.methods
50. comparison operator for "not equal to"
.swapcase
.map
.index
!=