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. the representation of data from a start to end point
start_with?
range
operators
.next
2. a way to describe patterns in text
<=
A
regular expressions
.methods
3. mixing expressions into strings
ARGV
.scan()
&&
interpolation
4. a collection of characters such as "Hello world!"
^
.upcase
<<
string
5. a regular method that is the anchor for the end of a line
w
$
s
.chop
6. array method that selects particular items from an array
range
D
.select
.methods
7. Boolean OR operator
?x
>=
||
=>
8. (regular expression)any nondigit
%arg
<=>
D
||
9. less than or equal to (comparison operator)
<=
regular expressions
S
.capitalize
10. method that tells an argument's place value within an array
=>
.index
.between?
array
11. a collection of objects or values with associated keys
hash
regular expressions
&&
method
12. interpolation operator
.next
.upcase
#{}
.methods
13. method to determine if an object is an even number
inheritance
.even?
interpolation
.each
14. tells you all methods that an object may invoke.
.downcase
.methods
code blocks
&&
15. a regular method that is the anchor for the beggining of a line
ARGV
^
Z
%
16. a string method that substitutes ALL occurrences of a string with another.
.match
.gsub
variable
.map
17. string method that "cleans" extra spaces from strings
%arg
string
strip
range
18. (regular expression)anchor for the start of a string
#{}
A
@
?x
19. defines array of multiple elements seperated by a space
flow control
yield
%w{}
array
20. string method that determines if a string ends with a defined string
end_with?
library
not and or
.select
21. passes value into block of code and assigns it the label of "x"
W
#{}
flow control
|x|
22. data passed to methods in parenthesis after a method's name.
arguments
.even?
if?then:else
A
23. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.sub
%w{}
<=>
.scan()
24. Boolean not and or (lower preference)
strip
.capitalize
not and or
if?then:else
25. a string method that changes last character to next alphabetical character
D
A
.next
=>
26. class inheritance operator.
?x
Z
^
<
27. a variable that lists the directories where Ruby will look for libraries
$:.
call
flow control
inheritance
28. a special array made from arguments that were added to the command line at start up.
integer
^
ARGV
strip
29. array method that removes last item from an array
kernel
.map
struct
.pop
30. a definition of a concept in an object oriented language.
$
method
.each
class
31. returns ASCII value of x
?x
.even?
if?then:else
D
32. a string method that removes last character
.chop
<
.next
%
33. 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.
^
class
code blocks
.sort
34. 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
object
.match
>=
S
35. defines a class variable. Can be used anywhere within a class
Z
@@
break if
regular expressions
36. method that tells if an argument is within the limits of two numbers
!=
.index
.between?
start_with?
37. the process of deciding which sections of code to execute based on conditions
flow control
.even?
.between?
strip
38. methods that step through lists element by element (like each or upto or times etc)
.methods
float
iterator
parameters
39. a string method that splits a string into an array
.split
strip
.methods
library
40. tells ruby a value to pass while iterating a block of code
yield
w
kernel
S
41. (regular expression)any digit
d
.even?
%w{}
flow control
42. a placeholder for a single object that may be a number or string or list or instance of a defined class
class
.match
variable
iterator
43. returns ASCII value of x
?x
.scan()
.select
D
44. (regular expression)any space or tab or newline or whitespace
.map
not and or
!
s
45. (regular expression)any space or tab or newline or whitespace
s
class
<=>
.next
46. using classes and objects to make real-world concepts in programming.
<=>
S
object orientation
.pop
47. an array method that returns TRUE or FALSE if the array contains specified item
integer
A
.pop
.include?()
48. a single instance of a class.
object
.each
.downcase
W
49. a regular method that is the anchor for the beggining of a line
Z
^
$:.
.sub
50. comparison operator for "not equal to"
!=
@@
.gsub
D