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. comparison operator for "not equal to"
!=
%w{}
||
.capitalize
2. methods that step through lists element by element (like each or upto or times etc)
iterator
not and or
.split
.methods
3. array method that removes last item from an array
Z
.even?
operators
.pop
4. method that tells if an argument is within the limits of two numbers
.downcase
.scan()
.between?
strip
5. a definition of a concept in an object oriented language.
!
constant
inheritance
class
6. array method that removes last item from an array
.gsub
class
start_with?
.pop
7. returns ASCII value of x
W
?x
strip
.chop
8. a module of classes and or functions
s
library
|x|
object
9. less than or equal to (comparison operator)
<=
!=
.include?()
kernel
10. a string method that scans object for arguments - uses regular expressions.
.gsub
.scan()
<<
!=
11. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
string
constant
%w{}
%q
12. an array method that
.each
.scan()
object
start_with?
13. array method that transforms the contents of an array according to a specified set of rules
.pop
kernel
start_with?
.map
14. method that tells an argument's place value within an array
.index
integer
s
$
15. a fixed value that begins with a capital letter such as Pi.
class
strip
constant
!
16. a variable that lists the directories where Ruby will look for libraries
@
!
$:.
kernel
17. (regular expression)any digit
struct
!=
parameters
d
18. string method that "cleans" extra spaces from strings
.swapcase
.downcase
regular expressions
strip
19. the process of deciding which sections of code to execute based on conditions
flow control
.upcase
end_with?
.include?()
20. (regular expression)any nondigit
#{}
D
interpolation
?x
21. interpolation operator
.index
.even?
code blocks
#{}
22. (regular expression)any nondigit
D
range
constant
.between?
23. Boolean not and or (lower preference)
<<
.pop
not and or
^
24. (regular expression)any letter or digit or underscore
w
operators
.index
start_with?
25. array method that selects particular items from an array
yield
.select
.even?
#{}
26. a special array made from arguments that were added to the command line at start up.
?x
.downcase
|x|
ARGV
27. (regular expression)any non-whitespace character
.methods
<
.even?
S
28. symbol for a global variable which can be called from anywhere in an application.
$
call
S
.chop
29. a regular method that is the anchor for the beggining of a line
^
<=
Z
.swapcase
30. (regular expression)any digit
.scan()
code blocks
d
<
31. (regular expression)any nonletter or nondigit or nonunderscore.
class
#{}
d
W
32. tells you all methods that an object may invoke.
!
kernel
.next
.methods
33. greater than or equal to (comparison operator)
strip
>=
s
?x
34. pushes a new item onto the end of an array.
$
s
<<
.map
35. a string method that uncapitalizes first character
.downcase
.scan()
S
s
36. a string method that substitutes ALL occurrences of a string with another.
.gsub
library
.methods
yield
37. conditionally stops a loop
operators
yield
break if
%w{}
38. a regular method that is the anchor for the end of a line
D
.next
$
?x
39. an array method that returns TRUE or FALSE if the array contains specified item
.scan()
?x
.include?()
@@
40. a definition of a concept in an object oriented language.
w
class
Z
.even?
41. 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.
A
code blocks
hash
.gsub
42. (regular expression)any nonletter or nondigit or nonunderscore.
end_with?
if?then:else
not and or
W
43. the ternary operator if?then:else
if?then:else
iterator
.capitalize
kernel
44. an array method that returns TRUE or FALSE if the array contains specified item
string
w
parameters
.include?()
45. the representation of data from a start to end point
@
flow control
range
!=
46. a way to describe patterns in text
regular expressions
range
class
D
47. operator for "Boolean not"
!
interpolation
d
$
48. a collection of objects or values with associated keys
.index
hash
.scan()
.gsub
49. defines a class variable. Can be used anywhere within a class
$:.
@@
.gsub
.between?
50. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
interpolation
%w{}
parameters