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)anchor for the start of a string
.downcase
A
.pop
array
2. allows for classes to relate to each other in a hierarchy
class
S
strip
inheritance
3. an array method that returns TRUE or FALSE if the array contains specified item
!=
library
#{}
.include?()
4. less than or equal to (comparison operator)
.sub
<=
.chop
%arg
5. a string method that makes string all caps.
.pop
.between?
call
.upcase
6. a collection of objects with a defined order
method
.between?
array
.match
7. method that tells an argument's place value within an array
%w{}
operators
.index
$
8. passes value into block of code and assigns it the label of "x"
strip
.select
$
|x|
9. a set of code within a class or object
w
method
.pop
.next
10. a string method that capitalizes first character
^
range
.scan()
.capitalize
11. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
class
kernel
constant
library
12. pushes a new item onto the end of an array.
S
object
<<
w
13. sets a single character text delimiter for multi-line strings
hash
.map
.capitalize
%q
14. a whole number
integer
interpolation
.chop
.scan()
15. a special array made from arguments that were added to the command line at start up.
.next
ARGV
.include?()
string
16. a single instance of a class.
constant
object
w
d
17. method that tells if an argument is within the limits of two numbers
flow control
@@
.between?
#{}
18. a string method that changes last character to next alphabetical character
object
.map
.next
%q
19. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
d
?x
<
kernel
20. a definition of a concept in an object oriented language.
class
yield
$
kernel
21. string method that determines if a string ends with a defined string
Z
end_with?
regular expressions
class
22. greater than or equal to (comparison operator)
>=
<=>
&&
A
23. the representation of data from a start to end point
range
break if
%q
start_with?
24. runs a proc that has been stored to a variable
call
Z
!=
object
25. returns ASCII value of x
?x
!=
S
^
26. (regular expression)anchor for the start of a string
strip
.each
.pop
A
27. passes value into block of code and assigns it the label of "x"
^
|x|
%w{}
.map
28. data passed to methods in parenthesis after a method's name.
iterator
parameters
<=>
@@
29. (regular expression)any nonletter or nondigit or nonunderscore.
.methods
W
local variable
$
30. Boolean AND operator
&&
class
class
flow control
31. a way to describe patterns in text
regular expressions
.between?
D
S
32. array method that removes last item from an array
.index
.pop
array
arguments
33. a special class that holds attributes and data but no methods.
.pop
struct
yield
parameters
34. a string method that scans object for arguments - uses regular expressions.
.scan()
.gsub
$:.
||
35. method that tells if an argument is within the limits of two numbers
ARGV
float
call
.between?
36. a string method that reverses capitalization
|x|
.gsub
.split
.swapcase
37. array method that removes last item from an array
Z
=>
arguments
.pop
38. a string method that uncapitalizes first character
W
if?then:else
.downcase
<
39. Boolean OR operator
iterator
^
||
arguments
40. array method that selects particular items from an array
object
<<
.select
^
41. a module of classes and or functions
library
string
!=
array
42. a string method that removes last character
.sub
%w{}
!
.chop
43. string method that determines if a string starts with a defined string
?x
not and or
W
start_with?
44. a number with a decimal point such as 1.0 or 3.1
.each
?x
.sort
float
45. array method that transforms the contents of an array according to a specified set of rules
%w{}
!=
.methods
.map
46. variable that can be used only where it is defined within an application
inheritance
local variable
.capitalize
hash
47. (regular expression)any digit
arguments
W
d
?x
48. the remainder operator
constant
hash
%
.chop
49. defines a class variable. Can be used anywhere within a class
@@
.each
^
!=
50. comparison operator for "not equal to"
!=
!
<<
code blocks
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