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. (regular expression)any nondigit
start_with?
D
break if
.index
2. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
<<
%w{}
^
3. a regular method that is the anchor for the beggining of a line
^
.next
class
interpolation
4. interpolation operator
ARGV
#{}
code blocks
&&
5. data passed to methods in parenthesis after a method's name.
.map
not and or
end_with?
parameters
6. (regular expression)any digit
.scan()
$:.
d
S
7. (regular expression)any letter or digit or underscore
.chop
.upcase
.next
w
8. passes value into block of code and assigns it the label of "x"
!=
|x|
%
local variable
9. assigns a key to a hash value
=>
<=>
$
!=
10. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
arguments
.scan()
<<
constant
11. an array method that
.next
@@
.each
<
12. a regular method that is the anchor for the beggining of a line
object
.each
.upcase
^
13. method that tells if an argument is within the limits of two numbers
.between?
.each
.methods
%arg
14. a collection of characters such as "Hello world!"
string
!=
D
.even?
15. (regular expression)any letter or digit or underscore
S
.capitalize
.scan()
w
16. greater than or equal to (comparison operator)
.chop
>=
#{}
float
17. a string method that removes last character
<<
operators
class
.chop
18. a regular method that is the anchor for the end of a line
.map
interpolation
.between?
$
19. 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
.next
local variable
.match
.chop
20. (regular expression)anchor for the start of a string
.upcase
A
.sub
.each
21. data passed to methods in parenthesis after a method's name.
.each
.capitalize
arguments
Z
22. (regular expression)any space or tab or newline or whitespace
ARGV
s
!
call
23. a definition of a concept in an object oriented language.
regular expressions
arguments
.next
class
24. a special class that holds attributes and data but no methods.
struct
Z
interpolation
array
25. Boolean not and or (lower preference)
iterator
constant
^
not and or
26. an array method that
.each
Z
object
array
27. (regular expression)any nondigit
w
string
integer
D
28. pushes a new item onto the end of an array.
.between?
<<
strip
.swapcase
29. a whole number
integer
w
start_with?
.map
30. (regular expression)anchor for the end of a string
@
operators
%w{}
Z
31. (regular expression)any non-whitespace character
ARGV
S
.chop
<<
32. allows for classes to relate to each other in a hierarchy
inheritance
W
!
struct
33. a number with a decimal point such as 1.0 or 3.1
d
S
%q
float
34. conditionally stops a loop
.chop
.map
break if
.chop
35. method to determine if an object is an even number
s
<
.even?
%
36. (regular expression)any digit
d
.pop
%q
.even?
37. method that sorts items alphabetically
.sort
#{}
S
D
38. a string method that substituition. Requires 2 arguments.
.downcase
.sub
.capitalize
w
39. array method that selects particular items from an array
variable
.next
.select
.even?
40. operator for "Boolean not"
W
.split
constant
!
41. a string method that substitutes ALL occurrences of a string with another.
|x|
==
.gsub
<
42. operator for "Boolean not"
<<
.sub
.pop
!
43. defines a class variable. Can be used anywhere within a class
constant
$
.upcase
@@
44. tells you all methods that an object may invoke.
<=>
.map
.scan()
.methods
45. the ternary operator if?then:else
.pop
float
if?then:else
s
46. Boolean AND operator
%
&&
.next
S
47. method that tells an argument's place value within an array
^
==
constant
.index
48. string method that "cleans" extra spaces from strings
|x|
variable
s
strip
49. a fixed value that begins with a capital letter such as Pi.
constant
s
<=
code blocks
50. a section of code with no discrete name which is not a method by itself that can be called upon and can receive an argument.
.scan()
array
code blocks
.each