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. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
|x|
&&
<=>
s
2. the representation of data from a start to end point
.index
code blocks
range
.swapcase
3. (regular expression)anchor for the end of a string
Z
.gsub
object orientation
.between?
4. a string method that scans object for arguments - uses regular expressions.
W
.scan()
struct
iterator
5. a string method that substitutes ALL occurrences of a string with another.
struct
.gsub
.next
%arg
6. variable that can be used only where it is defined within an application
variable
constant
local variable
.chop
7. (regular expression)any digit
variable
?x
d
A
8. an array method that returns TRUE or FALSE if the array contains specified item
&&
not and or
.include?()
#{}
9. method that tells an argument's place value within an array
.each
D
break if
.index
10. conditionally stops a loop
regular expressions
kernel
break if
.match
11. a special array made from arguments that were added to the command line at start up.
D
.next
ARGV
$:.
12. interpolation operator
&&
.index
<
#{}
13. method to determine if an object is an even number
<=>
.even?
.gsub
Z
14. a single instance of a class.
.include?()
object
%
==
15. a string method that splits a string into an array
.match
struct
yield
.split
16. a string method that makes string all caps.
<=>
|x|
.upcase
interpolation
17. (regular expression)any nonletter or nondigit or nonunderscore.
.chop
.downcase
W
@@
18. a string method that substitutes THE FIRST occurrence of a string within a string
!
!
.sub
.sort
19. a string method that uncapitalizes first character
.downcase
<=
object orientation
constant
20. assigns a key to a hash value
^
s
$:.
=>
21. array method that transforms the contents of an array according to a specified set of rules
<=
.sub
.map
@
22. an array method that
.each
D
|x|
.split
23. method that tells if an argument is within the limits of two numbers
%w{}
$
.next
.between?
24. operator for "Boolean not"
.next
!
.downcase
end_with?
25. (regular expression)any letter or digit or underscore
kernel
object orientation
constant
w
26. using classes and objects to make real-world concepts in programming.
=>
object orientation
.chop
.map
27. method that sorts items alphabetically
.sort
parameters
.next
.match
28. interpolation operator
#{}
flow control
constant
^
29. a string method that scans object for arguments - uses regular expressions.
.next
.gsub
.swapcase
.scan()
30. an array method that
!
.each
=>
s
31. a whole number
operators
integer
local variable
^
32. 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
s
@
.match
start_with?
33. a collection of characters such as "Hello world!"
regular expressions
Z
string
<<
34. comparison operator for "equal to"
==
constant
start_with?
.sort
35. greater than or equal to (comparison operator)
.between?
>=
.chop
.capitalize
36. (regular expression)anchor for the end of a string
object orientation
Z
yield
<
37. mixing expressions into strings
s
interpolation
call
.pop
38. data passed to methods in parenthesis after a method's name.
Z
local variable
>=
arguments
39. a string method that capitalizes first character
strip
.capitalize
.each
.match
40. sets a single character text delimiter for multi-line strings
variable
%q
.scan()
.each
41. array method that removes last item from an array
.pop
code blocks
.map
?x
42. (regular expression)any digit
d
object orientation
.sort
#{}
43. string method that determines if a string starts with a defined string
start_with?
constant
.split
&&
44. (regular expression)any nondigit
.index
D
<
constant
45. a placeholder for a single object that may be a number or string or list or instance of a defined class
A
W
variable
constant
46. runs a proc that has been stored to a variable
.split
call
strip
.next
47. a definition of a concept in an object oriented language.
class
struct
.pop
code blocks
48. a string method that removes last character
.chop
#{}
$
^
49. tells you all methods that an object may invoke.
range
.methods
.sort
.between?
50. string method that "cleans" extra spaces from strings
A
.next
library
strip