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. the representation of data from a start to end point
.map
range
if?then:else
<=>
2. a collection of objects or values with associated keys
hash
inheritance
.even?
.scan()
3. (regular expression)anchor for the end of a string
strip
array
Z
.scan()
4. comparison operator for "equal to"
==
#{}
!
Z
5. (regular expression)any non-whitespace character
object
||
S
.sort
6. 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
flow control
.sort
7. comparison operator for "not equal to"
object orientation
!=
.downcase
==
8. defines a class variable. Can be used anywhere within a class
yield
Z
@@
S
9. variable that can be used only where it is defined within an application
string
local variable
^
.index
10. string method that "cleans" extra spaces from strings
strip
|x|
.downcase
w
11. methods that step through lists element by element (like each or upto or times etc)
<<
$
iterator
W
12. a collection of characters such as "Hello world!"
%
?x
string
?x
13. interpolation operator
operators
#{}
constant
!=
14. (regular expression)anchor for the start of a string
inheritance
local variable
A
.sub
15. assigns a key to a hash value
w
=>
^
end_with?
16. using classes and objects to make real-world concepts in programming.
break if
.upcase
.between?
object orientation
17. class inheritance operator.
<
.methods
if?then:else
?x
18. a string method that uncapitalizes first character
.downcase
integer
!=
operators
19. sets a text delimiter
%arg
.even?
.scan()
|x|
20. the remainder operator
.chop
strip
Z
%
21. string method that determines if a string starts with a defined string
%arg
start_with?
parameters
.scan()
22. tells you all methods that an object may invoke.
ARGV
flow control
.methods
range
23. a string method that makes string all caps.
.capitalize
.scan()
.upcase
!=
24. a string method that reverses capitalization
method
.each
.swapcase
constant
25. array method that removes last item from an array
.map
.pop
call
?x
26. operator for "Boolean not"
strip
.index
.downcase
!
27. Boolean AND operator
method
hash
&&
<=
28. method that tells an argument's place value within an array
library
=>
?x
.index
29. (regular expression)any nondigit
^
D
#{}
float
30. method that tells an argument's place value within an array
<<
!=
.index
constant
31. a whole number
integer
S
<
w
32. sets a single character text delimiter for multi-line strings
.between?
start_with?
%q
flow control
33. a placeholder for a single object that may be a number or string or list or instance of a defined class
s
A
variable
&&
34. array method that selects particular items from an array
.select
>=
.include?()
S
35. array method that removes last item from an array
s
.pop
.sub
.include?()
36. method that sorts items alphabetically
regular expressions
<<
.sort
constant
37. (regular expression)anchor for the start of a string
code blocks
A
?x
.scan()
38. tells you all methods that an object may invoke.
.pop
<<
==
.methods
39. a string method that capitalizes first character
.downcase
.capitalize
class
.next
40. a string method that uncapitalizes first character
constant
.map
.downcase
$
41. Boolean OR operator
local variable
.sort
||
=>
42. a definition of a concept in an object oriented language.
s
class
iterator
^
43. tells ruby a value to pass while iterating a block of code
.between?
range
inheritance
yield
44. method that tells if an argument is within the limits of two numbers
string
.between?
struct
S
45. a string method that scans object for arguments - uses regular expressions.
struct
.scan()
?x
W
46. (regular expression)any space or tab or newline or whitespace
.scan()
s
end_with?
.even?
47. symbol for a global variable which can be called from anywhere in an application.
$
<<
.gsub
d
48. a way to describe patterns in text
&&
!
regular expressions
inheritance
49. (regular expression)any digit
$:.
.capitalize
d
struct
50. a string method that substitutes ALL occurrences of a string with another.
.gsub
.include?()
struct
$