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
==
.scan()
.pop
S
2. comparison operator for "equal to"
Z
?x
==
.gsub
3. a string method that uncapitalizes first character
.include?()
.index
.downcase
.map
4. returns ASCII value of x
?x
Z
.capitalize
call
5. (regular expression)anchor for the end of a string
!=
.gsub
Z
range
6. a string method that removes last character
>=
.sub
regular expressions
.chop
7. a string method that substitutes ALL occurrences of a string with another.
.gsub
interpolation
constant
flow control
8. a set of code within a class or object
method
.sort
.scan()
constant
9. (regular expression)anchor for the start of a string
A
?x
||
local variable
10. a string method that capitalizes first character
.capitalize
.match
$
w
11. a string method that substitutes ALL occurrences of a string with another.
.gsub
$
hash
end_with?
12. a module of classes and or functions
s
library
.sub
|x|
13. pushes a new item onto the end of an array.
<<
?x
Z
<
14. a collection of characters such as "Hello world!"
s
variable
if?then:else
string
15. array method that transforms the contents of an array according to a specified set of rules
%
|x|
class
.map
16. Boolean not and or (lower preference)
not and or
.index
.downcase
>=
17. a regular method that is the anchor for the beggining of a line
^
=>
.each
.scan()
18. a number with a decimal point such as 1.0 or 3.1
.chop
float
.scan()
.between?
19. (regular expression)any space or tab or newline or whitespace
Z
s
.chop
parameters
20. runs a proc that has been stored to a variable
==
.select
.each
call
21. data passed to methods in parenthesis after a method's name.
=>
arguments
array
!=
22. 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
.sub
.capitalize
.match
.next
23. class inheritance operator.
.chop
.sub
D
<
24. using classes and objects to make real-world concepts in programming.
object orientation
.select
!
.each
25. a whole number
start_with?
integer
.capitalize
constant
26. variable that can be used only where it is defined within an application
.pop
local variable
=>
<=
27. a string method that reverses capitalization
.swapcase
method
.methods
.scan()
28. (regular expression)any digit
local variable
|x|
d
<=>
29. method that tells an argument's place value within an array
.index
library
>=
.even?
30. array method that removes last item from an array
?x
regular expressions
.pop
constant
31. sets a single character text delimiter for multi-line strings
%q
.between?
D
$
32. a string method that scans object for arguments - uses regular expressions.
.each
.sub
.scan()
.select
33. array method that removes last item from an array
strip
.pop
A
.sub
34. (regular expression)any letter or digit or underscore
yield
^
class
w
35. (regular expression)anchor for the start of a string
<=>
.index
%q
A
36. defines an instance variable which only exists within the object it was created in.
.split
.upcase
@
struct
37. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
|x|
.select
local variable
kernel
38. a variable that lists the directories where Ruby will look for libraries
Z
library
$:.
<<
39. (regular expression)anchor for the end of a string
range
Z
<<
^
40. a special class that holds attributes and data but no methods.
struct
constant
!
parameters
41. less than or equal to (comparison operator)
method
Z
<=
float
42. symbol for a global variable which can be called from anywhere in an application.
not and or
method
.pop
$
43. 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.
hash
S
.between?
code blocks
44. array method that selects particular items from an array
.select
.map
.even?
A
45. passes value into block of code and assigns it the label of "x"
<
Z
.methods
|x|
46. method that tells if an argument is within the limits of two numbers
.between?
kernel
.next
.capitalize
47. greater than or equal to (comparison operator)
>=
W
|x|
<
48. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
@@
!
.map
49. passes value into block of code and assigns it the label of "x"
W
hash
|x|
.sub
50. used in an expression to manipulate objects
operators
.even?
A
!=