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. a regular method that is the anchor for the beggining of a line
^
.between?
.split
==
2. (regular expression)anchor for the start of a string
.chop
A
.capitalize
<<
3. symbol for a global variable which can be called from anywhere in an application.
local variable
$
.sub
yield
4. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
d
>=
=>
5. the process of deciding which sections of code to execute based on conditions
flow control
operators
.capitalize
float
6. array method that transforms the contents of an array according to a specified set of rules
.match
struct
.include?()
.map
7. returns ASCII value of x
.upcase
?x
local variable
string
8. method that tells an argument's place value within an array
.sort
.include?()
.index
<
9. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
.pop
%
.between?
kernel
10. operator for "Boolean not"
!
Z
library
.select
11. (regular expression)any nonletter or nondigit or nonunderscore.
s
W
kernel
A
12. a collection of characters such as "Hello world!"
#{}
.capitalize
string
call
13. Boolean OR operator
||
w
.downcase
!
14. tells ruby a value to pass while iterating a block of code
>=
yield
.capitalize
s
15. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<=>
call
$:.
.methods
16. a whole number
.index
<<
=>
integer
17. the representation of data from a start to end point
s
D
range
class
18. (regular expression)any digit
%q
A
range
d
19. a number with a decimal point such as 1.0 or 3.1
not and or
float
>=
call
20. a definition of a concept in an object oriented language.
kernel
inheritance
.map
class
21. a regular method that is the anchor for the beggining of a line
.sub
||
|x|
^
22. sets a text delimiter
method
ARGV
.swapcase
%arg
23. a regular method that is the anchor for the end of a line
.next
iterator
%q
$
24. string method that determines if a string ends with a defined string
.scan()
.include?()
end_with?
W
25. interpolation operator
#{}
Z
A
%w{}
26. method that sorts items alphabetically
|x|
string
.sort
.gsub
27. a single instance of a class.
.downcase
parameters
object
.next
28. comparison operator for "equal to"
==
regular expressions
#{}
string
29. data passed to methods in parenthesis after a method's name.
<<
.chop
.map
arguments
30. (regular expression)any non-whitespace character
S
%arg
^
strip
31. (regular expression)any nondigit
!
==
.gsub
D
32. a string method that reverses capitalization
local variable
.swapcase
hash
.index
33. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
$
library
d
34. (regular expression)anchor for the end of a string
.capitalize
Z
.index
.scan()
35. the ternary operator if?then:else
<=>
if?then:else
|x|
d
36. defines a class variable. Can be used anywhere within a class
w
!
@@
range
37. comparison operator for "not equal to"
!
float
code blocks
!=
38. a placeholder for a single object that may be a number or string or list or instance of a defined class
.next
variable
.next
.include?()
39. string method that "cleans" extra spaces from strings
.each
.downcase
strip
||
40. a special array made from arguments that were added to the command line at start up.
.include?()
float
$:.
ARGV
41. array method that transforms the contents of an array according to a specified set of rules
.map
w
.capitalize
.pop
42. defines array of multiple elements seperated by a space
%w{}
.gsub
@
class
43. conditionally stops a loop
&&
break if
.next
flow control
44. pushes a new item onto the end of an array.
class
<<
if?then:else
hash
45. array assignment oprator
integer
<<
.methods
.methods
46. array method that selects particular items from an array
.select
local variable
ARGV
#{}
47. class inheritance operator.
<
.map
.select
.pop
48. operator for "Boolean not"
inheritance
!
flow control
.each
49. defines an instance variable which only exists within the object it was created in.
parameters
^
@
?x
50. a string method that changes last character to next alphabetical character
.next
>=
$:.
|x|