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 section of code with no discrete name which is not a method by itself that can be called upon and can receive an argument.
.gsub
class
code blocks
!=
2. a string method that removes last character
.chop
@
.match
.between?
3. an array method that
.next
%q
.each
object
4. a collection of objects or values with associated keys
hash
==
@@
<
5. a regular method that is the anchor for the end of a line
.each
$
%arg
|x|
6. comparison operator for "not equal to"
ARGV
!=
struct
.gsub
7. a string method that removes last character
integer
.chop
.sort
<<
8. less than or equal to (comparison operator)
<=
|x|
$:.
w
9. (regular expression)any nondigit
D
?x
^
<
10. the ternary operator if?then:else
if?then:else
.map
.capitalize
.include?()
11. (regular expression)anchor for the start of a string
A
%w{}
.next
start_with?
12. operator for "Boolean not"
%
<<
s
!
13. the representation of data from a start to end point
range
!=
|x|
hash
14. sets a text delimiter
<
.sort
<<
%arg
15. defines a class variable. Can be used anywhere within a class
if?then:else
.include?()
@@
ARGV
16. returns ASCII value of x
call
.pop
?x
.next
17. a string method that reverses capitalization
<
.each
.swapcase
!
18. variable that can be used only where it is defined within an application
.between?
start_with?
local variable
D
19. a string method that substitutes ALL occurrences of a string with another.
Z
.gsub
.chop
A
20. a string method that changes last character to next alphabetical character
|x|
hash
.select
.next
21. array assignment oprator
%w{}
operators
<<
inheritance
22. allows for classes to relate to each other in a hierarchy
call
inheritance
yield
$:.
23. data passed to methods in parenthesis after a method's name.
parameters
arguments
#{}
@@
24. a string method that scans object for arguments - uses regular expressions.
.even?
break if
?x
.scan()
25. used in an expression to manipulate objects
operators
!
d
&&
26. conditionally stops a loop
Z
<=>
.gsub
break if
27. using classes and objects to make real-world concepts in programming.
object orientation
.sub
regular expressions
.next
28. returns ASCII value of x
.even?
.index
?x
D
29. Boolean AND operator
&&
kernel
inheritance
@
30. a string method that scans object for arguments - uses regular expressions.
.scan()
.methods
s
start_with?
31. a string method that capitalizes first character
.index
.each
local variable
.capitalize
32. a collection of characters such as "Hello world!"
integer
ARGV
string
<<
33. (regular expression)any digit
.index
s
d
.downcase
34. method that tells an argument's place value within an array
%q
.even?
.index
.between?
35. a string method that substituition. Requires 2 arguments.
.next
class
A
.sub
36. (regular expression)any nondigit
class
.map
.pop
D
37. comparison operator for "not equal to"
!=
w
.match
%q
38. symbol for a global variable which can be called from anywhere in an application.
s
interpolation
.split
$
39. a string method that substitutes ALL occurrences of a string with another.
.gsub
.sort
.next
!=
40. pushes a new item onto the end of an array.
.methods
<<
>=
.methods
41. tells you all methods that an object may invoke.
.methods
if?then:else
.scan()
<<
42. data passed to methods in parenthesis after a method's name.
A
parameters
%w{}
#{}
43. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<
<<
<=>
%q
44. operator for "Boolean not"
.scan()
W
!
w
45. a definition of a concept in an object oriented language.
class
variable
!=
hash
46. the remainder operator
kernel
hash
.between?
%
47. tells you all methods that an object may invoke.
@@
<=
iterator
.methods
48. (regular expression)anchor for the end of a string
.include?()
w
Z
d
49. the process of deciding which sections of code to execute based on conditions
flow control
.downcase
struct
range
50. string method that determines if a string ends with a defined string
end_with?
regular expressions
<=
.between?