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. (regular expression)any letter or digit or underscore
&&
.downcase
>=
w
2. a single instance of a class.
==
variable
s
object
3. an array method that
.each
^
W
.gsub
4. a collection of objects or values with associated keys
strip
regular expressions
hash
if?then:else
5. a string method that substitutes ALL occurrences of a string with another.
.gsub
%q
%arg
<=>
6. tells you all methods that an object may invoke.
.methods
.index
class
.gsub
7. an array method that
.each
iterator
.map
?x
8. a special class that holds attributes and data but no methods.
w
struct
@
.pop
9. conditionally stops a loop
<=
break if
class
w
10. defines an instance variable which only exists within the object it was created in.
.scan()
@
.next
Z
11. sets a single character text delimiter for multi-line strings
iterator
%q
<=
arguments
12. comparison operator for "not equal to"
D
.swapcase
.pop
!=
13. the ternary operator if?then:else
?x
.even?
.scan()
if?then:else
14. a fixed value that begins with a capital letter such as Pi.
regular expressions
Z
constant
A
15. sets a text delimiter
$
.include?()
%arg
$
16. interpolation operator
inheritance
#{}
@@
.next
17. array assignment oprator
.between?
range
<
<<
18. (regular expression)any digit
method
d
||
^
19. a string method that uncapitalizes first character
regular expressions
.each
.downcase
hash
20. passes value into block of code and assigns it the label of "x"
arguments
|x|
operators
struct
21. data passed to methods in parenthesis after a method's name.
^
arguments
ARGV
.capitalize
22. data passed to methods in parenthesis after a method's name.
%
parameters
interpolation
.map
23. (regular expression)any nondigit
strip
=>
<
D
24. the remainder operator
end_with?
.scan()
%
.scan()
25. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.scan()
.capitalize
.include?()
<=>
26. greater than or equal to (comparison operator)
%q
>=
&&
.gsub
27. variable that can be used only where it is defined within an application
variable
local variable
.between?
!
28. a placeholder for a single object that may be a number or string or list or instance of a defined class
.swapcase
variable
regular expressions
.map
29. (regular expression)any nonletter or nondigit or nonunderscore.
object
.methods
?x
W
30. a string method that changes last character to next alphabetical character
parameters
struct
.next
$
31. less than or equal to (comparison operator)
<=
.match
!
=>
32. (regular expression)any nondigit
D
iterator
flow control
.capitalize
33. method that sorts items alphabetically
.sort
arguments
.methods
library
34. array method that transforms the contents of an array according to a specified set of rules
hash
%q
ARGV
.map
35. runs a proc that has been stored to a variable
!
call
.gsub
strip
36. string method that determines if a string ends with a defined string
not and or
hash
end_with?
Z
37. a whole number
.chop
integer
flow control
method
38. (regular expression)any space or tab or newline or whitespace
.downcase
.between?
s
<<
39. a string method that splits a string into an array
.index
.pop
.split
==
40. an array method that returns TRUE or FALSE if the array contains specified item
>=
struct
%arg
.include?()
41. a string method that reverses capitalization
library
interpolation
@
.swapcase
42. pushes a new item onto the end of an array.
<<
!=
#{}
.next
43. a regular method that is the anchor for the end of a line
A
<<
$
library
44. a string method that scans object for arguments - uses regular expressions.
.sort
if?then:else
arguments
.scan()
45. a special array made from arguments that were added to the command line at start up.
==
^
.chop
ARGV
46. a string method that substitutes ALL occurrences of a string with another.
.capitalize
break if
.gsub
not and or
47. defines array of multiple elements seperated by a space
.capitalize
%w{}
#{}
constant
48. (regular expression)anchor for the start of a string
A
@
|x|
kernel
49. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.between?
constant
!=
!
50. method that tells if an argument is within the limits of two numbers
.even?
!
.between?
flow control
Sorry!:) No result found.
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