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 capitalizes first character
%q
<
.capitalize
.next
2. a string method that uncapitalizes first character
.downcase
yield
call
==
3. returns ASCII value of x
start_with?
parameters
%arg
?x
4. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
$:.
^
.even?
5. (regular expression)any non-whitespace character
S
string
<
<<
6. a collection of objects with a defined order
array
.include?()
.map
arguments
7. the process of deciding which sections of code to execute based on conditions
object orientation
.pop
flow control
.pop
8. a way to describe patterns in text
operators
struct
regular expressions
.sub
9. a string method that substitutes ALL occurrences of a string with another.
A
.gsub
.map
<<
10. (regular expression)any nonletter or nondigit or nonunderscore.
W
!
?x
range
11. (regular expression)any digit
inheritance
d
not and or
arguments
12. a special array made from arguments that were added to the command line at start up.
ARGV
hash
S
.split
13. a string method that substitutes THE FIRST occurrence of a string within a string
yield
.pop
.sub
strip
14. a whole number
code blocks
integer
.capitalize
.methods
15. a variable that lists the directories where Ruby will look for libraries
.each
object
.pop
$:.
16. a set of code within a class or object
method
.between?
kernel
object
17. a string method that scans object for arguments - uses regular expressions.
.scan()
S
if?then:else
D
18. a module of classes and or functions
d
library
Z
end_with?
19. method to determine if an object is an even number
?x
.even?
?x
kernel
20. a string method that removes last character
.even?
.each
<<
.chop
21. method that tells if an argument is within the limits of two numbers
$
.sort
.between?
code blocks
22. a string method that changes last character to next alphabetical character
s
.index
.gsub
.next
23. array method that transforms the contents of an array according to a specified set of rules
constant
A
.sub
.map
24. (regular expression)any non-whitespace character
S
constant
&&
.scan()
25. a regular method that is the anchor for the beggining of a line
code blocks
^
.select
break if
26. a string method that reverses capitalization
@
.swapcase
.each
library
27. (regular expression)any space or tab or newline or whitespace
!
s
hash
regular expressions
28. using classes and objects to make real-world concepts in programming.
.downcase
.gsub
call
object orientation
29. a string method that splits a string into an array
.match
.split
S
&&
30. a definition of a concept in an object oriented language.
|x|
.upcase
class
!
31. operator for "Boolean not"
!
.each
<=
@@
32. (regular expression)any nondigit
D
iterator
?x
@
33. a string method that substitutes ALL occurrences of a string with another.
integer
call
!=
.gsub
34. a collection of characters such as "Hello world!"
hash
string
.between?
.methods
35. a single instance of a class.
call
string
arguments
object
36. a number with a decimal point such as 1.0 or 3.1
end_with?
d
.index
float
37. (regular expression)any space or tab or newline or whitespace
.downcase
s
Z
@
38. a string method that removes last character
.each
s
local variable
.chop
39. a placeholder for a single object that may be a number or string or list or instance of a defined class
@
variable
Z
.capitalize
40. defines a class variable. Can be used anywhere within a class
range
@@
.match
d
41. a collection of objects or values with associated keys
inheritance
A
hash
^
42. (regular expression)any letter or digit or underscore
@@
$
method
w
43. the representation of data from a start to end point
||
local variable
range
object orientation
44. (regular expression)any letter or digit or underscore
arguments
w
class
@
45. array method that removes last item from an array
.pop
call
W
.methods
46. an array method that
.methods
.each
constant
#{}
47. array assignment oprator
.capitalize
strip
.sub
<<
48. a special class that holds attributes and data but no methods.
struct
arguments
==
array
49. tells ruby a value to pass while iterating a block of code
.methods
yield
%w{}
float
50. operator for "Boolean not"
!
kernel
local variable
.next