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 non-whitespace character
S
w
ARGV
<<
2. an array method that
yield
#{}
.each
<<
3. array method that removes last item from an array
.select
&&
|x|
.pop
4. method that sorts items alphabetically
.next
.sort
.even?
class
5. a regular method that is the anchor for the end of a line
ARGV
.methods
$
.match
6. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
object
kernel
parameters
&&
7. interpolation operator
.map
.pop
#{}
s
8. a collection of characters such as "Hello world!"
d
.even?
string
parameters
9. a definition of a concept in an object oriented language.
integer
class
.index
.pop
10. (regular expression)any letter or digit or underscore
.include?()
|x|
w
S
11. a string method that scans object for arguments - uses regular expressions.
.gsub
<=
.scan()
.upcase
12. using classes and objects to make real-world concepts in programming.
object orientation
W
.scan()
kernel
13. the process of deciding which sections of code to execute based on conditions
.pop
.capitalize
^
flow control
14. a string method that capitalizes first character
!
.capitalize
.swapcase
#{}
15. (regular expression)any nondigit
.scan()
D
.gsub
<
16. a string method that changes last character to next alphabetical character
break if
.next
#{}
flow control
17. passes value into block of code and assigns it the label of "x"
!
d
S
|x|
18. (regular expression)anchor for the start of a string
A
s
class
!=
19. runs a proc that has been stored to a variable
call
.sub
.gsub
^
20. greater than or equal to (comparison operator)
.sub
W
>=
variable
21. Boolean AND operator
.even?
d
.chop
&&
22. a number with a decimal point such as 1.0 or 3.1
float
.upcase
hash
.sub
23. an array method that
.each
$:.
strip
.next
24. a regular method that is the anchor for the beggining of a line
.gsub
^
!=
constant
25. tells you all methods that an object may invoke.
D
s
operators
.methods
26. method that tells an argument's place value within an array
array
operators
.index
.sub
27. a single instance of a class.
range
.gsub
regular expressions
object
28. operator for "Boolean not"
.pop
.downcase
string
!
29. (regular expression)anchor for the end of a string
Z
D
.chop
!
30. a module of classes and or functions
array
regular expressions
library
Z
31. array method that transforms the contents of an array according to a specified set of rules
method
.methods
!
.map
32. returns ASCII value of x
.next
?x
class
library
33. a variable that lists the directories where Ruby will look for libraries
break if
S
$:.
.capitalize
34. a string method that splits a string into an array
|x|
#{}
.split
class
35. 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
D
call
.methods
.match
36. a string method that scans object for arguments - uses regular expressions.
%w{}
$
.scan()
constant
37. array method that transforms the contents of an array according to a specified set of rules
$
interpolation
.map
class
38. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
if?then:else
<=>
float
|x|
39. (regular expression)any nonletter or nondigit or nonunderscore.
W
Z
@@
flow control
40. a string method that substitutes ALL occurrences of a string with another.
.gsub
struct
.even?
.include?()
41. symbol for a global variable which can be called from anywhere in an application.
$
constant
.pop
&&
42. a set of code within a class or object
method
d
#{}
hash
43. a collection of objects with a defined order
.chop
array
&&
|x|
44. (regular expression)any digit
integer
iterator
d
!=
45. a string method that uncapitalizes first character
.downcase
!
code blocks
.pop
46. sets a single character text delimiter for multi-line strings
.between?
.sort
.downcase
%q
47. sets a text delimiter
%arg
!
.capitalize
|x|
48. (regular expression)any nonletter or nondigit or nonunderscore.
.swapcase
.each
.scan()
W
49. defines array of multiple elements seperated by a space
%
|x|
%w{}
<<
50. a special array made from arguments that were added to the command line at start up.
ARGV
<
.sub
!=