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 letter or digit or underscore
w
library
yield
.select
2. comparison operator for "not equal to"
not and or
.index
!=
.next
3. method that tells if an argument is within the limits of two numbers
constant
.between?
<<
.index
4. Boolean OR operator
||
!=
if?then:else
.sub
5. a set of code within a class or object
.include?()
method
constant
string
6. a single instance of a class.
S
object
float
code blocks
7. method that sorts items alphabetically
.between?
<<
d
.sort
8. a string method that makes string all caps.
.upcase
?x
ARGV
A
9. comparison operator for "equal to"
?x
==
d
break if
10. 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.
integer
#{}
Z
code blocks
11. a string method that changes last character to next alphabetical character
.sub
d
call
.next
12. a string method that substitutes ALL occurrences of a string with another.
|x|
float
%
.gsub
13. a regular method that is the anchor for the beggining of a line
.between?
<=>
object
^
14. a string method that removes last character
.chop
D
operators
!
15. a string method that scans object for arguments - uses regular expressions.
call
range
.scan()
<=>
16. a special array made from arguments that were added to the command line at start up.
<
.map
local variable
ARGV
17. (regular expression)anchor for the end of a string
.index
inheritance
Z
range
18. defines array of multiple elements seperated by a space
regular expressions
.upcase
kernel
%w{}
19. interpolation operator
#{}
.even?
A
@
20. a string method that changes last character to next alphabetical character
.scan()
@@
@
.next
21. data passed to methods in parenthesis after a method's name.
s
.chop
break if
arguments
22. array assignment oprator
.sub
<<
ARGV
.capitalize
23. (regular expression)any space or tab or newline or whitespace
$:.
s
<<
flow control
24. method to determine if an object is an even number
code blocks
start_with?
.even?
.sub
25. the remainder operator
string
%
not and or
.next
26. variable that can be used only where it is defined within an application
regular expressions
local variable
float
strip
27. a definition of a concept in an object oriented language.
constant
class
$
.scan()
28. interpolation operator
s
.scan()
end_with?
#{}
29. array method that transforms the contents of an array according to a specified set of rules
A
.map
.gsub
w
30. a string method that capitalizes first character
.methods
.pop
.capitalize
ARGV
31. a fixed value that begins with a capital letter such as Pi.
Z
.upcase
constant
%arg
32. a collection of objects or values with associated keys
<
library
A
hash
33. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
.capitalize
.scan()
W
34. a string method that removes last character
.chop
A
@
%w{}
35. the ternary operator if?then:else
local variable
call
s
if?then:else
36. (regular expression)any nondigit
D
end_with?
.scan()
object orientation
37. string method that determines if a string starts with a defined string
.each
.map
start_with?
kernel
38. Boolean AND operator
kernel
&&
library
>=
39. passes value into block of code and assigns it the label of "x"
.even?
|x|
d
==
40. the process of deciding which sections of code to execute based on conditions
method
flow control
%w{}
.methods
41. a collection of characters such as "Hello world!"
string
.even?
%w{}
^
42. tells you all methods that an object may invoke.
.capitalize
.methods
A
array
43. method to determine if an object is an even number
S
w
%
.even?
44. string method that determines if a string ends with a defined string
library
d
&&
end_with?
45. (regular expression)any nonletter or nondigit or nonunderscore.
D
W
strip
variable
46. (regular expression)any digit
operators
d
ARGV
library
47. a definition of a concept in an object oriented language.
class
interpolation
call
.chop
48. (regular expression)anchor for the start of a string
d
ARGV
A
.methods
49. method that tells an argument's place value within an array
#{}
interpolation
hash
.index
50. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
d
constant
class
regular expressions