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. (regular expression)any letter or digit or underscore
||
<<
.split
w
2. a collection of objects or values with associated keys
%w{}
.match
float
hash
3. passes value into block of code and assigns it the label of "x"
@@
|x|
.sort
.between?
4. a whole number
float
.between?
integer
.chop
5. a number with a decimal point such as 1.0 or 3.1
if?then:else
class
float
#{}
6. (regular expression)any non-whitespace character
.sort
break if
.scan()
S
7. a string method that makes string all caps.
.upcase
hash
S
.even?
8. a string method that removes last character
<<
.each
.chop
.next
9. allows for classes to relate to each other in a hierarchy
&&
$
inheritance
<
10. a collection of characters such as "Hello world!"
string
@
local variable
%q
11. a string method that splits a string into an array
.next
<=>
!=
.split
12. a string method that uncapitalizes first character
<=>
d
.downcase
.next
13. (regular expression)any space or tab or newline or whitespace
s
flow control
W
iterator
14. a regular method that is the anchor for the beggining of a line
^
$
=>
>=
15. (regular expression)any digit
%arg
inheritance
>=
d
16. sets a text delimiter
%arg
hash
range
<=>
17. interpolation operator
kernel
D
#{}
constant
18. a definition of a concept in an object oriented language.
&&
@
.match
class
19. a string method that changes last character to next alphabetical character
&&
Z
.next
.chop
20. method to determine if an object is an even number
A
>=
.even?
arguments
21. data passed to methods in parenthesis after a method's name.
^
A
local variable
parameters
22. a set of code within a class or object
flow control
method
.methods
d
23. Boolean OR operator
||
.index
!
string
24. a string method that scans object for arguments - uses regular expressions.
.scan()
.next
S
w
25. a single instance of a class.
.sub
.pop
=>
object
26. a way to describe patterns in text
interpolation
&&
regular expressions
D
27. the process of deciding which sections of code to execute based on conditions
.methods
flow control
.capitalize
#{}
28. method that tells an argument's place value within an array
d
object orientation
.index
?x
29. array assignment oprator
?x
<<
interpolation
parameters
30. method that tells an argument's place value within an array
=>
!
.index
class
31. a regular method that is the anchor for the beggining of a line
call
<=
^
.downcase
32. tells you all methods that an object may invoke.
array
object
.sub
.methods
33. method that sorts items alphabetically
.next
.sort
S
end_with?
34. method to determine if an object is an even number
.even?
method
s
.next
35. a string method that scans object for arguments - uses regular expressions.
object orientation
object
.scan()
variable
36. comparison operator for "equal to"
strip
.include?()
==
&&
37. an array method that
.each
.downcase
constant
.sub
38. a string method that uncapitalizes first character
.downcase
if?then:else
variable
s
39. assigns a key to a hash value
.next
=>
.methods
.map
40. the representation of data from a start to end point
range
integer
||
.gsub
41. string method that determines if a string starts with a defined string
kernel
start_with?
.pop
.index
42. a special array made from arguments that were added to the command line at start up.
ARGV
arguments
.each
<<
43. array method that removes last item from an array
library
operators
float
.pop
44. array method that transforms the contents of an array according to a specified set of rules
array
.map
.even?
d
45. a variable that lists the directories where Ruby will look for libraries
$:.
.upcase
.split
.even?
46. a string method that removes last character
integer
>=
constant
.chop
47. 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
&&
<<
.scan()
48. a special class that holds attributes and data but no methods.
W
struct
Z
string
49. (regular expression)any non-whitespace character
@@
S
.select
.pop
50. using classes and objects to make real-world concepts in programming.
.next
kernel
s
object orientation