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. (regular expression)any space or tab or newline or whitespace
<<
struct
s
?x
2. a string method that scans object for arguments - uses regular expressions.
.scan()
w
.gsub
<=
3. string method that determines if a string ends with a defined string
==
=>
end_with?
float
4. a string method that changes last character to next alphabetical character
.next
s
.match
%
5. a collection of characters such as "Hello world!"
string
!
=>
hash
6. a string method that uncapitalizes first character
.chop
%arg
.downcase
.capitalize
7. operator for "Boolean not"
.upcase
Z
!
>=
8. allows for classes to relate to each other in a hierarchy
@@
=>
range
inheritance
9. variable that can be used only where it is defined within an application
!=
@@
local variable
^
10. conditionally stops a loop
break if
<
w
flow control
11. (regular expression)any letter or digit or underscore
struct
||
w
<=
12. (regular expression)any nonletter or nondigit or nonunderscore.
float
interpolation
?x
W
13. data passed to methods in parenthesis after a method's name.
arguments
.include?()
.even?
integer
14. a set of code within a class or object
method
start_with?
end_with?
.capitalize
15. (regular expression)anchor for the end of a string
end_with?
^
?x
Z
16. assigns a key to a hash value
=>
parameters
.scan()
arguments
17. (regular expression)any nonletter or nondigit or nonunderscore.
code blocks
W
.index
S
18. defines array of multiple elements seperated by a space
.include?()
s
%w{}
#{}
19. a way to describe patterns in text
regular expressions
.gsub
interpolation
.capitalize
20. operator for "Boolean not"
!
w
struct
<=>
21. tells you all methods that an object may invoke.
.methods
variable
%
!
22. a string method that substitutes THE FIRST occurrence of a string within a string
.next
@
start_with?
.sub
23. method that tells if an argument is within the limits of two numbers
range
.between?
?x
.gsub
24. tells ruby a value to pass while iterating a block of code
D
yield
=>
A
25. array assignment oprator
<<
.gsub
&&
<=>
26. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.each
class
.split
constant
27. array method that transforms the contents of an array according to a specified set of rules
@@
<=>
constant
.map
28. greater than or equal to (comparison operator)
array
S
>=
.include?()
29. array method that transforms the contents of an array according to a specified set of rules
.downcase
.map
library
?x
30. a collection of objects with a defined order
array
range
<<
.scan()
31. a string method that reverses capitalization
#{}
!=
@
.swapcase
32. an array method that returns TRUE or FALSE if the array contains specified item
.select
<=>
.between?
.include?()
33. (regular expression)anchor for the start of a string
W
A
.capitalize
W
34. returns ASCII value of x
%q
?x
@
$:.
35. (regular expression)anchor for the end of a string
d
Z
.methods
.even?
36. used in an expression to manipulate objects
W
operators
<
$
37. interpolation operator
float
A
constant
#{}
38. sets a text delimiter
S
%arg
.next
.map
39. tells you all methods that an object may invoke.
^
=>
.methods
d
40. symbol for a global variable which can be called from anywhere in an application.
$
.match
!
yield
41. comparison operator for "not equal to"
d
!=
%
start_with?
42. a number with a decimal point such as 1.0 or 3.1
.chop
float
.index
local variable
43. (regular expression)any digit
@
.chop
d
Z
44. comparison operator for "equal to"
==
yield
start_with?
.next
45. a string method that substitutes ALL occurrences of a string with another.
variable
$
constant
.gsub
46. a string method that capitalizes first character
.capitalize
not and or
A
.split
47. defines an instance variable which only exists within the object it was created in.
.between?
.gsub
.sub
@
48. methods that step through lists element by element (like each or upto or times etc)
string
iterator
.upcase
.gsub
49. a string method that uncapitalizes first character
.pop
A
.downcase
.sub
50. Boolean not and or (lower preference)
operators
parameters
iterator
not and or