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 whole number
integer
end_with?
%arg
class
2. Boolean OR operator
regular expressions
||
.capitalize
Z
3. array method that removes last item from an array
.pop
.chop
<<
W
4. a string method that makes string all caps.
S
.upcase
.next
strip
5. 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.
.map
code blocks
yield
w
6. (regular expression)any space or tab or newline or whitespace
<=
W
s
.include?()
7. a string method that reverses capitalization
.between?
.swapcase
local variable
S
8. tells you all methods that an object may invoke.
.methods
.split
$
ARGV
9. a way to describe patterns in text
constant
regular expressions
.gsub
&&
10. a string method that substitutes THE FIRST occurrence of a string within a string
<=>
if?then:else
hash
.sub
11. less than or equal to (comparison operator)
%w{}
!=
%
<=
12. method that tells an argument's place value within an array
S
.index
.chop
?x
13. a set of code within a class or object
object
object orientation
method
not and or
14. a variable that lists the directories where Ruby will look for libraries
class
break if
$:.
.capitalize
15. a string method that scans object for arguments - uses regular expressions.
.capitalize
.scan()
range
code blocks
16. symbol for a global variable which can be called from anywhere in an application.
!=
<<
$
.chop
17. string method that determines if a string ends with a defined string
float
local variable
interpolation
end_with?
18. a string method that substitutes ALL occurrences of a string with another.
$:.
.gsub
==
.next
19. a collection of characters such as "Hello world!"
string
hash
yield
call
20. an array method that
parameters
.upcase
.each
$
21. data passed to methods in parenthesis after a method's name.
$
s
A
arguments
22. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
string
@
<=>
<
23. (regular expression)any non-whitespace character
d
S
W
!=
24. a definition of a concept in an object oriented language.
arguments
string
class
break if
25. array method that selects particular items from an array
!
%w{}
.select
=>
26. a string method that uncapitalizes first character
.pop
.downcase
array
%arg
27. a string method that changes last character to next alphabetical character
.downcase
.next
A
$
28. (regular expression)any nonletter or nondigit or nonunderscore.
d
!=
operators
W
29. a module of classes and or functions
?x
kernel
==
library
30. (regular expression)any nondigit
&&
Z
.next
D
31. method to determine if an object is an even number
inheritance
.match
.even?
%q
32. data passed to methods in parenthesis after a method's name.
parameters
?x
.include?()
operators
33. method that tells if an argument is within the limits of two numbers
.between?
.split
D
#{}
34. (regular expression)anchor for the end of a string
.match
ARGV
<=
Z
35. returns ASCII value of x
.downcase
?x
object
yield
36. runs a proc that has been stored to a variable
call
.next
end_with?
integer
37. a string method that capitalizes first character
.capitalize
|x|
.sub
$:.
38. array method that transforms the contents of an array according to a specified set of rules
.map
<
ARGV
.even?
39. the representation of data from a start to end point
range
variable
break if
.chop
40. a string method that scans object for arguments - uses regular expressions.
<<
.scan()
.sort
w
41. tells ruby a value to pass while iterating a block of code
.sub
ARGV
&&
yield
42. pushes a new item onto the end of an array.
A
!
<
<<
43. assigns a key to a hash value
|x|
.next
=>
object
44. defines an instance variable which only exists within the object it was created in.
integer
class
@
=>
45. (regular expression)any digit
.downcase
.map
d
.select
46. sets a text delimiter
%arg
s
.map
&&
47. a string method that substituition. Requires 2 arguments.
<
W
class
.sub
48. a single instance of a class.
object
call
.next
W
49. a string method that substitutes ALL occurrences of a string with another.
constant
.gsub
w
.capitalize
50. passes value into block of code and assigns it the label of "x"
|x|
@
A
.select