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. sets a single character text delimiter for multi-line strings
integer
.chop
%q
!=
2. Boolean OR operator
||
method
range
strip
3. array method that selects particular items from an array
.select
class
library
iterator
4. method that sorts items alphabetically
.sort
class
constant
s
5. interpolation operator
class
.sort
#{}
.methods
6. returns ASCII value of x
call
?x
%q
end_with?
7. (regular expression)any letter or digit or underscore
w
?x
$:.
@
8. a string method that splits a string into an array
.split
object orientation
iterator
range
9. comparison operator for "equal to"
variable
operators
==
D
10. the remainder operator
.downcase
%
break if
Z
11. mixing expressions into strings
?x
inheritance
&&
interpolation
12. a special array made from arguments that were added to the command line at start up.
code blocks
ARGV
call
kernel
13. (regular expression)any non-whitespace character
start_with?
|x|
call
S
14. using classes and objects to make real-world concepts in programming.
array
object orientation
range
yield
15. a set of code within a class or object
#{}
.downcase
method
?x
16. array assignment oprator
arguments
.even?
<<
.between?
17. array method that removes last item from an array
not and or
.pop
^
interpolation
18. a variable that lists the directories where Ruby will look for libraries
!=
.match
$:.
.split
19. data passed to methods in parenthesis after a method's name.
s
.gsub
arguments
.sort
20. used in an expression to manipulate objects
operators
.chop
library
d
21. a string method that capitalizes first character
$
.capitalize
.methods
constant
22. (regular expression)anchor for the start of a string
class
kernel
inheritance
A
23. a string method that substituition. Requires 2 arguments.
.upcase
.sub
|x|
s
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
.even?
.match
!=
.sub
25. interpolation operator
%
|x|
#{}
.sub
26. a collection of characters such as "Hello world!"
.pop
<<
!
string
27. string method that determines if a string starts with a defined string
.downcase
#{}
start_with?
variable
28. method to determine if an object is an even number
.downcase
.even?
regular expressions
W
29. (regular expression)any nondigit
flow control
D
w
inheritance
30. a collection of objects or values with associated keys
inheritance
hash
.chop
?x
31. the ternary operator if?then:else
if?then:else
.sub
@@
==
32. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.next
D
<=>
.gsub
33. tells you all methods that an object may invoke.
#{}
S
.methods
range
34. the representation of data from a start to end point
<<
.sort
range
class
35. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
.downcase
<<
!=
36. (regular expression)any digit
#{}
d
not and or
.include?()
37. (regular expression)any non-whitespace character
not and or
A
S
.methods
38. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
Z
.downcase
call
39. defines array of multiple elements seperated by a space
.upcase
%w{}
Z
!=
40. passes value into block of code and assigns it the label of "x"
|x|
inheritance
code blocks
.select
41. a regular method that is the anchor for the beggining of a line
break if
^
.methods
<=
42. the process of deciding which sections of code to execute based on conditions
.sub
flow control
parameters
.index
43. a string method that uncapitalizes first character
%q
range
regular expressions
.downcase
44. method that tells if an argument is within the limits of two numbers
object orientation
strip
.index
.between?
45. (regular expression)anchor for the start of a string
.pop
yield
interpolation
A
46. comparison operator for "not equal to"
.sub
end_with?
.capitalize
!=
47. method to determine if an object is an even number
.even?
constant
^
hash
48. operator for "Boolean not"
.chop
local variable
!
#{}
49. symbol for a global variable which can be called from anywhere in an application.
@
D
$
parameters
50. a regular method that is the anchor for the end of a line
W
$
float
||