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. array assignment oprator
?x
<<
%
class
2. (regular expression)any nonletter or nondigit or nonunderscore.
A
.even?
library
W
3. a collection of objects or values with associated keys
hash
method
.include?()
kernel
4. allows for classes to relate to each other in a hierarchy
?x
<
S
inheritance
5. defines an instance variable which only exists within the object it was created in.
@
.map
.downcase
.upcase
6. a placeholder for a single object that may be a number or string or list or instance of a defined class
.pop
variable
yield
.even?
7. a string method that capitalizes first character
.capitalize
%w{}
.match
code blocks
8. using classes and objects to make real-world concepts in programming.
constant
object orientation
.upcase
end_with?
9. a regular method that is the anchor for the end of a line
<
.downcase
d
$
10. (regular expression)any digit
d
||
.index
>=
11. method that tells if an argument is within the limits of two numbers
.between?
string
A
.gsub
12. a collection of objects with a defined order
s
array
.next
.between?
13. conditionally stops a loop
break if
object
range
||
14. symbol for a global variable which can be called from anywhere in an application.
$
.each
A
^
15. (regular expression)any space or tab or newline or whitespace
s
class
.select
variable
16. a fixed value that begins with a capital letter such as Pi.
constant
.map
.pop
if?then:else
17. a string method that substitutes ALL occurrences of a string with another.
.gsub
Z
|x|
<=>
18. a single instance of a class.
.scan()
object
^
@
19. an array method that
arguments
!
.between?
.each
20. operator for "Boolean not"
.chop
.methods
!
@@
21. a regular method that is the anchor for the beggining of a line
range
^
code blocks
!=
22. runs a proc that has been stored to a variable
call
<=>
%arg
!=
23. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.even?
regular expressions
<=>
<=
24. string method that determines if a string ends with a defined string
end_with?
integer
variable
method
25. tells you all methods that an object may invoke.
constant
d
strip
.methods
26. Boolean not and or (lower preference)
D
not and or
.each
call
27. (regular expression)anchor for the end of a string
variable
<
.index
Z
28. array method that transforms the contents of an array according to a specified set of rules
!=
yield
.map
%w{}
29. a special class that holds attributes and data but no methods.
string
struct
#{}
.chop
30. a string method that substitutes THE FIRST occurrence of a string within a string
@
.sub
.downcase
.pop
31. a string method that uncapitalizes first character
flow control
.gsub
.pop
.downcase
32. method that tells an argument's place value within an array
.index
<=>
struct
.capitalize
33. mixing expressions into strings
.sort
%q
interpolation
>=
34. data passed to methods in parenthesis after a method's name.
parameters
.each
yield
integer
35. a whole number
strip
integer
object orientation
.each
36. Boolean OR operator
.even?
.sub
||
%
37. (regular expression)anchor for the start of a string
A
w
^
$:.
38. comparison operator for "not equal to"
S
float
!=
<<
39. method that tells an argument's place value within an array
interpolation
==
.index
$
40. a string method that splits a string into an array
$
.split
.sub
D
41. (regular expression)any non-whitespace character
.include?()
.gsub
^
S
42. Boolean AND operator
&&
.match
>=
flow control
43. a set of code within a class or object
.even?
.downcase
method
=>
44. method to determine if an object is an even number
array
parameters
.sort
.even?
45. less than or equal to (comparison operator)
!
.each
.downcase
<=
46. array method that removes last item from an array
%w{}
library
.pop
%arg
47. (regular expression)any nondigit
D
<<
.even?
class
48. method that sorts items alphabetically
.sort
@
?x
<<
49. array method that removes last item from an array
.pop
^
.split
.downcase
50. 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
W
.next
array
.match