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. Boolean AND operator
A
&&
.include?()
interpolation
2. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
#{}
object
D
3. symbol for a global variable which can be called from anywhere in an application.
$
<<
break if
.next
4. class inheritance operator.
w
.index
<
%w{}
5. the remainder operator
.split
%w{}
%
object orientation
6. method that tells if an argument is within the limits of two numbers
.between?
.sub
.sub
struct
7. an array method that
.pop
!=
.chop
.each
8. a string method that changes last character to next alphabetical character
w
flow control
.next
!=
9. a number with a decimal point such as 1.0 or 3.1
w
.capitalize
.sub
float
10. interpolation operator
^
%w{}
#{}
.scan()
11. (regular expression)any letter or digit or underscore
<
start_with?
<<
w
12. a string method that substitutes ALL occurrences of a string with another.
%
%q
.swapcase
.gsub
13. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
.select
.upcase
=>
kernel
14. a whole number
not and or
integer
$:.
object
15. comparison operator for "equal to"
D
strip
|x|
==
16. a string method that scans object for arguments - uses regular expressions.
.scan()
.downcase
string
?x
17. Boolean not and or (lower preference)
arguments
ARGV
!
not and or
18. allows for classes to relate to each other in a hierarchy
inheritance
code blocks
.match
if?then:else
19. (regular expression)any nondigit
.downcase
D
.sub
s
20. comparison operator for "not equal to"
!=
method
not and or
Z
21. (regular expression)any digit
start_with?
d
&&
variable
22. a string method that capitalizes first character
?x
.capitalize
.gsub
constant
23. variable that can be used only where it is defined within an application
D
>=
local variable
.swapcase
24. the ternary operator if?then:else
?x
constant
if?then:else
variable
25. a fixed value that begins with a capital letter such as Pi.
=>
^
constant
%
26. a collection of objects with a defined order
@
.each
.chop
array
27. mixing expressions into strings
.index
yield
interpolation
.sub
28. (regular expression)any space or tab or newline or whitespace
.map
!=
s
break if
29. conditionally stops a loop
w
break if
.index
if?then:else
30. a string method that uncapitalizes first character
parameters
.downcase
%w{}
d
31. (regular expression)any non-whitespace character
S
break if
!=
^
32. data passed to methods in parenthesis after a method's name.
s
<<
.chop
parameters
33. a set of code within a class or object
constant
.even?
.between?
method
34. returns ASCII value of x
.chop
?x
constant
.next
35. used in an expression to manipulate objects
operators
$:.
integer
hash
36. a special array made from arguments that were added to the command line at start up.
.split
Z
W
ARGV
37. (regular expression)any nonletter or nondigit or nonunderscore.
class
W
object orientation
code blocks
38. 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
.match
W
.split
end_with?
39. method that tells if an argument is within the limits of two numbers
|x|
&&
^
.between?
40. a string method that reverses capitalization
%q
.capitalize
.swapcase
arguments
41. data passed to methods in parenthesis after a method's name.
arguments
.include?()
Z
.split
42. string method that determines if a string ends with a defined string
D
|x|
@
end_with?
43. defines a class variable. Can be used anywhere within a class
@@
%q
.next
%w{}
44. (regular expression)any non-whitespace character
#{}
call
S
arguments
45. method that tells an argument's place value within an array
regular expressions
.index
.sort
not and or
46. a regular method that is the anchor for the beggining of a line
if?then:else
^
local variable
D
47. a special class that holds attributes and data but no methods.
struct
W
.gsub
array
48. a definition of a concept in an object oriented language.
class
kernel
.methods
w
49. a string method that scans object for arguments - uses regular expressions.
.next
inheritance
.scan()
class
50. (regular expression)any nonletter or nondigit or nonunderscore.
W
.downcase
end_with?
array