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. class inheritance operator.
.even?
flow control
.methods
<
2. a variable that lists the directories where Ruby will look for libraries
hash
$:.
S
local variable
3. (regular expression)anchor for the end of a string
.select
d
Z
float
4. (regular expression)any letter or digit or underscore
.gsub
class
.map
w
5. a string method that substitutes ALL occurrences of a string with another.
library
.gsub
array
break if
6. array assignment oprator
%arg
<=
operators
<<
7. comparison operator for "equal to"
interpolation
parameters
==
<<
8. sets a text delimiter
.scan()
yield
$
%arg
9. (regular expression)anchor for the start of a string
.map
%w{}
.upcase
A
10. method that tells an argument's place value within an array
.index
.next
<
iterator
11. a string method that splits a string into an array
call
class
arguments
.split
12. method to determine if an object is an even number
.even?
.each
.upcase
array
13. interpolation operator
$:.
|x|
=>
#{}
14. a special array made from arguments that were added to the command line at start up.
!=
.between?
ARGV
.index
15. string method that determines if a string starts with a defined string
start_with?
.chop
local variable
d
16. assigns a key to a hash value
^
float
=>
.scan()
17. a regular method that is the anchor for the beggining of a line
.next
.map
^
%arg
18. a string method that substitutes THE FIRST occurrence of a string within a string
.pop
^
<<
.sub
19. 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
.select
|x|
strip
20. a definition of a concept in an object oriented language.
constant
class
.next
d
21. a string method that removes last character
.sort
.chop
s
@
22. (regular expression)any space or tab or newline or whitespace
s
.chop
regular expressions
&&
23. greater than or equal to (comparison operator)
break if
>=
$
.include?()
24. tells ruby a value to pass while iterating a block of code
|x|
yield
!=
integer
25. (regular expression)anchor for the end of a string
iterator
end_with?
Z
.gsub
26. the representation of data from a start to end point
.next
range
?x
.index
27. Boolean OR operator
$:.
||
.downcase
.sort
28. method that sorts items alphabetically
.select
w
interpolation
.sort
29. a way to describe patterns in text
.sort
.match
regular expressions
string
30. an array method that
arguments
#{}
.each
object
31. a string method that changes last character to next alphabetical character
<
object
A
.next
32. a regular method that is the anchor for the beggining of a line
^
.map
S
<=
33. defines array of multiple elements seperated by a space
interpolation
.capitalize
strip
%w{}
34. a string method that uncapitalizes first character
W
!=
.downcase
arguments
35. a number with a decimal point such as 1.0 or 3.1
.methods
float
.scan()
.chop
36. a collection of objects or values with associated keys
constant
parameters
^
hash
37. (regular expression)any digit
Z
$:.
d
==
38. a regular method that is the anchor for the end of a line
ARGV
W
$
class
39. (regular expression)any nondigit
D
|x|
.index
.downcase
40. a special class that holds attributes and data but no methods.
.upcase
struct
^
.sub
41. (regular expression)any nonletter or nondigit or nonunderscore.
yield
W
&&
.include?()
42. the ternary operator if?then:else
call
constant
if?then:else
operators
43. (regular expression)any letter or digit or underscore
code blocks
w
.chop
not and or
44. methods that step through lists element by element (like each or upto or times etc)
.map
W
inheritance
iterator
45. (regular expression)any non-whitespace character
%arg
local variable
Z
S
46. using classes and objects to make real-world concepts in programming.
string
regular expressions
class
object orientation
47. 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
A
constant
.match
s
48. a collection of objects with a defined order
^
<=>
.map
array
49. method that tells if an argument is within the limits of two numbers
<<
local variable
.each
.between?
50. conditionally stops a loop
library
S
|x|
break if