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 collection of objects or values with associated keys
^
local variable
.each
hash
2. method to determine if an object is an even number
W
.even?
inheritance
.capitalize
3. methods that step through lists element by element (like each or upto or times etc)
iterator
!=
end_with?
d
4. (regular expression)any digit
%
.methods
.include?()
d
5. Boolean OR operator
||
inheritance
.capitalize
.between?
6. method that sorts items alphabetically
.sort
@@
not and or
end_with?
7. Boolean AND operator
S
&&
.scan()
>=
8. using classes and objects to make real-world concepts in programming.
object orientation
.sort
s
<=>
9. a string method that removes last character
yield
|x|
S
.chop
10. a regular method that is the anchor for the beggining of a line
.scan()
.include?()
^
A
11. (regular expression)any digit
.include?()
%w{}
d
!=
12. comparison operator for "not equal to"
parameters
.gsub
.select
!=
13. (regular expression)any space or tab or newline or whitespace
#{}
d
^
s
14. a special array made from arguments that were added to the command line at start up.
ARGV
parameters
.include?()
#{}
15. method that tells an argument's place value within an array
A
.capitalize
yield
.index
16. sets a single character text delimiter for multi-line strings
class
iterator
%q
<
17. the representation of data from a start to end point
D
.scan()
@@
range
18. a set of code within a class or object
@
.sub
method
.gsub
19. Boolean not and or (lower preference)
.sort
.upcase
class
not and or
20. a regular method that is the anchor for the end of a line
D
.gsub
S
$
21. returns ASCII value of x
?x
start_with?
hash
S
22. runs a proc that has been stored to a variable
.upcase
call
.pop
|x|
23. a collection of characters such as "Hello world!"
.split
string
.scan()
.methods
24. (regular expression)any nondigit
arguments
break if
D
.even?
25. array method that removes last item from an array
<=
.pop
.next
end_with?
26. a variable that lists the directories where Ruby will look for libraries
<<
$:.
method
inheritance
27. a string method that scans object for arguments - uses regular expressions.
#{}
<<
.scan()
<=
28. symbol for a global variable which can be called from anywhere in an application.
.capitalize
$
&&
.sort
29. a single instance of a class.
object
<
^
D
30. a collection of objects with a defined order
<=
Z
not and or
array
31. a definition of a concept in an object oriented language.
class
.even?
range
constant
32. operator for "Boolean not"
inheritance
Z
!
S
33. a string method that substitutes ALL occurrences of a string with another.
.gsub
.sub
@
d
34. allows for classes to relate to each other in a hierarchy
strip
inheritance
ARGV
interpolation
35. a special class that holds attributes and data but no methods.
flow control
A
iterator
struct
36. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.methods
.index
constant
arguments
37. used in an expression to manipulate objects
D
operators
.scan()
end_with?
38. (regular expression)anchor for the start of a string
A
!=
<=
variable
39. an array method that
method
object
.scan()
.each
40. method to determine if an object is an even number
.even?
.match
>=
inheritance
41. a string method that makes string all caps.
hash
string
.upcase
Z
42. (regular expression)any non-whitespace character
S
#{}
if?then:else
.scan()
43. a number with a decimal point such as 1.0 or 3.1
.methods
float
<<
@
44. mixing expressions into strings
.sub
yield
||
interpolation
45. array method that transforms the contents of an array according to a specified set of rules
arguments
.map
regular expressions
.swapcase
46. comparison operator for "not equal to"
w
!=
end_with?
.pop
47. a string method that scans object for arguments - uses regular expressions.
S
object
.include?()
.scan()
48. the process of deciding which sections of code to execute based on conditions
.each
inheritance
<<
flow control
49. tells you all methods that an object may invoke.
<=>
.match
.methods
S
50. array method that selects particular items from an array
operators
&&
.select
.gsub