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 string method that capitalizes first character
kernel
s
.capitalize
==
2. array method that transforms the contents of an array according to a specified set of rules
.sort
?x
.map
constant
3. array method that transforms the contents of an array according to a specified set of rules
.map
|x|
object
.capitalize
4. (regular expression)any nonletter or nondigit or nonunderscore.
.methods
A
W
if?then:else
5. string method that determines if a string starts with a defined string
.downcase
start_with?
.map
arguments
6. variable that can be used only where it is defined within an application
.each
local variable
w
.gsub
7. defines a class variable. Can be used anywhere within a class
ARGV
@@
struct
.pop
8. a string method that makes string all caps.
.upcase
.swapcase
@
.include?()
9. (regular expression)any space or tab or newline or whitespace
.capitalize
.between?
s
.methods
10. an array method that
>=
.even?
.sort
.each
11. (regular expression)any nondigit
$
D
float
.capitalize
12. data passed to methods in parenthesis after a method's name.
.map
.next
d
arguments
13. a string method that removes last character
.chop
w
Z
d
14. method that tells an argument's place value within an array
s
.index
if?then:else
method
15. method that sorts items alphabetically
d
.sort
.each
.index
16. a string method that substitutes ALL occurrences of a string with another.
code blocks
@@
.gsub
object
17. a special class that holds attributes and data but no methods.
struct
.sub
iterator
%w{}
18. (regular expression)any letter or digit or underscore
>=
!
D
w
19. a regular method that is the anchor for the beggining of a line
parameters
w
!
^
20. method that tells if an argument is within the limits of two numbers
|x|
&&
.between?
call
21. a module of classes and or functions
S
@@
library
%q
22. (regular expression)any digit
d
flow control
regular expressions
Z
23. greater than or equal to (comparison operator)
>=
break if
code blocks
^
24. interpolation operator
#{}
?x
.swapcase
!
25. tells ruby a value to pass while iterating a block of code
#{}
inheritance
yield
@
26. a string method that changes last character to next alphabetical character
class
break if
.next
constant
27. methods that step through lists element by element (like each or upto or times etc)
W
.map
!=
iterator
28. a string method that uncapitalizes first character
.pop
||
.downcase
W
29. pushes a new item onto the end of an array.
call
<<
<
@
30. operator for "Boolean not"
object orientation
parameters
!
kernel
31. a whole number
==
integer
Z
<<
32. a collection of objects or values with associated keys
.each
hash
.select
.methods
33. array method that removes last item from an array
struct
|x|
.pop
d
34. used in an expression to manipulate objects
S
%q
range
operators
35. a definition of a concept in an object oriented language.
.map
>=
class
code blocks
36. returns ASCII value of x
?x
local variable
A
|x|
37. 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.
parameters
w
code blocks
object orientation
38. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.upcase
yield
not and or
<=>
39. method that tells if an argument is within the limits of two numbers
D
.include?()
.between?
A
40. symbol for a global variable which can be called from anywhere in an application.
d
%
|x|
$
41. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
constant
!
if?then:else
.sub
42. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
flow control
constant
.map
43. class inheritance operator.
<<
.include?()
Z
<
44. a string method that scans object for arguments - uses regular expressions.
.scan()
operators
D
|x|
45. string method that determines if a string ends with a defined string
strip
end_with?
A
D
46. (regular expression)any space or tab or newline or whitespace
object orientation
<
code blocks
s
47. (regular expression)any letter or digit or underscore
hash
break if
range
w
48. array method that removes last item from an array
#{}
method
.pop
$
49. method to determine if an object is an even number
.chop
.even?
<<
<
50. a set of code within a class or object
.chop
!=
method
D