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. string method that determines if a string ends with a defined string
.next
.include?()
end_with?
|x|
2. string method that determines if a string starts with a defined string
start_with?
Z
.pop
.downcase
3. string method that "cleans" extra spaces from strings
>=
method
.downcase
strip
4. a whole number
integer
if?then:else
Z
.index
5. a special array made from arguments that were added to the command line at start up.
<<
ARGV
.select
D
6. a string method that capitalizes first character
.capitalize
variable
||
.downcase
7. a string method that scans object for arguments - uses regular expressions.
.next
strip
.scan()
W
8. (regular expression)any digit
w
constant
d
!
9. a string method that uncapitalizes first character
S
A
.downcase
<<
10. method that tells an argument's place value within an array
.index
=>
<<
local variable
11. tells ruby a value to pass while iterating a block of code
yield
W
.capitalize
class
12. a regular method that is the anchor for the beggining of a line
.sort
^
d
.capitalize
13. array method that transforms the contents of an array according to a specified set of rules
.each
.map
.capitalize
Z
14. variable that can be used only where it is defined within an application
.capitalize
.pop
^
local variable
15. operator for "Boolean not"
!
==
.include?()
%
16. a string method that splits a string into an array
start_with?
.split
S
integer
17. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
W
&&
.gsub
<=>
18. a definition of a concept in an object oriented language.
class
.pop
constant
?x
19. method that tells if an argument is within the limits of two numbers
range
.between?
d
.even?
20. Boolean AND operator
&&
s
|x|
kernel
21. array assignment oprator
<<
$
operators
method
22. allows for classes to relate to each other in a hierarchy
regular expressions
hash
inheritance
.sub
23. methods that step through lists element by element (like each or upto or times etc)
iterator
.match
.capitalize
s
24. a set of code within a class or object
.gsub
<
$:.
method
25. a string method that capitalizes first character
.capitalize
kernel
.gsub
strip
26. greater than or equal to (comparison operator)
D
w
.methods
>=
27. assigns a key to a hash value
!=
%w{}
=>
s
28. (regular expression)anchor for the end of a string
.sub
Z
.gsub
.next
29. a string method that changes last character to next alphabetical character
.next
D
interpolation
call
30. a string method that substituition. Requires 2 arguments.
=>
!
method
.sub
31. a way to describe patterns in text
%q
parameters
D
regular expressions
32. a module of classes and or functions
local variable
object
strip
library
33. a string method that removes last character
A
.capitalize
.chop
$
34. 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
>=
object orientation
.match
object
35. tells you all methods that an object may invoke.
.methods
A
.between?
%w{}
36. used in an expression to manipulate objects
flow control
operators
ARGV
.scan()
37. (regular expression)anchor for the start of a string
end_with?
interpolation
A
.gsub
38. passes value into block of code and assigns it the label of "x"
.index
constant
|x|
.sub
39. a definition of a concept in an object oriented language.
W
end_with?
code blocks
class
40. interpolation operator
struct
object orientation
#{}
.even?
41. tells you all methods that an object may invoke.
.index
|x|
call
.methods
42. the remainder operator
%
.split
.map
.swapcase
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.
$:.
&&
code blocks
.each
44. returns ASCII value of x
?x
S
w
W
45. (regular expression)any letter or digit or underscore
D
w
.between?
.each
46. a collection of objects with a defined order
array
%
>=
.include?()
47. a regular method that is the anchor for the beggining of a line
^
=>
struct
A
48. comparison operator for "equal to"
library
A
kernel
==
49. (regular expression)any nonletter or nondigit or nonunderscore.
W
.gsub
%
.capitalize
50. comparison operator for "not equal to"
w
!=
&&
iterator