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.
parameters
d
flow control
class
2. (regular expression)anchor for the end of a string
.each
flow control
range
Z
3. conditionally stops a loop
$
.pop
.map
break if
4. comparison operator for "equal to"
.each
^
==
yield
5. Boolean not and or (lower preference)
not and or
array
range
interpolation
6. a collection of objects or values with associated keys
%q
@@
hash
#{}
7. defines an instance variable which only exists within the object it was created in.
library
@
hash
.index
8. method that tells if an argument is within the limits of two numbers
Z
W
interpolation
.between?
9. a definition of a concept in an object oriented language.
class
float
.downcase
.chop
10. 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
.methods
.match
.sort
.next
11. returns ASCII value of x
#{}
.map
?x
@@
12. returns ASCII value of x
.gsub
?x
S
.sub
13. operator for "Boolean not"
.split
!
$:.
.swapcase
14. a string method that capitalizes first character
>=
%q
.capitalize
D
15. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
local variable
.between?
kernel
@@
16. Boolean OR operator
string
||
d
.sub
17. array method that removes last item from an array
.downcase
class
s
.pop
18. a string method that uncapitalizes first character
.sub
.gsub
.scan()
.downcase
19. comparison operator for "not equal to"
object
kernel
!=
yield
20. a string method that capitalizes first character
<=
.next
Z
.capitalize
21. mixing expressions into strings
interpolation
.map
!
S
22. a module of classes and or functions
|x|
%arg
library
if?then:else
23. a collection of characters such as "Hello world!"
kernel
^
w
string
24. (regular expression)any digit
d
object
!=
W
25. interpolation operator
W
#{}
<
constant
26. method to determine if an object is an even number
.even?
.capitalize
.chop
!
27. symbol for a global variable which can be called from anywhere in an application.
kernel
hash
$
D
28. interpolation operator
|x|
W
#{}
.each
29. (regular expression)anchor for the start of a string
end_with?
<=>
.next
A
30. (regular expression)any nonletter or nondigit or nonunderscore.
.even?
!
W
.gsub
31. a variable that lists the directories where Ruby will look for libraries
strip
object orientation
$:.
range
32. (regular expression)any nonletter or nondigit or nonunderscore.
object orientation
W
%w{}
?x
33. greater than or equal to (comparison operator)
>=
$
.downcase
.capitalize
34. the remainder operator
.chop
%
@@
yield
35. (regular expression)any letter or digit or underscore
call
<=
^
w
36. a regular method that is the anchor for the beggining of a line
^
$
method
.methods
37. array method that transforms the contents of an array according to a specified set of rules
method
integer
float
.map
38. a regular method that is the anchor for the end of a line
Z
$
hash
!=
39. a string method that removes last character
.chop
.methods
float
method
40. (regular expression)anchor for the end of a string
Z
||
iterator
arguments
41. variable that can be used only where it is defined within an application
<<
inheritance
.capitalize
local variable
42. allows for classes to relate to each other in a hierarchy
struct
.gsub
%q
inheritance
43. string method that determines if a string ends with a defined string
S
.index
.select
end_with?
44. a string method that removes last character
Z
D
.chop
array
45. data passed to methods in parenthesis after a method's name.
arguments
>=
?x
.even?
46. defines array of multiple elements seperated by a space
%w{}
<
.index
#{}
47. an array method that returns TRUE or FALSE if the array contains specified item
.next
?x
.include?()
?x
48. (regular expression)any non-whitespace character
regular expressions
yield
constant
S
49. using classes and objects to make real-world concepts in programming.
w
object orientation
.chop
@
50. a number with a decimal point such as 1.0 or 3.1
<=
float
code blocks
.downcase