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. an array method that
A
.sort
.each
.map
2. symbol for a global variable which can be called from anywhere in an application.
%arg
$
local variable
.index
3. string method that determines if a string starts with a defined string
.each
Z
start_with?
class
4. runs a proc that has been stored to a variable
|x|
call
D
Z
5. (regular expression)any non-whitespace character
S
%
local variable
interpolation
6. an array method that
if?then:else
.upcase
hash
.each
7. a special array made from arguments that were added to the command line at start up.
ARGV
call
class
^
8. greater than or equal to (comparison operator)
>=
<
d
A
9. a string method that changes last character to next alphabetical character
constant
.downcase
.next
w
10. data passed to methods in parenthesis after a method's name.
.methods
W
.split
parameters
11. method to determine if an object is an even number
%w{}
&&
s
.even?
12. the representation of data from a start to end point
.include?()
constant
.gsub
range
13. method that tells an argument's place value within an array
$
float
.index
D
14. an array method that returns TRUE or FALSE if the array contains specified item
!=
W
.map
.include?()
15. a regular method that is the anchor for the beggining of a line
^
arguments
method
operators
16. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
call
kernel
&&
?x
17. defines array of multiple elements seperated by a space
%w{}
array
S
.match
18. a collection of objects or values with associated keys
hash
?x
.even?
flow control
19. a collection of objects with a defined order
d
.next
array
.downcase
20. an array method that returns TRUE or FALSE if the array contains specified item
.between?
.include?()
.sub
.downcase
21. a special class that holds attributes and data but no methods.
.map
struct
<<
A
22. method that tells an argument's place value within an array
%q
.index
.match
<=
23. the remainder operator
%
array
call
!=
24. array method that transforms the contents of an array according to a specified set of rules
break if
code blocks
parameters
.map
25. mixing expressions into strings
A
.gsub
hash
interpolation
26. (regular expression)any digit
%q
object
d
flow control
27. variable that can be used only where it is defined within an application
operators
local variable
A
S
28. a string method that scans object for arguments - uses regular expressions.
.scan()
if?then:else
.upcase
array
29. a way to describe patterns in text
inheritance
.capitalize
regular expressions
%arg
30. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
constant
.downcase
<=>
ARGV
31. data passed to methods in parenthesis after a method's name.
flow control
||
$:.
arguments
32. array assignment oprator
<<
ARGV
<
!=
33. a number with a decimal point such as 1.0 or 3.1
float
|x|
?x
@
34. (regular expression)anchor for the start of a string
end_with?
.pop
range
A
35. array method that removes last item from an array
.pop
.downcase
>=
class
36. a string method that scans object for arguments - uses regular expressions.
library
.scan()
w
arguments
37. a string method that uncapitalizes first character
arguments
$:.
.include?()
.downcase
38. a string method that removes last character
.chop
.index
<=>
.map
39. (regular expression)anchor for the end of a string
w
.gsub
Z
.upcase
40. string method that "cleans" extra spaces from strings
strip
W
.pop
d
41. methods that step through lists element by element (like each or upto or times etc)
%
.next
.between?
iterator
42. a fixed value that begins with a capital letter such as Pi.
|x|
object orientation
.include?()
constant
43. method that tells if an argument is within the limits of two numbers
S
.between?
.chop
!
44. the ternary operator if?then:else
if?then:else
$
.split
kernel
45. comparison operator for "not equal to"
<
Z
<=>
!=
46. defines an instance variable which only exists within the object it was created in.
regular expressions
@
interpolation
A
47. a variable that lists the directories where Ruby will look for libraries
$:.
break if
.between?
.downcase
48. operator for "Boolean not"
<<
operators
!
%
49. allows for classes to relate to each other in a hierarchy
inheritance
^
S
A
50. method to determine if an object is an even number
not and or
.even?
.split
.include?()