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 uncapitalizes first character
.even?
.downcase
.sub
if?then:else
2. a string method that capitalizes first character
.capitalize
<=
W
@@
3. comparison operator for "not equal to"
library
!=
class
$:.
4. a string method that scans object for arguments - uses regular expressions.
iterator
<=>
.scan()
.select
5. a single instance of a class.
?x
d
local variable
object
6. sets a single character text delimiter for multi-line strings
if?then:else
%q
d
.map
7. array method that removes last item from an array
.pop
.capitalize
strip
.map
8. array assignment oprator
<<
.next
.between?
A
9. interpolation operator
not and or
#{}
<=>
.scan()
10. the process of deciding which sections of code to execute based on conditions
<<
interpolation
.sort
flow control
11. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
%w{}
call
A
12. array method that removes last item from an array
.pop
|x|
<=>
.split
13. Boolean not and or (lower preference)
.methods
object orientation
not and or
@@
14. defines array of multiple elements seperated by a space
iterator
hash
strip
%w{}
15. a collection of characters such as "Hello world!"
string
.pop
yield
.capitalize
16. mixing expressions into strings
.even?
?x
range
interpolation
17. a string method that changes last character to next alphabetical character
D
.include?()
.next
.map
18. a collection of objects with a defined order
$:.
.methods
array
parameters
19. returns ASCII value of x
.downcase
?x
.split
.gsub
20. a whole number
arguments
$:.
integer
.pop
21. a regular method that is the anchor for the beggining of a line
&&
^
break if
D
22. a fixed value that begins with a capital letter such as Pi.
if?then:else
not and or
.gsub
constant
23. assigns a key to a hash value
<=>
=>
float
?x
24. a module of classes and or functions
library
<=
.even?
.map
25. comparison operator for "equal to"
.sub
==
flow control
arguments
26. a set of code within a class or object
parameters
.even?
method
Z
27. string method that determines if a string starts with a defined string
object
start_with?
variable
yield
28. pushes a new item onto the end of an array.
.each
.include?()
<<
.match
29. an array method that
.each
class
#{}
yield
30. an array method that
inheritance
.even?
.scan()
.each
31. returns ASCII value of x
@@
%
||
?x
32. allows for classes to relate to each other in a hierarchy
variable
if?then:else
inheritance
end_with?
33. a string method that changes last character to next alphabetical character
.next
object orientation
w
%q
34. a string method that capitalizes first character
.chop
arguments
.capitalize
|x|
35. runs a proc that has been stored to a variable
.between?
ARGV
call
.between?
36. methods that step through lists element by element (like each or upto or times etc)
iterator
.map
.chop
.match
37. a string method that splits a string into an array
w
.split
.next
flow control
38. a special class that holds attributes and data but no methods.
call
struct
integer
local variable
39. Boolean OR operator
arguments
||
@
%w{}
40. a special array made from arguments that were added to the command line at start up.
arguments
#{}
.each
ARGV
41. variable that can be used only where it is defined within an application
local variable
.scan()
break if
<<
42. tells you all methods that an object may invoke.
ARGV
.methods
end_with?
d
43. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<=>
string
.between?
range
44. passes value into block of code and assigns it the label of "x"
!=
<=
|x|
regular expressions
45. method to determine if an object is an even number
.even?
<
arguments
.match
46. a number with a decimal point such as 1.0 or 3.1
not and or
|x|
float
if?then:else
47. used in an expression to manipulate objects
operators
library
.gsub
|x|
48. a string method that removes last character
.include?()
.between?
!
.chop
49. the representation of data from a start to end point
.pop
range
Z
.methods
50. (regular expression)any nondigit
>=
D
arguments
code blocks