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. tells ruby a value to pass while iterating a block of code
yield
.capitalize
.pop
?x
2. data passed to methods in parenthesis after a method's name.
.capitalize
parameters
operators
<<
3. tells you all methods that an object may invoke.
$
end_with?
Z
.methods
4. a string method that makes string all caps.
.match
.upcase
regular expressions
.even?
5. class inheritance operator.
interpolation
<
S
constant
6. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
!=
kernel
A
.include?()
7. sets a single character text delimiter for multi-line strings
call
%q
.each
.index
8. operator for "Boolean not"
&&
%
!
local variable
9. (regular expression)any digit
d
.index
||
.each
10. a string method that changes last character to next alphabetical character
.pop
.select
break if
.next
11. assigns a key to a hash value
method
D
code blocks
=>
12. (regular expression)any non-whitespace character
?x
!
S
end_with?
13. sets a text delimiter
start_with?
%arg
.next
call
14. method to determine if an object is an even number
.swapcase
.select
.even?
local variable
15. (regular expression)any space or tab or newline or whitespace
.capitalize
ARGV
s
.between?
16. (regular expression)any space or tab or newline or whitespace
s
.capitalize
hash
||
17. a definition of a concept in an object oriented language.
.select
s
S
class
18. array method that selects particular items from an array
.select
^
!=
%
19. (regular expression)any nondigit
inheritance
D
.methods
.upcase
20. method to determine if an object is an even number
constant
|x|
.even?
.include?()
21. (regular expression)any letter or digit or underscore
.upcase
.next
range
w
22. (regular expression)any nondigit
D
$
.capitalize
.methods
23. a string method that capitalizes first character
end_with?
.capitalize
<
.scan()
24. defines array of multiple elements seperated by a space
%w{}
.select
d
.capitalize
25. (regular expression)anchor for the start of a string
A
.downcase
.index
^
26. method that tells if an argument is within the limits of two numbers
local variable
s
object orientation
.between?
27. the process of deciding which sections of code to execute based on conditions
!=
flow control
w
call
28. a way to describe patterns in text
s
.include?()
regular expressions
.gsub
29. a string method that splits a string into an array
.scan()
constant
s
.split
30. symbol for a global variable which can be called from anywhere in an application.
.methods
$
.gsub
ARGV
31. array method that removes last item from an array
parameters
.pop
^
.upcase
32. (regular expression)any non-whitespace character
S
^
flow control
<
33. runs a proc that has been stored to a variable
call
.even?
@
.downcase
34. a special class that holds attributes and data but no methods.
<=>
.sort
start_with?
struct
35. passes value into block of code and assigns it the label of "x"
class
#{}
W
|x|
36. (regular expression)anchor for the end of a string
.sub
operators
Z
regular expressions
37. a string method that removes last character
<<
.match
$
.chop
38. an array method that
.each
.scan()
.capitalize
>=
39. an array method that
!
variable
.each
W
40. conditionally stops a loop
break if
.between?
.each
.next
41. comparison operator for "equal to"
.map
strip
.capitalize
==
42. returns ASCII value of x
A
$
?x
.downcase
43. operator for "Boolean not"
!
w
ARGV
.map
44. mixing expressions into strings
<<
.match
float
interpolation
45. a string method that reverses capitalization
@
<<
.swapcase
object
46. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
start_with?
s
class
constant
47. array method that transforms the contents of an array according to a specified set of rules
?x
$
.map
flow control
48. data passed to methods in parenthesis after a method's name.
<=
iterator
arguments
D
49. greater than or equal to (comparison operator)
.capitalize
.sub
constant
>=
50. a regular method that is the anchor for the end of a line
?x
=>
|x|
$