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 section of code with no discrete name which is not a method by itself that can be called upon and can receive an argument.
<
interpolation
code blocks
array
2. a way to describe patterns in text
=>
operators
regular expressions
start_with?
3. Boolean OR operator
||
D
.methods
end_with?
4. pushes a new item onto the end of an array.
@
<<
.swapcase
.gsub
5. the representation of data from a start to end point
S
range
w
.methods
6. (regular expression)any digit
s
d
.index
Z
7. data passed to methods in parenthesis after a method's name.
.downcase
.include?()
parameters
S
8. a variable that lists the directories where Ruby will look for libraries
method
.swapcase
$:.
.chop
9. method that tells an argument's place value within an array
variable
A
@@
.index
10. a collection of objects or values with associated keys
$
!=
hash
<
11. sets a single character text delimiter for multi-line strings
%q
!
#{}
^
12. array method that transforms the contents of an array according to a specified set of rules
variable
.next
.map
#{}
13. used in an expression to manipulate objects
.match
$
.swapcase
operators
14. Boolean not and or (lower preference)
not and or
class
interpolation
constant
15. (regular expression)any space or tab or newline or whitespace
^
.capitalize
s
.select
16. symbol for a global variable which can be called from anywhere in an application.
?x
#{}
.map
$
17. comparison operator for "not equal to"
.gsub
!=
#{}
D
18. a string method that scans object for arguments - uses regular expressions.
==
.scan()
>=
.swapcase
19. a number with a decimal point such as 1.0 or 3.1
.map
.swapcase
float
local variable
20. string method that "cleans" extra spaces from strings
S
!
strip
.index
21. a special array made from arguments that were added to the command line at start up.
.match
.map
ARGV
&&
22. a definition of a concept in an object oriented language.
inheritance
range
.next
class
23. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
$
class
kernel
.map
24. a string method that substitutes THE FIRST occurrence of a string within a string
.capitalize
.chop
Z
.sub
25. string method that determines if a string ends with a defined string
end_with?
class
array
.match
26. array method that transforms the contents of an array according to a specified set of rules
.capitalize
.sub
.map
^
27. sets a text delimiter
.methods
local variable
constant
%arg
28. an array method that
.each
.sub
hash
class
29. (regular expression)any non-whitespace character
&&
S
.even?
float
30. a string method that reverses capitalization
.swapcase
.each
iterator
.map
31. runs a proc that has been stored to a variable
.even?
hash
call
.pop
32. (regular expression)any letter or digit or underscore
w
.index
.next
string
33. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
!
$
constant
.next
34. (regular expression)any non-whitespace character
S
.next
.even?
.sub
35. defines array of multiple elements seperated by a space
%w{}
struct
%q
parameters
36. (regular expression)anchor for the start of a string
%w{}
A
.next
.include?()
37. returns ASCII value of x
Z
.chop
object
?x
38. (regular expression)any nondigit
=>
end_with?
D
s
39. a string method that uncapitalizes first character
.gsub
.downcase
call
&&
40. passes value into block of code and assigns it the label of "x"
s
class
|x|
iterator
41. greater than or equal to (comparison operator)
$
>=
variable
<=>
42. passes value into block of code and assigns it the label of "x"
|x|
iterator
.sort
range
43. the remainder operator
%
.pop
.even?
s
44. a definition of a concept in an object oriented language.
<
integer
class
struct
45. array method that removes last item from an array
.gsub
.pop
.next
d
46. variable that can be used only where it is defined within an application
A
break if
not and or
local variable
47. method to determine if an object is an even number
regular expressions
.each
object
.even?
48. data passed to methods in parenthesis after a method's name.
<<
regular expressions
arguments
.even?
49. the ternary operator if?then:else
.swapcase
<=
if?then:else
!
50. class inheritance operator.
iterator
d
<
^