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 definition of a concept in an object oriented language.
arguments
class
W
<<
2. (regular expression)any letter or digit or underscore
.methods
.sort
.pop
w
3. a string method that removes last character
start_with?
>=
S
.chop
4. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
library
W
>=
5. string method that determines if a string ends with a defined string
float
class
d
end_with?
6. an array method that returns TRUE or FALSE if the array contains specified item
.scan()
.include?()
class
array
7. a string method that substitutes ALL occurrences of a string with another.
.map
.gsub
>=
if?then:else
8. a string method that changes last character to next alphabetical character
.next
%q
D
.even?
9. data passed to methods in parenthesis after a method's name.
code blocks
parameters
ARGV
Z
10. sets a text delimiter
.downcase
yield
.include?()
%arg
11. a string method that substituition. Requires 2 arguments.
object orientation
parameters
.index
.sub
12. method to determine if an object is an even number
.upcase
.even?
inheritance
strip
13. a collection of objects or values with associated keys
#{}
hash
.between?
.select
14. a string method that uncapitalizes first character
W
.each
.downcase
%w{}
15. tells ruby a value to pass while iterating a block of code
ARGV
%
.sort
yield
16. (regular expression)any nondigit
struct
not and or
.gsub
D
17. class inheritance operator.
.scan()
.methods
<
break if
18. method that tells an argument's place value within an array
.index
.gsub
S
D
19. a string method that makes string all caps.
.downcase
.upcase
$
yield
20. a way to describe patterns in text
constant
regular expressions
Z
.each
21. tells you all methods that an object may invoke.
array
Z
!=
.methods
22. method that sorts items alphabetically
.map
variable
s
.sort
23. a string method that substitutes ALL occurrences of a string with another.
.gsub
not and or
operators
.scan()
24. a string method that scans object for arguments - uses regular expressions.
yield
hash
<
.scan()
25. (regular expression)anchor for the end of a string
Z
<
break if
.include?()
26. comparison operator for "not equal to"
Z
!=
iterator
%w{}
27. returns ASCII value of x
regular expressions
?x
$
<
28. a string method that removes last character
.pop
parameters
array
.chop
29. interpolation operator
#{}
break if
!
.next
30. data passed to methods in parenthesis after a method's name.
arguments
strip
|x|
#{}
31. the process of deciding which sections of code to execute based on conditions
object orientation
.downcase
flow control
.sub
32. defines an instance variable which only exists within the object it was created in.
w
D
end_with?
@
33. assigns a key to a hash value
.downcase
.gsub
=>
library
34. array method that transforms the contents of an array according to a specified set of rules
.methods
.map
D
!=
35. (regular expression)any non-whitespace character
.even?
ARGV
S
.upcase
36. (regular expression)anchor for the start of a string
.methods
variable
.chop
A
37. (regular expression)any nonletter or nondigit or nonunderscore.
.match
W
library
#{}
38. pushes a new item onto the end of an array.
<<
hash
flow control
A
39. a string method that scans object for arguments - uses regular expressions.
w
Z
interpolation
.scan()
40. a string method that substitutes THE FIRST occurrence of a string within a string
struct
integer
.sub
<=>
41. a special class that holds attributes and data but no methods.
local variable
?x
struct
==
42. greater than or equal to (comparison operator)
.even?
%arg
<=
>=
43. 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
D
.match
.sub
.pop
44. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.include?()
>=
float
<=>
45. (regular expression)any digit
d
.gsub
!
=>
46. string method that "cleans" extra spaces from strings
.scan()
?x
<=
strip
47. a number with a decimal point such as 1.0 or 3.1
>=
.swapcase
string
float
48. Boolean not and or (lower preference)
!=
.include?()
$:.
not and or
49. method that tells an argument's place value within an array
<<
#{}
.index
string
50. conditionally stops a loop
!
@
d
break if