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. interpolation operator
.split
.downcase
.pop
#{}
2. the remainder operator
<<
A
%
flow control
3. (regular expression)anchor for the start of a string
float
constant
A
struct
4. (regular expression)anchor for the start of a string
.include?()
A
.sub
%w{}
5. a collection of objects with a defined order
array
class
D
$:.
6. a collection of objects or values with associated keys
not and or
D
^
hash
7. array method that transforms the contents of an array according to a specified set of rules
object orientation
>=
.map
operators
8. greater than or equal to (comparison operator)
Z
start_with?
>=
.upcase
9. pushes a new item onto the end of an array.
.each
s
<<
|x|
10. a fixed value that begins with a capital letter such as Pi.
>=
flow control
constant
.each
11. passes value into block of code and assigns it the label of "x"
method
|x|
<<
D
12. using classes and objects to make real-world concepts in programming.
array
object orientation
W
.upcase
13. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
kernel
.even?
.each
14. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
%
W
==
15. 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
.sub
.match
.chop
.split
16. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
||
Z
w
kernel
17. an array method that
.methods
.even?
.each
.capitalize
18. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
constant
float
class
regular expressions
19. (regular expression)any nonletter or nondigit or nonunderscore.
^
.index
W
.select
20. a collection of characters such as "Hello world!"
.next
Z
.sort
string
21. string method that "cleans" extra spaces from strings
#{}
.downcase
strip
.gsub
22. a string method that capitalizes first character
.capitalize
library
.scan()
.pop
23. returns ASCII value of x
d
%arg
?x
inheritance
24. comparison operator for "not equal to"
s
.downcase
S
!=
25. a whole number
class
.map
integer
s
26. method that tells if an argument is within the limits of two numbers
.between?
.gsub
Z
%arg
27. (regular expression)any digit
d
|x|
$
strip
28. assigns a key to a hash value
=>
|x|
.index
$:.
29. allows for classes to relate to each other in a hierarchy
||
inheritance
.downcase
@@
30. a regular method that is the anchor for the beggining of a line
constant
.map
^
.sub
31. a string method that substituition. Requires 2 arguments.
constant
S
%w{}
.sub
32. variable that can be used only where it is defined within an application
local variable
.sub
%arg
.map
33. a string method that uncapitalizes first character
.downcase
flow control
<=>
call
34. data passed to methods in parenthesis after a method's name.
arguments
yield
.upcase
d
35. a string method that substitutes ALL occurrences of a string with another.
.next
.capitalize
.gsub
call
36. mixing expressions into strings
interpolation
!=
!
$:.
37. a string method that uncapitalizes first character
>=
end_with?
%arg
.downcase
38. (regular expression)any nondigit
.even?
D
.capitalize
.downcase
39. Boolean not and or (lower preference)
<<
Z
not and or
string
40. method that tells if an argument is within the limits of two numbers
$
.capitalize
.between?
w
41. the ternary operator if?then:else
.chop
object
if?then:else
%arg
42. a special class that holds attributes and data but no methods.
local variable
<<
struct
object
43. (regular expression)any letter or digit or underscore
w
end_with?
if?then:else
.chop
44. an array method that
.each
parameters
constant
kernel
45. a set of code within a class or object
!=
start_with?
<
method
46. operator for "Boolean not"
^
!
variable
.scan()
47. a regular method that is the anchor for the end of a line
operators
.between?
$
.index
48. a string method that makes string all caps.
.each
<
s
.upcase
49. (regular expression)any nonletter or nondigit or nonunderscore.
W
call
.chop
@
50. a single instance of a class.
.chop
object
.next
.scan()