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. method that tells an argument's place value within an array
.scan()
object
.gsub
.index
2. a regular method that is the anchor for the beggining of a line
=>
.sub
.pop
^
3. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
.chop
code blocks
|x|
4. a string method that changes last character to next alphabetical character
.next
^
%
float
5. a fixed value that begins with a capital letter such as Pi.
constant
%arg
struct
.methods
6. (regular expression)anchor for the end of a string
^
kernel
Z
W
7. a regular method that is the anchor for the end of a line
$
=>
.upcase
.swapcase
8. a special array made from arguments that were added to the command line at start up.
.methods
.split
.pop
ARGV
9. less than or equal to (comparison operator)
hash
<=
.capitalize
object orientation
10. runs a proc that has been stored to a variable
call
.each
.index
object orientation
11. defines array of multiple elements seperated by a space
&&
range
#{}
%w{}
12. a string method that removes last character
.chop
.gsub
Z
.map
13. tells you all methods that an object may invoke.
d
hash
.methods
A
14. (regular expression)any digit
regular expressions
#{}
d
!=
15. operator for "Boolean not"
?x
.select
hash
!
16. array assignment oprator
array
A
<<
.swapcase
17. interpolation operator
#{}
d
hash
S
18. (regular expression)any nonletter or nondigit or nonunderscore.
W
.include?()
$
inheritance
19. array method that transforms the contents of an array according to a specified set of rules
.sub
<
.map
.chop
20. defines a class variable. Can be used anywhere within a class
@@
w
==
W
21. a string method that capitalizes first character
strip
class
.capitalize
.pop
22. a single instance of a class.
%w{}
method
object
D
23. a string method that substitutes ALL occurrences of a string with another.
.gsub
.scan()
s
float
24. Boolean AND operator
.swapcase
constant
&&
parameters
25. interpolation operator
.capitalize
W
!
#{}
26. (regular expression)any space or tab or newline or whitespace
s
D
strip
.capitalize
27. a special class that holds attributes and data but no methods.
code blocks
.scan()
A
struct
28. a definition of a concept in an object oriented language.
inheritance
local variable
class
#{}
29. (regular expression)anchor for the start of a string
<<
A
.scan()
.methods
30. method that tells an argument's place value within an array
.index
>=
.select
variable
31. string method that "cleans" extra spaces from strings
<<
class
float
strip
32. comparison operator for "not equal to"
local variable
<
!=
start_with?
33. a number with a decimal point such as 1.0 or 3.1
Z
.between?
%w{}
float
34. a string method that scans object for arguments - uses regular expressions.
.scan()
@
w
iterator
35. (regular expression)any nondigit
.select
==
A
D
36. tells you all methods that an object may invoke.
S
.methods
struct
variable
37. a string method that capitalizes first character
.capitalize
struct
&&
w
38. returns ASCII value of x
.methods
.between?
.next
?x
39. a string method that changes last character to next alphabetical character
.next
.downcase
start_with?
!=
40. a variable that lists the directories where Ruby will look for libraries
#{}
method
S
$:.
41. a collection of objects with a defined order
iterator
@
array
<<
42. a string method that substitutes THE FIRST occurrence of a string within a string
flow control
method
.sub
=>
43. class inheritance operator.
<
|x|
.each
interpolation
44. allows for classes to relate to each other in a hierarchy
$
!
<=>
inheritance
45. array method that transforms the contents of an array according to a specified set of rules
.map
arguments
W
.next
46. 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.
start_with?
yield
integer
code blocks
47. sets a single character text delimiter for multi-line strings
.between?
.sub
%q
|x|
48. a string method that makes string all caps.
string
^
strip
.upcase
49. the ternary operator if?then:else
.upcase
method
if?then:else
.map
50. an array method that
array
.each
constant
library