SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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 digit
A
.index
d
class
2. a string method that scans object for arguments - uses regular expressions.
.even?
.scan()
#{}
||
3. a string method that splits a string into an array
.split
.gsub
constant
hash
4. less than or equal to (comparison operator)
object orientation
<=
hash
class
5. operator for "Boolean not"
struct
start_with?
!
<=
6. tells you all methods that an object may invoke.
.methods
.select
%arg
arguments
7. a string method that scans object for arguments - uses regular expressions.
d
.pop
D
.scan()
8. a regular method that is the anchor for the end of a line
^
%q
$
.gsub
9. an array method that
.each
.next
>=
w
10. string method that "cleans" extra spaces from strings
strip
!
.index
Z
11. returns ASCII value of x
?x
float
.each
.sort
12. the ternary operator if?then:else
.map
struct
if?then:else
method
13. a special class that holds attributes and data but no methods.
^
struct
.upcase
object orientation
14. a whole number
integer
<<
=>
<<
15. a string method that reverses capitalization
.swapcase
.between?
A
W
16. array method that transforms the contents of an array according to a specified set of rules
d
#{}
.map
inheritance
17. method that tells if an argument is within the limits of two numbers
.between?
.gsub
start_with?
%q
18. a collection of objects with a defined order
if?then:else
array
#{}
D
19. a regular method that is the anchor for the beggining of a line
^
D
.chop
$
20. a string method that changes last character to next alphabetical character
.capitalize
.next
end_with?
code blocks
21. a collection of characters such as "Hello world!"
.sub
string
W
$
22. Boolean OR operator
D
iterator
||
constant
23. (regular expression)any nonletter or nondigit or nonunderscore.
&&
W
<<
.sub
24. a string method that substitutes ALL occurrences of a string with another.
.include?()
local variable
.gsub
.between?
25. array assignment oprator
.methods
.next
@@
<<
26. (regular expression)any space or tab or newline or whitespace
ARGV
W
flow control
s
27. symbol for a global variable which can be called from anywhere in an application.
.chop
end_with?
$
?x
28. data passed to methods in parenthesis after a method's name.
%arg
parameters
W
.capitalize
29. class inheritance operator.
<
variable
w
class
30. a string method that uncapitalizes first character
ARGV
.even?
.gsub
.downcase
31. Boolean not and or (lower preference)
not and or
call
if?then:else
.index
32. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
constant
float
.gsub
iterator
33. array method that selects particular items from an array
^
ARGV
.select
W
34. method to determine if an object is an even number
.even?
.gsub
.chop
ARGV
35. a string method that substituition. Requires 2 arguments.
.sub
break if
.even?
.match
36. a single instance of a class.
s
object
.include?()
Z
37. string method that determines if a string ends with a defined string
w
%w{}
end_with?
constant
38. the remainder operator
%
.downcase
#{}
$
39. greater than or equal to (comparison operator)
if?then:else
>=
&&
%arg
40. a string method that uncapitalizes first character
.next
.downcase
string
variable
41. a string method that capitalizes first character
<=>
method
Z
.capitalize
42. (regular expression)anchor for the start of a string
object orientation
s
^
A
43. (regular expression)any digit
?x
.sub
>=
d
44. operator for "Boolean not"
^
?x
!
=>
45. 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
<=>
.capitalize
46. defines a class variable. Can be used anywhere within a class
library
.between?
==
@@
47. a set of code within a class or object
.methods
.include?()
method
=>
48. a way to describe patterns in text
regular expressions
.index
$:.
&&
49. a string method that capitalizes first character
%arg
.capitalize
constant
^
50. the process of deciding which sections of code to execute based on conditions
flow control
S
|x|
.each