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. data passed to methods in parenthesis after a method's name.
d
<=
parameters
@
2. defines array of multiple elements seperated by a space
%w{}
^
yield
.map
3. a collection of objects with a defined order
A
<<
array
=>
4. greater than or equal to (comparison operator)
@@
call
>=
start_with?
5. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
S
class
struct
kernel
6. sets a single character text delimiter for multi-line strings
?x
%q
^
$:.
7. a string method that removes last character
.chop
$
|x|
object
8. method that tells if an argument is within the limits of two numbers
call
.between?
S
#{}
9. (regular expression)any non-whitespace character
A
constant
%q
S
10. 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.
string
d
code blocks
.select
11. (regular expression)any letter or digit or underscore
^
struct
constant
w
12. method that sorts items alphabetically
.map
.sort
$:.
end_with?
13. a string method that scans object for arguments - uses regular expressions.
^
#{}
.scan()
.capitalize
14. methods that step through lists element by element (like each or upto or times etc)
class
iterator
@
.pop
15. a string method that scans object for arguments - uses regular expressions.
#{}
.scan()
!=
.sort
16. (regular expression)any nonletter or nondigit or nonunderscore.
.split
W
float
.pop
17. (regular expression)anchor for the end of a string
Z
<<
.scan()
.downcase
18. operator for "Boolean not"
flow control
!
not and or
.include?()
19. a regular method that is the anchor for the beggining of a line
^
.split
=>
$
20. interpolation operator
class
#{}
call
.next
21. Boolean not and or (lower preference)
.methods
.map
W
not and or
22. a regular method that is the anchor for the beggining of a line
?x
^
.each
.chop
23. a string method that makes string all caps.
!
.upcase
.select
start_with?
24. a string method that substituition. Requires 2 arguments.
A
.scan()
interpolation
.sub
25. comparison operator for "not equal to"
.upcase
!=
.pop
<<
26. interpolation operator
W
#{}
if?then:else
<<
27. the ternary operator if?then:else
$
%q
if?then:else
constant
28. a number with a decimal point such as 1.0 or 3.1
.downcase
float
$
==
29. tells ruby a value to pass while iterating a block of code
.map
yield
#{}
constant
30. the remainder operator
.map
!=
.next
%
31. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
%q
<=>
!
d
32. a single instance of a class.
.chop
object
$
A
33. a regular method that is the anchor for the end of a line
operators
hash
.capitalize
$
34. a module of classes and or functions
>=
.chop
struct
library
35. a fixed value that begins with a capital letter such as Pi.
<=>
constant
.even?
=>
36. a string method that capitalizes first character
.even?
start_with?
.capitalize
<<
37. (regular expression)any letter or digit or underscore
.split
iterator
break if
w
38. passes value into block of code and assigns it the label of "x"
struct
.chop
.index
|x|
39. array method that transforms the contents of an array according to a specified set of rules
$:.
S
A
.map
40. a variable that lists the directories where Ruby will look for libraries
%w{}
$:.
.each
?x
41. (regular expression)any nondigit
D
struct
.scan()
.index
42. array method that selects particular items from an array
%w{}
.select
$
hash
43. an array method that
.each
.map
.capitalize
.next
44. operator for "Boolean not"
!
==
.sub
.chop
45. symbol for a global variable which can be called from anywhere in an application.
$
interpolation
S
$:.
46. a whole number
?x
object
integer
d
47. a special array made from arguments that were added to the command line at start up.
w
ARGV
range
S
48. less than or equal to (comparison operator)
.upcase
.include?()
$
<=
49. string method that "cleans" extra spaces from strings
start_with?
@@
hash
strip
50. data passed to methods in parenthesis after a method's name.
.split
#{}
S
arguments