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. method to determine if an object is an even number
.gsub
.even?
if?then:else
.pop
2. (regular expression)any nondigit
D
.capitalize
.methods
regular expressions
3. a string method that uncapitalizes first character
d
?x
S
.downcase
4. a string method that scans object for arguments - uses regular expressions.
W
call
class
.scan()
5. a special array made from arguments that were added to the command line at start up.
$
.even?
.scan()
ARGV
6. method to determine if an object is an even number
flow control
W
.even?
.chop
7. array method that selects particular items from an array
.gsub
<=
.select
regular expressions
8. class inheritance operator.
ARGV
!
&&
<
9. array method that transforms the contents of an array according to a specified set of rules
.upcase
.capitalize
.map
.include?()
10. (regular expression)any digit
.pop
.capitalize
class
d
11. passes value into block of code and assigns it the label of "x"
|x|
ARGV
.chop
.sort
12. a string method that substitutes ALL occurrences of a string with another.
variable
.gsub
yield
S
13. a number with a decimal point such as 1.0 or 3.1
start_with?
float
.capitalize
S
14. method that tells if an argument is within the limits of two numbers
.between?
.index
kernel
.scan()
15. defines array of multiple elements seperated by a space
.next
.map
d
%w{}
16. a string method that changes last character to next alphabetical character
!=
<=
break if
.next
17. array method that removes last item from an array
.downcase
if?then:else
#{}
.pop
18. (regular expression)any digit
constant
code blocks
d
end_with?
19. symbol for a global variable which can be called from anywhere in an application.
flow control
|x|
call
$
20. used in an expression to manipulate objects
.chop
d
operators
.map
21. a definition of a concept in an object oriented language.
.each
.swapcase
class
!=
22. greater than or equal to (comparison operator)
.swapcase
.map
parameters
>=
23. defines a class variable. Can be used anywhere within a class
|x|
.gsub
.scan()
@@
24. (regular expression)any non-whitespace character
.between?
#{}
S
||
25. an array method that
.even?
s
.chop
.each
26. the remainder operator
.between?
break if
%
W
27. the ternary operator if?then:else
flow control
W
if?then:else
==
28. (regular expression)anchor for the end of a string
^
operators
Z
?x
29. a string method that scans object for arguments - uses regular expressions.
.scan()
float
!=
#{}
30. method that tells if an argument is within the limits of two numbers
.between?
.pop
$:.
^
31. Boolean not and or (lower preference)
!
#{}
not and or
.between?
32. comparison operator for "not equal to"
!=
$
D
|x|
33. data passed to methods in parenthesis after a method's name.
%w{}
code blocks
hash
parameters
34. tells you all methods that an object may invoke.
<
parameters
d
.methods
35. a string method that substitutes ALL occurrences of a string with another.
.gsub
d
s
@@
36. returns ASCII value of x
ARGV
?x
.chop
parameters
37. string method that determines if a string ends with a defined string
A
end_with?
inheritance
<
38. 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
#{}
struct
A
39. runs a proc that has been stored to a variable
.pop
?x
<=
call
40. string method that determines if a string starts with a defined string
parameters
.match
if?then:else
start_with?
41. a string method that removes last character
strip
.swapcase
.chop
%w{}
42. assigns a key to a hash value
class
=>
.methods
%w{}
43. operator for "Boolean not"
%arg
.include?()
.capitalize
!
44. a string method that makes string all caps.
string
.split
.upcase
local variable
45. comparison operator for "equal to"
array
regular expressions
if?then:else
==
46. a string method that removes last character
.scan()
==
.chop
.gsub
47. a string method that reverses capitalization
array
.swapcase
.methods
string
48. a string method that splits a string into an array
=>
A
class
.split
49. (regular expression)any nonletter or nondigit or nonunderscore.
method
W
code blocks
regular expressions
50. a regular method that is the anchor for the end of a line
<=>
|x|
D
$