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. a string method that capitalizes first character
.capitalize
A
.methods
.split
2. (regular expression)anchor for the end of a string
.scan()
.upcase
Z
flow control
3. array method that removes last item from an array
.each
.next
.pop
=>
4. a string method that removes last character
Z
.chop
start_with?
<=
5. method to determine if an object is an even number
.even?
.split
>=
variable
6. a set of code within a class or object
<<
D
method
.next
7. a string method that makes string all caps.
.next
.upcase
flow control
<=
8. a string method that removes last character
.sub
ARGV
.chop
.gsub
9. a collection of characters such as "Hello world!"
W
?x
inheritance
string
10. a special class that holds attributes and data but no methods.
struct
method
d
variable
11. 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
>=
.even?
d
12. a string method that substitutes ALL occurrences of a string with another.
.gsub
.index
.split
%q
13. (regular expression)any nonletter or nondigit or nonunderscore.
kernel
if?then:else
W
#{}
14. a string method that substituition. Requires 2 arguments.
s
object
yield
.sub
15. a string method that uncapitalizes first character
.capitalize
flow control
.downcase
local variable
16. a special array made from arguments that were added to the command line at start up.
ARGV
<
.upcase
.between?
17. the remainder operator
@@
.split
.index
%
18. a number with a decimal point such as 1.0 or 3.1
array
@@
float
strip
19. a regular method that is the anchor for the beggining of a line
.sort
D
^
%w{}
20. a string method that splits a string into an array
d
.index
.even?
.split
21. the representation of data from a start to end point
if?then:else
.even?
%q
range
22. methods that step through lists element by element (like each or upto or times etc)
iterator
D
%
!=
23. a string method that changes last character to next alphabetical character
.next
W
.upcase
class
24. (regular expression)any space or tab or newline or whitespace
s
.next
.chop
.include?()
25. (regular expression)any letter or digit or underscore
arguments
w
<
D
26. passes value into block of code and assigns it the label of "x"
.select
|x|
.include?()
.next
27. string method that "cleans" extra spaces from strings
S
@@
library
strip
28. interpolation operator
d
#{}
?x
@@
29. a string method that changes last character to next alphabetical character
.next
S
S
object orientation
30. a fixed value that begins with a capital letter such as Pi.
constant
<<
regular expressions
.between?
31. runs a proc that has been stored to a variable
.methods
@@
iterator
call
32. a string method that scans object for arguments - uses regular expressions.
yield
interpolation
Z
.scan()
33. a variable that lists the directories where Ruby will look for libraries
.even?
.split
W
$:.
34. Boolean not and or (lower preference)
if?then:else
.map
d
not and or
35. method that tells an argument's place value within an array
.match
#{}
.index
Z
36. operator for "Boolean not"
||
.each
!
regular expressions
37. symbol for a global variable which can be called from anywhere in an application.
$
object orientation
<<
|x|
38. a regular method that is the anchor for the beggining of a line
d
^
arguments
w
39. the process of deciding which sections of code to execute based on conditions
d
end_with?
flow control
S
40. (regular expression)anchor for the start of a string
class
A
object orientation
.even?
41. a string method that scans object for arguments - uses regular expressions.
.scan()
constant
?x
W
42. comparison operator for "equal to"
.index
==
.upcase
flow control
43. data passed to methods in parenthesis after a method's name.
variable
arguments
if?then:else
.pop
44. (regular expression)any nonletter or nondigit or nonunderscore.
W
integer
|x|
end_with?
45. defines a class variable. Can be used anywhere within a class
#{}
@@
.split
.each
46. an array method that
.methods
.map
%q
.each
47. method that tells an argument's place value within an array
D
.capitalize
.index
^
48. (regular expression)any letter or digit or underscore
|x|
s
.methods
w
49. string method that determines if a string starts with a defined string
library
class
D
start_with?
50. (regular expression)any digit
$
S
d
|x|