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 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
strip
.match
.methods
^
2. a string method that makes string all caps.
break if
.split
>=
.upcase
3. the remainder operator
.scan()
constant
%
object
4. a collection of objects or values with associated keys
.sub
hash
iterator
range
5. a set of code within a class or object
method
.sub
|x|
variable
6. tells you all methods that an object may invoke.
.methods
.scan()
d
.pop
7. comparison operator for "not equal to"
!=
%q
library
?x
8. string method that determines if a string ends with a defined string
<<
parameters
.methods
end_with?
9. array method that selects particular items from an array
.index
.select
.index
.each
10. a string method that splits a string into an array
library
||
array
.split
11. an array method that
.each
.between?
.next
D
12. assigns a key to a hash value
regular expressions
iterator
constant
=>
13. a string method that uncapitalizes first character
>=
!=
|x|
.downcase
14. tells ruby a value to pass while iterating a block of code
yield
A
W
end_with?
15. the process of deciding which sections of code to execute based on conditions
object
flow control
d
.split
16. conditionally stops a loop
if?then:else
break if
regular expressions
%arg
17. method to determine if an object is an even number
.each
inheritance
not and or
.even?
18. array method that transforms the contents of an array according to a specified set of rules
constant
.map
.upcase
break if
19. a string method that removes last character
Z
.chop
local variable
.index
20. tells you all methods that an object may invoke.
.methods
method
.sub
==
21. defines array of multiple elements seperated by a space
.pop
range
%w{}
strip
22. method to determine if an object is an even number
.scan()
|x|
.sort
.even?
23. array method that removes last item from an array
.even?
.pop
strip
s
24. a collection of characters such as "Hello world!"
%arg
integer
|x|
string
25. (regular expression)any space or tab or newline or whitespace
s
.chop
!
call
26. operator for "Boolean not"
regular expressions
<<
.downcase
!
27. operator for "Boolean not"
S
!
.map
@
28. a special array made from arguments that were added to the command line at start up.
ARGV
^
float
flow control
29. a string method that scans object for arguments - uses regular expressions.
.scan()
.sub
$
.sort
30. a string method that uncapitalizes first character
#{}
method
S
.downcase
31. pushes a new item onto the end of an array.
d
.sub
<<
.each
32. (regular expression)anchor for the start of a string
string
A
class
D
33. string method that determines if a string starts with a defined string
.sub
code blocks
local variable
start_with?
34. sets a text delimiter
.methods
regular expressions
%arg
.swapcase
35. allows for classes to relate to each other in a hierarchy
.sub
inheritance
%w{}
s
36. array assignment oprator
%arg
.chop
<<
class
37. (regular expression)any letter or digit or underscore
!
w
start_with?
.chop
38. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<=>
.even?
.sub
W
39. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
.even?
%q
.pop
40. interpolation operator
object
.next
#{}
<=
41. (regular expression)any non-whitespace character
S
variable
.map
call
42. data passed to methods in parenthesis after a method's name.
s
.next
parameters
.sub
43. a module of classes and or functions
^
library
==
inheritance
44. data passed to methods in parenthesis after a method's name.
%
&&
arguments
.methods
45. a string method that substitutes ALL occurrences of a string with another.
.gsub
!
iterator
struct
46. greater than or equal to (comparison operator)
S
range
>=
!
47. (regular expression)any letter or digit or underscore
call
w
.each
arguments
48. a string method that reverses capitalization
.even?
.swapcase
?x
not and or
49. (regular expression)anchor for the end of a string
interpolation
Z
.between?
.downcase
50. method that tells if an argument is within the limits of two numbers
=>
Z
.between?
A