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. passes value into block of code and assigns it the label of "x"
%q
A
strip
|x|
2. (regular expression)any digit
.even?
d
%
.scan()
3. the remainder operator
$
D
integer
%
4. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
|x|
<=>
?x
.chop
5. (regular expression)anchor for the end of a string
Z
variable
.index
.gsub
6. (regular expression)any non-whitespace character
S
call
%w{}
>=
7. 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.
float
struct
.match
code blocks
8. a collection of objects or values with associated keys
break if
hash
integer
.sub
9. operator for "Boolean not"
!=
s
operators
!
10. (regular expression)anchor for the start of a string
float
A
if?then:else
||
11. array method that removes last item from an array
.pop
W
.map
integer
12. a string method that scans object for arguments - uses regular expressions.
.scan()
.sub
D
%arg
13. data passed to methods in parenthesis after a method's name.
S
parameters
<<
<=>
14. Boolean not and or (lower preference)
object orientation
.downcase
not and or
#{}
15. a string method that changes last character to next alphabetical character
!
!=
class
.next
16. runs a proc that has been stored to a variable
call
end_with?
<=>
.chop
17. data passed to methods in parenthesis after a method's name.
arguments
w
.swapcase
end_with?
18. passes value into block of code and assigns it the label of "x"
|x|
#{}
iterator
.sort
19. array method that selects particular items from an array
constant
^
.select
.downcase
20. used in an expression to manipulate objects
$
operators
end_with?
flow control
21. variable that can be used only where it is defined within an application
<=
library
W
local variable
22. a number with a decimal point such as 1.0 or 3.1
.sort
hash
float
interpolation
23. a whole number
integer
.chop
.swapcase
%
24. (regular expression)any nonletter or nondigit or nonunderscore.
.between?
^
.even?
W
25. a string method that splits a string into an array
S
!=
.next
.split
26. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
if?then:else
.map
kernel
^
27. Boolean OR operator
.scan()
||
.pop
^
28. a fixed value that begins with a capital letter such as Pi.
constant
.select
break if
A
29. mixing expressions into strings
float
string
$:.
interpolation
30. a string method that changes last character to next alphabetical character
.next
.each
if?then:else
Z
31. defines a class variable. Can be used anywhere within a class
strip
@@
!=
d
32. class inheritance operator.
.between?
.even?
<
yield
33. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
if?then:else
constant
.sort
^
34. a string method that makes string all caps.
<=
.upcase
@@
.gsub
35. method that tells if an argument is within the limits of two numbers
.scan()
.between?
!=
@
36. method to determine if an object is an even number
.even?
^
.next
%q
37. conditionally stops a loop
break if
float
.capitalize
|x|
38. a collection of characters such as "Hello world!"
!=
string
float
.map
39. tells ruby a value to pass while iterating a block of code
interpolation
yield
.even?
%q
40. a regular method that is the anchor for the beggining of a line
^
S
$
array
41. a string method that substitutes ALL occurrences of a string with another.
.gsub
parameters
hash
d
42. an array method that
%q
method
.each
not and or
43. a set of code within a class or object
method
.scan()
W
$
44. method to determine if an object is an even number
.even?
d
method
S
45. (regular expression)any nonletter or nondigit or nonunderscore.
W
D
#{}
|x|
46. defines an instance variable which only exists within the object it was created in.
?x
w
.downcase
@
47. comparison operator for "not equal to"
W
%arg
!=
D
48. a single instance of a class.
.chop
.next
object
d
49. a string method that uncapitalizes first character
variable
<<
ARGV
.downcase
50. a string method that substituition. Requires 2 arguments.
#{}
.sub
.include?()
>=
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests