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. a string method that scans object for arguments - uses regular expressions.
.scan()
<<
.sort
method
2. (regular expression)any nondigit
regular expressions
D
?x
parameters
3. greater than or equal to (comparison operator)
.next
>=
yield
.even?
4. a set of code within a class or object
$:.
class
method
start_with?
5. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
w
library
<=>
<=
6. tells you all methods that an object may invoke.
constant
.pop
!=
.methods
7. a string method that capitalizes first character
.capitalize
W
.downcase
range
8. less than or equal to (comparison operator)
<=
.sort
.pop
<
9. operator for "Boolean not"
string
range
.index
!
10. pushes a new item onto the end of an array.
inheritance
call
<<
.between?
11. a definition of a concept in an object oriented language.
w
hash
!
class
12. (regular expression)anchor for the end of a string
.capitalize
w
!
Z
13. string method that "cleans" extra spaces from strings
D
A
strip
string
14. (regular expression)any digit
%arg
end_with?
d
range
15. method to determine if an object is an even number
%arg
.even?
local variable
range
16. data passed to methods in parenthesis after a method's name.
parameters
||
<<
.sub
17. a string method that splits a string into an array
.swapcase
class
?x
.split
18. method that tells an argument's place value within an array
A
.index
|x|
flow control
19. a special array made from arguments that were added to the command line at start up.
.capitalize
d
$
ARGV
20. a variable that lists the directories where Ruby will look for libraries
$:.
iterator
@@
?x
21. a string method that substitutes ALL occurrences of a string with another.
.downcase
.gsub
?x
.index
22. (regular expression)any space or tab or newline or whitespace
.between?
?x
s
w
23. array method that selects particular items from an array
S
yield
.select
.swapcase
24. Boolean not and or (lower preference)
.select
local variable
not and or
.index
25. conditionally stops a loop
%arg
break if
=>
A
26. tells ruby a value to pass while iterating a block of code
library
.each
parameters
yield
27. a whole number
%arg
integer
.match
<=
28. defines an instance variable which only exists within the object it was created in.
object orientation
@
inheritance
ARGV
29. symbol for a global variable which can be called from anywhere in an application.
^
$
#{}
|x|
30. a string method that substitutes ALL occurrences of a string with another.
.gsub
d
<=
s
31. (regular expression)any nonletter or nondigit or nonunderscore.
.methods
W
.next
!
32. tells you all methods that an object may invoke.
local variable
@@
<
.methods
33. a string method that makes string all caps.
<<
integer
.upcase
.chop
34. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.sub
constant
A
inheritance
35. runs a proc that has been stored to a variable
call
if?then:else
.gsub
@
36. method to determine if an object is an even number
%w{}
struct
class
.even?
37. a string method that uncapitalizes first character
.scan()
.upcase
.downcase
$
38. a way to describe patterns in text
.map
@
class
regular expressions
39. comparison operator for "not equal to"
arguments
.include?()
!=
local variable
40. a string method that reverses capitalization
operators
.swapcase
!=
regular expressions
41. (regular expression)any nonletter or nondigit or nonunderscore.
%q
W
code blocks
.gsub
42. returns ASCII value of x
.each
?x
start_with?
.include?()
43. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
#{}
|x|
<=>
44. variable that can be used only where it is defined within an application
D
.downcase
@
local variable
45. defines array of multiple elements seperated by a space
%w{}
.split
if?then:else
.next
46. the representation of data from a start to end point
!=
range
.map
$
47. a string method that removes last character
.chop
d
arguments
==
48. a string method that scans object for arguments - uses regular expressions.
.even?
variable
ARGV
.scan()
49. a regular method that is the anchor for the end of a line
%arg
.pop
constant
$
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
.include?()
d
.match
.map