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 array made from arguments that were added to the command line at start up.
constant
ARGV
.match
^
2. sets a text delimiter
%arg
local variable
w
not and or
3. the representation of data from a start to end point
=>
range
operators
.include?()
4. (regular expression)any nonletter or nondigit or nonunderscore.
==
method
W
.downcase
5. a single instance of a class.
.even?
Z
object
.upcase
6. an array method that
.swapcase
^
Z
.each
7. string method that "cleans" extra spaces from strings
.map
$
strip
library
8. the remainder operator
object orientation
%
arguments
.each
9. (regular expression)any space or tab or newline or whitespace
.include?()
%
s
>=
10. method that tells an argument's place value within an array
W
#{}
.index
parameters
11. (regular expression)any nonletter or nondigit or nonunderscore.
class
W
float
interpolation
12. string method that determines if a string ends with a defined string
end_with?
library
string
%w{}
13. array method that removes last item from an array
.index
not and or
Z
.pop
14. (regular expression)any digit
!
d
A
iterator
15. method to determine if an object is an even number
yield
.chop
strip
.even?
16. the ternary operator if?then:else
<<
constant
if?then:else
.between?
17. a string method that substituition. Requires 2 arguments.
|x|
.capitalize
.upcase
.sub
18. string method that determines if a string starts with a defined string
.even?
start_with?
.include?()
.downcase
19. a string method that capitalizes first character
.capitalize
A
<
^
20. a special class that holds attributes and data but no methods.
!=
<=>
struct
A
21. method that tells an argument's place value within an array
.index
interpolation
w
>=
22. a string method that removes last character
flow control
.chop
^
d
23. passes value into block of code and assigns it the label of "x"
.split
|x|
struct
&&
24. a string method that substitutes ALL occurrences of a string with another.
@@
.gsub
float
>=
25. (regular expression)any letter or digit or underscore
w
string
.chop
.include?()
26. tells you all methods that an object may invoke.
library
.methods
struct
class
27. Boolean not and or (lower preference)
not and or
?x
.gsub
array
28. comparison operator for "not equal to"
!=
==
object
.include?()
29. a number with a decimal point such as 1.0 or 3.1
.next
float
array
.each
30. 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.
A
object orientation
code blocks
.sub
31. assigns a key to a hash value
strip
|x|
=>
.downcase
32. less than or equal to (comparison operator)
d
%w{}
S
<=
33. a string method that changes last character to next alphabetical character
.sub
.match
.index
.next
34. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.pop
<=>
|x|
.upcase
35. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
string
class
ARGV
36. method that tells if an argument is within the limits of two numbers
interpolation
local variable
.between?
A
37. the process of deciding which sections of code to execute based on conditions
object orientation
.even?
flow control
code blocks
38. an array method that
S
d
.each
.even?
39. operator for "Boolean not"
Z
w
float
!
40. returns ASCII value of x
.index
S
.map
?x
41. a set of code within a class or object
.downcase
method
iterator
not and or
42. used in an expression to manipulate objects
method
range
operators
.between?
43. a string method that changes last character to next alphabetical character
.next
$
|x|
code blocks
44. (regular expression)any space or tab or newline or whitespace
s
.pop
.chop
parameters
45. an array method that returns TRUE or FALSE if the array contains specified item
d
.between?
!=
.include?()
46. a way to describe patterns in text
|x|
regular expressions
.include?()
D
47. a string method that uncapitalizes first character
hash
.downcase
integer
arguments
48. allows for classes to relate to each other in a hierarchy
inheritance
.capitalize
.pop
regular expressions
49. 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
integer
.swapcase
|x|
.match
50. Boolean OR operator
%w{}
||
=>
<<