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 class that holds attributes and data but no methods.
constant
range
struct
%arg
2. a definition of a concept in an object oriented language.
class
regular expressions
=>
%arg
3. data passed to methods in parenthesis after a method's name.
arguments
ARGV
.split
==
4. string method that "cleans" extra spaces from strings
.upcase
>=
strip
end_with?
5. a string method that substituition. Requires 2 arguments.
.sub
@
.include?()
@@
6. (regular expression)any nondigit
A
D
constant
.chop
7. method to determine if an object is an even number
.even?
object
not and or
^
8. a variable that lists the directories where Ruby will look for libraries
library
end_with?
$:.
<
9. returns ASCII value of x
?x
hash
D
library
10. a string method that substitutes ALL occurrences of a string with another.
.gsub
.next
>=
.sort
11. array method that removes last item from an array
.between?
.select
.even?
.pop
12. sets a single character text delimiter for multi-line strings
string
iterator
w
%q
13. a regular method that is the anchor for the end of a line
struct
$
.upcase
library
14. runs a proc that has been stored to a variable
parameters
Z
.capitalize
call
15. an array method that
.chop
.each
variable
^
16. the ternary operator if?then:else
.even?
arguments
@@
if?then:else
17. (regular expression)any nonletter or nondigit or nonunderscore.
strip
&&
W
parameters
18. interpolation operator
struct
W
#{}
.even?
19. a way to describe patterns in text
regular expressions
start_with?
.pop
s
20. a string method that splits a string into an array
?x
.split
<=
<<
21. Boolean AND operator
&&
.even?
@@
.index
22. operator for "Boolean not"
@
.sort
.each
!
23. the representation of data from a start to end point
>=
^
range
class
24. a collection of characters such as "Hello world!"
interpolation
.include?()
d
string
25. interpolation operator
.sub
#{}
%
W
26. (regular expression)anchor for the start of a string
A
.map
.select
variable
27. returns ASCII value of x
?x
.map
<=>
<
28. symbol for a global variable which can be called from anywhere in an application.
$
!
A
.next
29. array method that transforms the contents of an array according to a specified set of rules
.map
kernel
A
.select
30. a string method that substitutes ALL occurrences of a string with another.
%w{}
.gsub
w
w
31. (regular expression)anchor for the end of a string
Z
.capitalize
flow control
W
32. a number with a decimal point such as 1.0 or 3.1
float
.scan()
^
d
33. method that tells an argument's place value within an array
.each
=>
class
.index
34. data passed to methods in parenthesis after a method's name.
.match
A
parameters
.between?
35. an array method that returns TRUE or FALSE if the array contains specified item
!
%arg
.include?()
.scan()
36. method to determine if an object is an even number
inheritance
W
|x|
.even?
37. array method that selects particular items from an array
operators
D
!=
.select
38. a string method that changes last character to next alphabetical character
.methods
.index
.next
class
39. a string method that scans object for arguments - uses regular expressions.
w
.scan()
.include?()
.upcase
40. method that tells if an argument is within the limits of two numbers
.between?
library
.capitalize
arguments
41. an array method that
&&
<<
=>
.each
42. a string method that makes string all caps.
<<
^
.gsub
.upcase
43. allows for classes to relate to each other in a hierarchy
inheritance
A
!
method
44. assigns a key to a hash value
local variable
.include?()
.capitalize
=>
45. method that tells an argument's place value within an array
.gsub
.capitalize
Z
.index
46. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
<
.include?()
^
kernel
47. 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
.match
constant
regular expressions
@
48. (regular expression)any nonletter or nondigit or nonunderscore.
W
.scan()
object
variable
49. a collection of objects or values with associated keys
hash
!
<
.scan()
50. tells ruby a value to pass while iterating a block of code
^
<<
yield
.index