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. less than or equal to (comparison operator)
string
!=
<=
.index
2. string method that determines if a string ends with a defined string
end_with?
w
.between?
object
3. (regular expression)any nonletter or nondigit or nonunderscore.
W
.between?
A
$
4. tells you all methods that an object may invoke.
struct
interpolation
s
.methods
5. method to determine if an object is an even number
.index
.even?
.gsub
.chop
6. 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
.next
A
code blocks
7. an array method that
.chop
.each
.select
ARGV
8. comparison operator for "not equal to"
.sub
.even?
!=
w
9. a whole number
D
local variable
integer
?x
10. sets a single character text delimiter for multi-line strings
%q
end_with?
.include?()
.each
11. a string method that substituition. Requires 2 arguments.
==
parameters
iterator
.sub
12. a collection of objects with a defined order
.next
|x|
array
S
13. conditionally stops a loop
#{}
=>
integer
break if
14. pushes a new item onto the end of an array.
@@
library
<<
.swapcase
15. a regular method that is the anchor for the end of a line
$
.index
.chop
operators
16. a string method that uncapitalizes first character
code blocks
.downcase
not and or
|x|
17. the remainder operator
^
%
range
operators
18. array method that transforms the contents of an array according to a specified set of rules
.index
<<
.sort
.map
19. a string method that removes last character
==
.chop
parameters
Z
20. a collection of objects or values with associated keys
.sort
hash
regular expressions
.map
21. a string method that substitutes ALL occurrences of a string with another.
.gsub
.sub
!=
$
22. a special array made from arguments that were added to the command line at start up.
.sort
parameters
<<
ARGV
23. the ternary operator if?then:else
array
.downcase
string
if?then:else
24. the process of deciding which sections of code to execute based on conditions
!=
class
class
flow control
25. method that sorts items alphabetically
.sort
==
<
^
26. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
.gsub
iterator
string
27. a module of classes and or functions
library
D
.downcase
.next
28. a way to describe patterns in text
D
.downcase
.index
regular expressions
29. tells ruby a value to pass while iterating a block of code
yield
iterator
object
.between?
30. (regular expression)any digit
.include?()
.pop
d
iterator
31. method that tells an argument's place value within an array
.index
!=
constant
class
32. used in an expression to manipulate objects
operators
<=
?x
d
33. a string method that scans object for arguments - uses regular expressions.
.scan()
.chop
<
.select
34. using classes and objects to make real-world concepts in programming.
range
object orientation
end_with?
S
35. (regular expression)any nondigit
variable
S
D
.sub
36. (regular expression)any nondigit
D
hash
.next
%w{}
37. (regular expression)any nonletter or nondigit or nonunderscore.
kernel
.gsub
W
.downcase
38. class inheritance operator.
array
.each
<
variable
39. a string method that changes last character to next alphabetical character
=>
.between?
Z
.next
40. a string method that splits a string into an array
ARGV
Z
.split
S
41. returns ASCII value of x
break if
?x
^
.include?()
42. greater than or equal to (comparison operator)
>=
break if
.each
library
43. an array method that returns TRUE or FALSE if the array contains specified item
>=
.include?()
.swapcase
&&
44. 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
.each
.match
break if
method
45. method that tells an argument's place value within an array
#{}
.index
d
s
46. array method that removes last item from an array
code blocks
?x
string
.pop
47. a string method that capitalizes first character
.gsub
interpolation
.capitalize
#{}
48. a string method that substitutes THE FIRST occurrence of a string within a string
w
.even?
.map
.sub
49. assigns a key to a hash value
.chop
=>
not and or
$
50. comparison operator for "not equal to"
!=
flow control
<=
.include?()