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. symbol for a global variable which can be called from anywhere in an application.
.gsub
$
not and or
hash
2. the remainder operator
.scan()
%
class
.gsub
3. string method that determines if a string starts with a defined string
@
.even?
start_with?
D
4. a collection of objects or values with associated keys
.scan()
call
!
hash
5. tells you all methods that an object may invoke.
Z
.map
range
.methods
6. 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.
flow control
code blocks
.methods
.pop
7. (regular expression)any space or tab or newline or whitespace
.between?
s
#{}
parameters
8. operator for "Boolean not"
!
.scan()
^
.each
9. sets a text delimiter
%arg
operators
flow control
.even?
10. data passed to methods in parenthesis after a method's name.
parameters
.methods
.between?
local variable
11. passes value into block of code and assigns it the label of "x"
.pop
not and or
!
|x|
12. a definition of a concept in an object oriented language.
<=
s
class
.pop
13. defines an instance variable which only exists within the object it was created in.
.sub
ARGV
@
.even?
14. method that tells an argument's place value within an array
=>
array
W
.index
15. conditionally stops a loop
integer
break if
not and or
ARGV
16. array method that removes last item from an array
.downcase
%w{}
.pop
^
17. a string method that scans object for arguments - uses regular expressions.
iterator
.between?
.scan()
.pop
18. (regular expression)anchor for the end of a string
Z
.swapcase
?x
kernel
19. defines array of multiple elements seperated by a space
<
%w{}
>=
hash
20. a collection of objects with a defined order
|x|
#{}
array
.index
21. array method that selects particular items from an array
.select
|x|
Z
^
22. a regular method that is the anchor for the beggining of a line
constant
<=>
^
class
23. methods that step through lists element by element (like each or upto or times etc)
iterator
S
.downcase
.scan()
24. a string method that reverses capitalization
.swapcase
inheritance
!=
.index
25. a string method that capitalizes first character
>=
.capitalize
D
.downcase
26. array method that removes last item from an array
ARGV
.downcase
.pop
w
27. a whole number
W
integer
Z
regular expressions
28. variable that can be used only where it is defined within an application
local variable
class
!=
D
29. a string method that capitalizes first character
?x
?x
.capitalize
.downcase
30. interpolation operator
#{}
@
kernel
.even?
31. pushes a new item onto the end of an array.
w
yield
integer
<<
32. (regular expression)any letter or digit or underscore
.downcase
!=
w
.even?
33. comparison operator for "equal to"
.chop
==
%arg
.map
34. a string method that makes string all caps.
#{}
constant
.upcase
local variable
35. comparison operator for "not equal to"
.gsub
%w{}
!=
yield
36. a string method that substitutes ALL occurrences of a string with another.
.gsub
A
.between?
kernel
37. a set of code within a class or object
range
?x
method
.sort
38. (regular expression)any digit
d
.even?
.each
$:.
39. returns ASCII value of x
start_with?
?x
W
yield
40. array assignment oprator
^
variable
<<
string
41. Boolean not and or (lower preference)
S
.methods
not and or
W
42. an array method that
%arg
.match
.each
struct
43. method that tells an argument's place value within an array
.index
operators
if?then:else
arguments
44. the representation of data from a start to end point
!
range
==
ARGV
45. 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
.match
operators
#{}
.map
46. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
Z
<=>
hash
variable
47. comparison operator for "not equal to"
.pop
!=
%w{}
&&
48. returns ASCII value of x
%
range
?x
!
49. a string method that splits a string into an array
$
^
.next
.split
50. a variable that lists the directories where Ruby will look for libraries
D
$:.
|x|
#{}