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. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
flow control
string
<=
constant
2. method that tells if an argument is within the limits of two numbers
#{}
.between?
==
end_with?
3. passes value into block of code and assigns it the label of "x"
.match
|x|
inheritance
?x
4. (regular expression)any nondigit
.between?
D
Z
interpolation
5. a string method that changes last character to next alphabetical character
.next
d
strip
.between?
6. a special array made from arguments that were added to the command line at start up.
S
S
ARGV
s
7. data passed to methods in parenthesis after a method's name.
A
constant
arguments
string
8. runs a proc that has been stored to a variable
|x|
.pop
call
kernel
9. a string method that scans object for arguments - uses regular expressions.
.between?
kernel
.scan()
if?then:else
10. comparison operator for "not equal to"
.even?
!=
<<
float
11. a regular method that is the anchor for the beggining of a line
^
.select
ARGV
object
12. (regular expression)anchor for the start of a string
.gsub
flow control
A
regular expressions
13. methods that step through lists element by element (like each or upto or times etc)
if?then:else
iterator
.next
inheritance
14. an array method that
.each
=>
local variable
.select
15. (regular expression)any nonletter or nondigit or nonunderscore.
.scan()
W
<=>
float
16. array method that selects particular items from an array
.gsub
s
?x
.select
17. the ternary operator if?then:else
string
<=
S
if?then:else
18. Boolean OR operator
yield
W
||
constant
19. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
A
||
$
20. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
struct
class
object orientation
21. defines an instance variable which only exists within the object it was created in.
.select
.pop
@
A
22. (regular expression)any nondigit
code blocks
method
D
W
23. (regular expression)any non-whitespace character
S
strip
.downcase
.include?()
24. a special class that holds attributes and data but no methods.
break if
constant
struct
strip
25. array method that removes last item from an array
A
w
.pop
!=
26. (regular expression)anchor for the start of a string
.include?()
A
D
.capitalize
27. greater than or equal to (comparison operator)
>=
d
.include?()
class
28. (regular expression)any digit
!
not and or
d
kernel
29. a string method that substituition. Requires 2 arguments.
.even?
||
.sub
#{}
30. data passed to methods in parenthesis after a method's name.
#{}
W
flow control
parameters
31. method that tells an argument's place value within an array
|x|
D
string
.index
32. a string method that splits a string into an array
.split
.next
d
ARGV
33. tells you all methods that an object may invoke.
kernel
local variable
.methods
.index
34. (regular expression)any space or tab or newline or whitespace
s
constant
.sub
.pop
35. a string method that uncapitalizes first character
%q
<
.downcase
<=>
36. a string method that reverses capitalization
=>
.swapcase
!=
!=
37. class inheritance operator.
<
.next
d
.gsub
38. (regular expression)anchor for the end of a string
constant
.map
.next
Z
39. returns ASCII value of x
.between?
?x
==
$:.
40. defines a class variable. Can be used anywhere within a class
.even?
@@
.swapcase
integer
41. the process of deciding which sections of code to execute based on conditions
flow control
float
.methods
^
42. a string method that removes last character
.between?
A
.chop
W
43. a string method that capitalizes first character
range
w
.capitalize
.chop
44. a collection of objects with a defined order
=>
.chop
constant
array
45. method that tells an argument's place value within an array
W
%arg
.index
.split
46. tells ruby a value to pass while iterating a block of code
.include?()
variable
yield
A
47. an array method that returns TRUE or FALSE if the array contains specified item
variable
$:.
.match
.include?()
48. interpolation operator
.next
.map
.downcase
#{}
49. variable that can be used only where it is defined within an application
@
local variable
s
.even?
50. allows for classes to relate to each other in a hierarchy
.even?
=>
inheritance
.gsub