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 collection of objects or values with associated keys
>=
hash
$
regular expressions
2. a string method that reverses capitalization
.swapcase
.each
<<
inheritance
3. operator for "Boolean not"
!
?x
>=
arguments
4. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.split
=>
.sub
<=>
5. data passed to methods in parenthesis after a method's name.
arguments
.between?
strip
method
6. method that tells if an argument is within the limits of two numbers
if?then:else
arguments
.between?
.match
7. less than or equal to (comparison operator)
<=
.match
d
D
8. class inheritance operator.
<
s
.next
break if
9. a special array made from arguments that were added to the command line at start up.
local variable
%arg
ARGV
.upcase
10. greater than or equal to (comparison operator)
object orientation
>=
.pop
not and or
11. tells you all methods that an object may invoke.
.methods
break if
string
start_with?
12. a string method that substituition. Requires 2 arguments.
.sub
.include?()
.split
hash
13. (regular expression)any nondigit
%w{}
.downcase
D
W
14. operator for "Boolean not"
.index
@
D
!
15. 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
yield
.match
parameters
#{}
16. a collection of characters such as "Hello world!"
d
<
end_with?
string
17. a definition of a concept in an object oriented language.
break if
class
<
&&
18. a number with a decimal point such as 1.0 or 3.1
call
class
^
float
19. a set of code within a class or object
.match
method
.pop
#{}
20. returns ASCII value of x
%
.pop
?x
operators
21. a string method that removes last character
library
.chop
range
d
22. variable that can be used only where it is defined within an application
.even?
local variable
range
#{}
23. sets a single character text delimiter for multi-line strings
=>
%q
parameters
%arg
24. a whole number
A
parameters
@@
integer
25. (regular expression)anchor for the end of a string
range
%arg
Z
start_with?
26. defines an instance variable which only exists within the object it was created in.
.sub
@
%q
.include?()
27. returns ASCII value of x
.even?
?x
regular expressions
!
28. a module of classes and or functions
library
d
.each
kernel
29. (regular expression)any non-whitespace character
.each
.methods
kernel
S
30. method that sorts items alphabetically
.sort
arguments
integer
.upcase
31. a string method that changes last character to next alphabetical character
.next
iterator
.pop
operators
32. a single instance of a class.
.map
.each
object
if?then:else
33. (regular expression)any space or tab or newline or whitespace
s
W
hash
!=
34. (regular expression)any digit
d
ARGV
constant
%w{}
35. (regular expression)anchor for the start of a string
<<
S
W
A
36. comparison operator for "equal to"
.map
call
interpolation
==
37. a regular method that is the anchor for the beggining of a line
^
<
kernel
.map
38. string method that determines if a string ends with a defined string
end_with?
^
%arg
|x|
39. (regular expression)anchor for the end of a string
!=
Z
>=
not and or
40. array method that selects particular items from an array
@
s
class
.select
41. using classes and objects to make real-world concepts in programming.
regular expressions
.sub
object orientation
s
42. Boolean not and or (lower preference)
array
not and or
.even?
.between?
43. a way to describe patterns in text
range
regular expressions
integer
call
44. an array method that
.each
ARGV
.split
$:.
45. (regular expression)any non-whitespace character
!=
.even?
S
interpolation
46. the ternary operator if?then:else
.include?()
.each
if?then:else
.sub
47. a string method that splits a string into an array
.gsub
constant
.scan()
.split
48. Boolean OR operator
||
D
s
d
49. array method that transforms the contents of an array according to a specified set of rules
%q
#{}
.upcase
.map
50. array assignment oprator
S
%arg
<=
<<