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 nonletter or nondigit or nonunderscore.
W
call
<<
arguments
2. greater than or equal to (comparison operator)
constant
.index
$:.
>=
3. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
method
break if
kernel
.match
4. returns ASCII value of x
?x
.even?
|x|
if?then:else
5. a collection of characters such as "Hello world!"
string
.select
|x|
w
6. tells you all methods that an object may invoke.
object
.pop
.methods
&&
7. methods that step through lists element by element (like each or upto or times etc)
<=>
<
.gsub
iterator
8. a number with a decimal point such as 1.0 or 3.1
float
||
inheritance
.index
9. array method that removes last item from an array
.pop
string
$:.
S
10. a string method that uncapitalizes first character
.each
!
.include?()
.downcase
11. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
#{}
<=>
w
w
12. method that tells an argument's place value within an array
.index
.downcase
!=
method
13. defines an instance variable which only exists within the object it was created in.
@
class
S
$:.
14. 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
.match
start_with?
library
$
15. method that tells if an argument is within the limits of two numbers
.between?
%w{}
.sub
!=
16. returns ASCII value of x
W
|x|
w
?x
17. a string method that changes last character to next alphabetical character
yield
.methods
d
.next
18. symbol for a global variable which can be called from anywhere in an application.
<
.methods
$
.between?
19. (regular expression)any digit
.capitalize
interpolation
constant
d
20. the process of deciding which sections of code to execute based on conditions
ARGV
.methods
.methods
flow control
21. (regular expression)anchor for the end of a string
%w{}
Z
.split
<=>
22. a string method that uncapitalizes first character
yield
integer
.downcase
struct
23. a string method that reverses capitalization
code blocks
.scan()
.swapcase
.methods
24. operator for "Boolean not"
?x
$
|x|
!
25. variable that can be used only where it is defined within an application
.sub
local variable
?x
arguments
26. (regular expression)any letter or digit or underscore
inheritance
w
.pop
||
27. method to determine if an object is an even number
.even?
arguments
.include?()
%w{}
28. data passed to methods in parenthesis after a method's name.
<
arguments
^
.index
29. (regular expression)any non-whitespace character
<<
S
ARGV
>=
30. (regular expression)any space or tab or newline or whitespace
s
.chop
@@
D
31. a way to describe patterns in text
constant
regular expressions
.each
!=
32. passes value into block of code and assigns it the label of "x"
.between?
|x|
.sub
$
33. a special array made from arguments that were added to the command line at start up.
ARGV
variable
^
.capitalize
34. allows for classes to relate to each other in a hierarchy
inheritance
struct
.include?()
<=
35. an array method that returns TRUE or FALSE if the array contains specified item
$:.
S
.include?()
hash
36. a single instance of a class.
.map
object
w
W
37. array assignment oprator
.select
<<
method
.index
38. a string method that scans object for arguments - uses regular expressions.
.scan()
d
W
?x
39. interpolation operator
#{}
Z
$
code blocks
40. an array method that
.each
.index
break if
object
41. comparison operator for "equal to"
float
?x
d
==
42. a string method that removes last character
.chop
inheritance
break if
hash
43. (regular expression)any non-whitespace character
||
S
.methods
end_with?
44. a definition of a concept in an object oriented language.
class
.chop
kernel
%q
45. a regular method that is the anchor for the end of a line
iterator
!=
operators
$
46. a placeholder for a single object that may be a number or string or list or instance of a defined class
s
?x
.gsub
variable
47. class inheritance operator.
arguments
D
.select
<
48. (regular expression)any space or tab or newline or whitespace
object orientation
s
hash
.chop
49. less than or equal to (comparison operator)
start_with?
%w{}
local variable
<=
50. array method that selects particular items from an array
.select
not and or
=>
.capitalize