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. Boolean OR operator
code blocks
S
||
.pop
2. greater than or equal to (comparison operator)
W
W
>=
arguments
3. a string method that removes last character
.chop
>=
==
.next
4. a string method that substitutes ALL occurrences of a string with another.
s
S
^
.gsub
5. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
?x
method
<=>
variable
6. less than or equal to (comparison operator)
.capitalize
S
<=
regular expressions
7. (regular expression)any nonletter or nondigit or nonunderscore.
Z
@
.map
W
8. a string method that scans object for arguments - uses regular expressions.
D
#{}
method
.scan()
9. a variable that lists the directories where Ruby will look for libraries
object orientation
$:.
.pop
.swapcase
10. tells you all methods that an object may invoke.
hash
|x|
>=
.methods
11. tells ruby a value to pass while iterating a block of code
?x
variable
W
yield
12. a string method that capitalizes first character
.capitalize
.sub
float
start_with?
13. a special array made from arguments that were added to the command line at start up.
.capitalize
ARGV
Z
!
14. the ternary operator if?then:else
code blocks
.split
if?then:else
.next
15. Boolean AND operator
&&
?x
.index
.index
16. used in an expression to manipulate objects
d
operators
@
yield
17. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
inheritance
==
integer
kernel
18. a special class that holds attributes and data but no methods.
struct
.next
%arg
!
19. array method that removes last item from an array
$:.
||
.pop
object orientation
20. runs a proc that has been stored to a variable
call
strip
!
.include?()
21. mixing expressions into strings
constant
#{}
.between?
interpolation
22. a string method that substituition. Requires 2 arguments.
library
hash
.sub
object orientation
23. a regular method that is the anchor for the beggining of a line
!
^
class
w
24. method that tells if an argument is within the limits of two numbers
.capitalize
!
object orientation
.between?
25. operator for "Boolean not"
@
!
Z
ARGV
26. tells you all methods that an object may invoke.
parameters
W
.methods
range
27. defines array of multiple elements seperated by a space
%w{}
.methods
.split
.downcase
28. 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.
.gsub
.map
code blocks
?x
29. returns ASCII value of x
?x
.select
S
constant
30. assigns a key to a hash value
=>
s
class
.swapcase
31. (regular expression)anchor for the end of a string
array
class
#{}
Z
32. a string method that uncapitalizes first character
arguments
array
.downcase
ARGV
33. Boolean not and or (lower preference)
%arg
.capitalize
.gsub
not and or
34. class inheritance operator.
<
|x|
.downcase
.chop
35. (regular expression)any nondigit
D
.each
operators
call
36. symbol for a global variable which can be called from anywhere in an application.
.pop
|x|
.sub
$
37. the process of deciding which sections of code to execute based on conditions
break if
.between?
%arg
flow control
38. a string method that uncapitalizes first character
.downcase
operators
#{}
<<
39. defines an instance variable which only exists within the object it was created in.
.sort
||
@
variable
40. methods that step through lists element by element (like each or upto or times etc)
.methods
.downcase
iterator
array
41. array assignment oprator
<<
inheritance
regular expressions
iterator
42. array method that transforms the contents of an array according to a specified set of rules
.map
variable
ARGV
w
43. comparison operator for "not equal to"
%
$
local variable
!=
44. an array method that
.next
array
!
.each
45. (regular expression)anchor for the end of a string
.swapcase
.capitalize
Z
<
46. interpolation operator
#{}
!=
s
library
47. a collection of objects with a defined order
.between?
array
|x|
^
48. sets a single character text delimiter for multi-line strings
.upcase
%q
integer
.split
49. a string method that changes last character to next alphabetical character
.next
$
.pop
.match
50. a way to describe patterns in text
%w{}
regular expressions
.downcase
W