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 special class that holds attributes and data but no methods.
library
yield
range
struct
2. returns ASCII value of x
.select
.capitalize
?x
.split
3. an array method that
float
array
struct
.each
4. a string method (with /REGEX/ and starting_point separated by comma) that outputs the first string matching the defined regular expression from an optionally defined starting point
inheritance
regular expressions
.match
.between?
5. a number with a decimal point such as 1.0 or 3.1
float
.index
constant
s
6. conditionally stops a loop
.downcase
.each
break if
Z
7. data passed to methods in parenthesis after a method's name.
.index
arguments
.scan()
object
8. sets a text delimiter
yield
range
%arg
arguments
9. the process of deciding which sections of code to execute based on conditions
flow control
.match
.capitalize
.split
10. comparison operator for "not equal to"
.methods
library
strip
!=
11. used in an expression to manipulate objects
.methods
.even?
operators
method
12. tells you all methods that an object may invoke.
Z
.next
flow control
.methods
13. a string method that scans object for arguments - uses regular expressions.
<<
%arg
.scan()
parameters
14. allows for classes to relate to each other in a hierarchy
hash
>=
iterator
inheritance
15. 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.
.index
.capitalize
array
code blocks
16. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.index
.capitalize
<=>
constant
17. (regular expression)any digit
.map
d
W
object
18. a single instance of a class.
constant
$
==
object
19. a string method that uncapitalizes first character
s
operators
.scan()
.downcase
20. comparison operator for "not equal to"
!=
.include?()
object orientation
d
21. mixing expressions into strings
interpolation
parameters
.even?
.methods
22. interpolation operator
#{}
A
.capitalize
s
23. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
regular expressions
class
inheritance
24. array method that removes last item from an array
#{}
class
.next
.pop
25. a string method that substitutes THE FIRST occurrence of a string within a string
!=
call
#{}
.sub
26. a fixed value that begins with a capital letter such as Pi.
constant
S
flow control
.sub
27. a collection of objects or values with associated keys
!=
ARGV
hash
?x
28. (regular expression)any letter or digit or underscore
.gsub
w
parameters
class
29. pushes a new item onto the end of an array.
<<
.downcase
.chop
d
30. method that tells if an argument is within the limits of two numbers
.gsub
.between?
%q
start_with?
31. a string method that capitalizes first character
.capitalize
==
.methods
.match
32. (regular expression)anchor for the end of a string
s
%arg
Z
W
33. a collection of characters such as "Hello world!"
break if
start_with?
.between?
string
34. array method that transforms the contents of an array according to a specified set of rules
integer
.map
@
.gsub
35. a set of code within a class or object
.match
.include?()
method
constant
36. a regular method that is the anchor for the beggining of a line
Z
^
.index
.map
37. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
.index
%arg
kernel
S
38. an array method that
.each
S
integer
array
39. a regular method that is the anchor for the beggining of a line
^
local variable
.scan()
if?then:else
40. (regular expression)anchor for the end of a string
.include?()
D
array
Z
41. returns ASCII value of x
d
?x
S
.scan()
42. method that tells an argument's place value within an array
object
iterator
%
.index
43. (regular expression)any non-whitespace character
arguments
.next
S
d
44. array method that transforms the contents of an array according to a specified set of rules
.each
.select
.map
.between?
45. less than or equal to (comparison operator)
.sort
.downcase
<=
<<
46. a string method that substitutes ALL occurrences of a string with another.
.each
.gsub
.next
.capitalize
47. (regular expression)any letter or digit or underscore
start_with?
>=
?x
w
48. (regular expression)any nondigit
D
kernel
?x
Z
49. a string method that uncapitalizes first character
library
#{}
.downcase
.split
50. a string method that makes string all caps.
.upcase
object
constant
.sort