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 string method that uncapitalizes first character
d
|x|
.downcase
%q
2. comparison operator for "equal to"
==
.next
regular expressions
#{}
3. method that tells if an argument is within the limits of two numbers
<=>
.swapcase
code blocks
.between?
4. 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
object
.match
%q
.between?
5. a string method that reverses capitalization
.swapcase
integer
.methods
!=
6. conditionally stops a loop
$
.map
break if
<=>
7. an array method that returns TRUE or FALSE if the array contains specified item
.capitalize
.include?()
|x|
integer
8. Boolean not and or (lower preference)
method
.split
if?then:else
not and or
9. (regular expression)anchor for the end of a string
.between?
call
Z
!
10. comparison operator for "not equal to"
.scan()
D
!=
!
11. (regular expression)any space or tab or newline or whitespace
constant
<
s
%w{}
12. a string method that scans object for arguments - uses regular expressions.
start_with?
interpolation
.select
.scan()
13. (regular expression)anchor for the start of a string
code blocks
A
.each
.select
14. a string method that uncapitalizes first character
!
.swapcase
.downcase
.next
15. a collection of objects or values with associated keys
hash
s
.gsub
operators
16. a collection of objects with a defined order
array
#{}
%w{}
W
17. mixing expressions into strings
interpolation
!
|x|
!
18. a definition of a concept in an object oriented language.
S
call
class
.even?
19. (regular expression)anchor for the start of a string
w
A
%arg
string
20. a fixed value that begins with a capital letter such as Pi.
.select
!=
constant
>=
21. interpolation operator
interpolation
.next
#{}
Z
22. (regular expression)any digit
.capitalize
d
||
#{}
23. sets a single character text delimiter for multi-line strings
W
%q
regular expressions
.downcase
24. (regular expression)any nondigit
D
code blocks
object orientation
flow control
25. data passed to methods in parenthesis after a method's name.
.map
arguments
object
W
26. a string method that capitalizes first character
constant
==
.capitalize
<<
27. the process of deciding which sections of code to execute based on conditions
yield
.select
flow control
.downcase
28. operator for "Boolean not"
integer
.downcase
!
library
29. method to determine if an object is an even number
.even?
!
flow control
>=
30. (regular expression)any nonletter or nondigit or nonunderscore.
%
start_with?
local variable
W
31. (regular expression)any nondigit
start_with?
D
&&
S
32. a string method that substitutes THE FIRST occurrence of a string within a string
.include?()
W
local variable
.sub
33. a variable that lists the directories where Ruby will look for libraries
class
.split
$:.
regular expressions
34. a way to describe patterns in text
regular expressions
.chop
.methods
object orientation
35. a string method that substitutes ALL occurrences of a string with another.
!=
.include?()
#{}
.gsub
36. class inheritance operator.
%q
<
<=>
.sub
37. a string method that scans object for arguments - uses regular expressions.
<=
.scan()
=>
%q
38. (regular expression)any digit
ARGV
.index
d
||
39. tells you all methods that an object may invoke.
w
local variable
.methods
.swapcase
40. operator for "Boolean not"
Z
^
!
&&
41. runs a proc that has been stored to a variable
not and or
break if
call
^
42. a regular method that is the anchor for the beggining of a line
.between?
.select
struct
^
43. a regular method that is the anchor for the beggining of a line
ARGV
^
#{}
D
44. the remainder operator
.between?
break if
!=
%
45. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
%w{}
d
constant
float
46. defines a class variable. Can be used anywhere within a class
@@
constant
#{}
.pop
47. interpolation operator
.scan()
library
#{}
.chop
48. a string method that changes last character to next alphabetical character
d
code blocks
library
.next
49. methods that step through lists element by element (like each or upto or times etc)
.scan()
<
iterator
<<
50. pushes a new item onto the end of an array.
<<
.upcase
!=
interpolation