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 non-whitespace character
kernel
=>
.upcase
S
2. a string method that substituition. Requires 2 arguments.
array
?x
<
.sub
3. a string method that substitutes ALL occurrences of a string with another.
|x|
arguments
.gsub
code blocks
4. passes value into block of code and assigns it the label of "x"
.capitalize
code blocks
|x|
!=
5. (regular expression)anchor for the start of a string
^
ARGV
A
integer
6. (regular expression)any non-whitespace character
!
=>
S
arguments
7. greater than or equal to (comparison operator)
%q
>=
.capitalize
constant
8. used in an expression to manipulate objects
strip
.capitalize
D
operators
9. string method that "cleans" extra spaces from strings
!=
A
strip
code blocks
10. method to determine if an object is an even number
.even?
.index
.downcase
?x
11. a string method that capitalizes first character
$
.capitalize
A
D
12. the remainder operator
%
>=
library
.next
13. Boolean not and or (lower preference)
?x
not and or
.methods
.chop
14. a number with a decimal point such as 1.0 or 3.1
float
==
array
s
15. the representation of data from a start to end point
|x|
=>
break if
range
16. interpolation operator
.scan()
.include?()
#{}
.sort
17. runs a proc that has been stored to a variable
Z
call
A
.capitalize
18. a single instance of a class.
object
D
.pop
|x|
19. comparison operator for "not equal to"
.each
!=
class
inheritance
20. variable that can be used only where it is defined within an application
local variable
strip
interpolation
.include?()
21. a string method that splits a string into an array
.split
string
w
inheritance
22. sets a text delimiter
parameters
%arg
.next
?x
23. (regular expression)any digit
d
.capitalize
.upcase
.each
24. 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
.select
range
.match
interpolation
25. interpolation operator
#{}
.methods
<<
@
26. a way to describe patterns in text
|x|
.match
regular expressions
.between?
27. method to determine if an object is an even number
.include?()
.sub
<=
.even?
28. a string method that removes last character
.chop
inheritance
iterator
constant
29. method that tells an argument's place value within an array
s
.gsub
D
.index
30. a string method that substitutes ALL occurrences of a string with another.
.gsub
parameters
?x
A
31. tells ruby a value to pass while iterating a block of code
d
D
=>
yield
32. (regular expression)any space or tab or newline or whitespace
s
D
strip
kernel
33. returns ASCII value of x
string
#{}
?x
!
34. array method that removes last item from an array
struct
d
.pop
.chop
35. a string method that changes last character to next alphabetical character
range
.next
flow control
library
36. a regular method that is the anchor for the beggining of a line
^
interpolation
S
end_with?
37. (regular expression)any space or tab or newline or whitespace
%
W
s
<<
38. using classes and objects to make real-world concepts in programming.
<
object orientation
not and or
break if
39. Boolean OR operator
||
s
!
constant
40. a string method that uncapitalizes first character
string
|x|
.downcase
.each
41. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<=>
#{}
.pop
.methods
42. defines a class variable. Can be used anywhere within a class
$
.scan()
method
@@
43. operator for "Boolean not"
object orientation
s
%
!
44. a string method that reverses capitalization
.swapcase
<
w
$
45. a string method that scans object for arguments - uses regular expressions.
.scan()
operators
string
S
46. sets a single character text delimiter for multi-line strings
%q
^
parameters
.downcase
47. a string method that removes last character
.chop
W
range
@
48. passes value into block of code and assigns it the label of "x"
.gsub
|x|
$
.select
49. an array method that
.each
D
ARGV
end_with?
50. a collection of characters such as "Hello world!"
&&
string
operators
<<