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. (regular expression)any space or tab or newline or whitespace
.next
.scan()
s
d
2. data passed to methods in parenthesis after a method's name.
parameters
%
start_with?
==
3. the representation of data from a start to end point
%w{}
$
start_with?
range
4. a fixed value that begins with a capital letter such as Pi.
D
parameters
constant
|x|
5. (regular expression)any letter or digit or underscore
.methods
w
$
kernel
6. comparison operator for "not equal to"
integer
!=
operators
.pop
7. sets a text delimiter
class
%arg
end_with?
parameters
8. (regular expression)any nonletter or nondigit or nonunderscore.
.methods
W
s
.map
9. a way to describe patterns in text
|x|
Z
regular expressions
.chop
10. a number with a decimal point such as 1.0 or 3.1
s
kernel
.downcase
float
11. a module of classes and or functions
class
inheritance
library
.downcase
12. the remainder operator
%
.scan()
A
.upcase
13. method that tells an argument's place value within an array
#{}
.even?
.index
.match
14. a string method that capitalizes first character
.capitalize
!=
d
local variable
15. a regular method that is the anchor for the end of a line
object
$
?x
iterator
16. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
flow control
S
constant
!=
17. sets a single character text delimiter for multi-line strings
constant
%q
yield
arguments
18. 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.
#{}
code blocks
range
Z
19. interpolation operator
flow control
<<
#{}
?x
20. passes value into block of code and assigns it the label of "x"
W
.sub
!=
|x|
21. a string method that removes last character
.chop
W
==
.upcase
22. method that tells if an argument is within the limits of two numbers
.between?
.downcase
class
A
23. array method that removes last item from an array
d
.pop
|x|
.split
24. (regular expression)anchor for the end of a string
ARGV
parameters
.even?
Z
25. (regular expression)anchor for the start of a string
interpolation
inheritance
A
break if
26. (regular expression)any non-whitespace character
range
|x|
#{}
S
27. data passed to methods in parenthesis after a method's name.
?x
.even?
%
arguments
28. method that tells an argument's place value within an array
W
.index
.pop
.methods
29. passes value into block of code and assigns it the label of "x"
inheritance
interpolation
=>
|x|
30. interpolation operator
=>
.chop
#{}
Z
31. (regular expression)anchor for the start of a string
A
.between?
.next
.split
32. a string method that makes string all caps.
?x
.upcase
code blocks
.pop
33. array method that transforms the contents of an array according to a specified set of rules
regular expressions
!
&&
.map
34. string method that "cleans" extra spaces from strings
code blocks
S
%
strip
35. tells you all methods that an object may invoke.
.methods
.scan()
%arg
interpolation
36. a placeholder for a single object that may be a number or string or list or instance of a defined class
if?then:else
.each
variable
.downcase
37. a string method that removes last character
array
arguments
A
.chop
38. (regular expression)anchor for the end of a string
method
.between?
<=
Z
39. a collection of characters such as "Hello world!"
.upcase
if?then:else
string
range
40. allows for classes to relate to each other in a hierarchy
regular expressions
inheritance
.scan()
.map
41. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
.map
|x|
%w{}
42. an array method that
.index
.each
struct
W
43. a collection of objects or values with associated keys
yield
hash
.next
!
44. a string method that uncapitalizes first character
S
.downcase
Z
integer
45. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.next
<=>
.sub
not and or
46. a string method that substitutes ALL occurrences of a string with another.
^
.gsub
<=
.between?
47. Boolean not and or (lower preference)
.between?
d
not and or
%w{}
48. runs a proc that has been stored to a variable
.include?()
call
.downcase
constant
49. a string method that changes last character to next alphabetical character
arguments
array
.next
$
50. used in an expression to manipulate objects
Z
kernel
?x
operators