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. mixing expressions into strings
<<
.chop
interpolation
.capitalize
2. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
inheritance
class
kernel
.scan()
3. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<=>
.pop
ARGV
$
4. used in an expression to manipulate objects
S
hash
s
operators
5. (regular expression)anchor for the start of a string
<=>
.next
class
A
6. (regular expression)any letter or digit or underscore
w
Z
<=
@
7. a single instance of a class.
$
regular expressions
d
object
8. a definition of a concept in an object oriented language.
range
class
$
w
9. a string method that changes last character to next alphabetical character
Z
<
%arg
.next
10. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
.downcase
yield
!
11. a whole number
struct
float
integer
!=
12. a regular method that is the anchor for the beggining of a line
.capitalize
.between?
operators
^
13. a string method that removes last character
!=
.map
!
.chop
14. (regular expression)any letter or digit or underscore
call
w
^
.split
15. 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
.include?()
=>
.match
variable
16. a string method that changes last character to next alphabetical character
.downcase
.next
ARGV
|x|
17. (regular expression)any space or tab or newline or whitespace
.sub
.pop
&&
s
18. the process of deciding which sections of code to execute based on conditions
.match
.methods
flow control
end_with?
19. (regular expression)any non-whitespace character
S
^
A
!=
20. a string method that uncapitalizes first character
constant
.downcase
S
kernel
21. method to determine if an object is an even number
yield
.even?
#{}
<<
22. array method that removes last item from an array
.gsub
.pop
float
constant
23. greater than or equal to (comparison operator)
<<
>=
$
.chop
24. tells you all methods that an object may invoke.
=>
method
.methods
%
25. variable that can be used only where it is defined within an application
%
@@
!
local variable
26. (regular expression)anchor for the end of a string
struct
Z
.include?()
S
27. tells you all methods that an object may invoke.
.methods
A
s
.sub
28. Boolean OR operator
.even?
||
hash
library
29. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
<<
.methods
.chop
30. interpolation operator
.next
S
range
#{}
31. string method that determines if a string starts with a defined string
class
ARGV
.capitalize
start_with?
32. a collection of objects with a defined order
array
#{}
regular expressions
W
33. passes value into block of code and assigns it the label of "x"
.between?
%q
.chop
|x|
34. a string method that substitutes ALL occurrences of a string with another.
.methods
range
S
.gsub
35. conditionally stops a loop
$:.
.include?()
break if
.next
36. Boolean AND operator
&&
||
end_with?
W
37. a set of code within a class or object
integer
method
|x|
s
38. data passed to methods in parenthesis after a method's name.
%arg
parameters
A
d
39. (regular expression)any space or tab or newline or whitespace
.split
.pop
s
.each
40. (regular expression)any non-whitespace character
S
end_with?
object
.map
41. (regular expression)anchor for the start of a string
constant
inheritance
kernel
A
42. pushes a new item onto the end of an array.
<<
!=
#{}
.even?
43. returns ASCII value of x
constant
?x
.match
D
44. a string method that substitutes ALL occurrences of a string with another.
.include?()
==
.map
.gsub
45. array method that transforms the contents of an array according to a specified set of rules
flow control
.map
!
.methods
46. a string method that capitalizes first character
object
end_with?
?x
.capitalize
47. (regular expression)any nonletter or nondigit or nonunderscore.
inheritance
.include?()
.methods
W
48. (regular expression)any digit
d
.downcase
.next
yield
49. operator for "Boolean not"
!
S
d
variable
50. a fixed value that begins with a capital letter such as Pi.
constant
%
.chop
.between?