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 ternary operator if?then:else
flow control
yield
array
if?then:else
2. defines array of multiple elements seperated by a space
method
%w{}
local variable
$:.
3. a whole number
integer
.methods
D
$:.
4. a module of classes and or functions
.split
library
A
D
5. array method that selects particular items from an array
arguments
inheritance
|x|
.select
6. interpolation operator
.include?()
.downcase
W
#{}
7. interpolation operator
#{}
struct
.each
constant
8. method to determine if an object is an even number
constant
.even?
.swapcase
.gsub
9. a string method that uncapitalizes first character
.downcase
=>
s
.pop
10. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
%arg
.pop
flow control
11. the remainder operator
object orientation
%
struct
!
12. operator for "Boolean not"
.methods
array
W
!
13. the representation of data from a start to end point
range
#{}
.index
.upcase
14. string method that determines if a string ends with a defined string
.sort
end_with?
w
.index
15. (regular expression)any nonletter or nondigit or nonunderscore.
start_with?
.sort
W
d
16. a way to describe patterns in text
D
regular expressions
.between?
S
17. (regular expression)anchor for the start of a string
A
ARGV
.map
$:.
18. method that tells an argument's place value within an array
.map
.index
float
$:.
19. returns ASCII value of x
w
kernel
?x
<=
20. pushes a new item onto the end of an array.
<<
parameters
&&
.methods
21. a string method that scans object for arguments - uses regular expressions.
.scan()
%
.pop
S
22. (regular expression)anchor for the end of a string
.even?
.split
%
Z
23. methods that step through lists element by element (like each or upto or times etc)
if?then:else
.index
.sort
iterator
24. passes value into block of code and assigns it the label of "x"
object
.sub
|x|
%
25. a special class that holds attributes and data but no methods.
<=>
.between?
struct
.methods
26. a variable that lists the directories where Ruby will look for libraries
kernel
$:.
S
D
27. string method that "cleans" extra spaces from strings
strip
D
D
A
28. Boolean not and or (lower preference)
.gsub
.between?
not and or
.capitalize
29. an array method that returns TRUE or FALSE if the array contains specified item
if?then:else
.include?()
ARGV
yield
30. a string method that substitutes THE FIRST occurrence of a string within a string
.upcase
constant
.sub
<<
31. tells ruby a value to pass while iterating a block of code
yield
flow control
class
%arg
32. array assignment oprator
inheritance
Z
<<
.capitalize
33. less than or equal to (comparison operator)
s
.even?
<=
!
34. using classes and objects to make real-world concepts in programming.
if?then:else
inheritance
object orientation
.map
35. returns ASCII value of x
.capitalize
end_with?
?x
object orientation
36. a string method that makes string all caps.
.upcase
.sub
=>
w
37. a string method that scans object for arguments - uses regular expressions.
.index
Z
.scan()
.include?()
38. used in an expression to manipulate objects
operators
%arg
.each
.swapcase
39. a string method that capitalizes first character
.capitalize
.scan()
arguments
@
40. data passed to methods in parenthesis after a method's name.
%arg
s
arguments
class
41. array method that transforms the contents of an array according to a specified set of rules
.map
ARGV
@@
flow control
42. a collection of characters such as "Hello world!"
yield
D
string
library
43. method that tells if an argument is within the limits of two numbers
.between?
$:.
S
code blocks
44. (regular expression)any letter or digit or underscore
.chop
S
variable
w
45. a placeholder for a single object that may be a number or string or list or instance of a defined class
==
.sub
W
variable
46. symbol for a global variable which can be called from anywhere in an application.
$
.next
if?then:else
.index
47. defines a class variable. Can be used anywhere within a class
@@
constant
range
.swapcase
48. a number with a decimal point such as 1.0 or 3.1
float
S
hash
.sub
49. a single instance of a class.
.sub
W
library
object
50. sets a text delimiter
A
!
integer
%arg