SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. data passed to methods in parenthesis after a method's name.
$:.
.capitalize
class
arguments
2. method that tells an argument's place value within an array
.index
<<
Z
object orientation
3. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
if?then:else
.index
kernel
float
4. a string method that substitutes THE FIRST occurrence of a string within a string
.methods
string
.sub
.each
5. returns ASCII value of x
?x
ARGV
|x|
.include?()
6. (regular expression)any nonletter or nondigit or nonunderscore.
&&
W
.sort
Z
7. a string method that substituition. Requires 2 arguments.
.downcase
.include?()
.sub
&&
8. a regular method that is the anchor for the end of a line
if?then:else
$
S
^
9. a collection of objects or values with associated keys
.swapcase
hash
#{}
#{}
10. a string method that splits a string into an array
variable
.split
>=
strip
11. array method that transforms the contents of an array according to a specified set of rules
%w{}
integer
.map
<<
12. defines a class variable. Can be used anywhere within a class
@@
s
.map
D
13. passes value into block of code and assigns it the label of "x"
strip
d
|x|
!
14. a string method that uncapitalizes first character
#{}
.scan()
start_with?
.downcase
15. less than or equal to (comparison operator)
<=
?x
=>
ARGV
16. (regular expression)any letter or digit or underscore
%q
w
constant
.include?()
17. a string method that removes last character
.split
D
.chop
#{}
18. method that tells if an argument is within the limits of two numbers
.between?
.pop
=>
D
19. (regular expression)any digit
yield
constant
d
.sub
20. defines array of multiple elements seperated by a space
S
inheritance
%w{}
.each
21. a definition of a concept in an object oriented language.
class
hash
strip
&&
22. an array method that
.each
.next
hash
.sub
23. (regular expression)any space or tab or newline or whitespace
.each
constant
s
W
24. used in an expression to manipulate objects
end_with?
<=>
.between?
operators
25. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
||
integer
<
<=>
26. method that tells an argument's place value within an array
s
.index
%arg
library
27. (regular expression)any nondigit
D
.split
.scan()
constant
28. 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.
object
<
.map
code blocks
29. comparison operator for "equal to"
.between?
D
==
struct
30. (regular expression)any non-whitespace character
%
kernel
S
.capitalize
31. the remainder operator
.sort
%
!
ARGV
32. allows for classes to relate to each other in a hierarchy
W
class
integer
inheritance
33. array assignment oprator
&&
.chop
<<
w
34. methods that step through lists element by element (like each or upto or times etc)
.split
Z
iterator
Z
35. Boolean AND operator
float
|x|
&&
?x
36. a set of code within a class or object
not and or
method
.even?
.include?()
37. Boolean OR operator
.between?
||
Z
kernel
38. a string method that removes last character
.methods
break if
@@
.chop
39. array method that removes last item from an array
array
.pop
.select
.map
40. sets a text delimiter
%arg
.swapcase
.gsub
==
41. a definition of a concept in an object oriented language.
@
A
class
s
42. tells you all methods that an object may invoke.
.index
.between?
.methods
method
43. comparison operator for "not equal to"
A
.include?()
not and or
!=
44. Boolean not and or (lower preference)
.even?
not and or
!=
.downcase
45. the representation of data from a start to end point
range
flow control
.methods
||
46. data passed to methods in parenthesis after a method's name.
local variable
parameters
.split
$:.
47. (regular expression)any nondigit
%w{}
flow control
D
.each
48. (regular expression)any space or tab or newline or whitespace
?x
s
<
operators
49. method to determine if an object is an even number
!
.upcase
s
.even?
50. (regular expression)anchor for the start of a string
.chop
A
.between?
%w{}