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. method that tells an argument's place value within an array
.index
method
==
S
2. interpolation operator
call
<<
<
#{}
3. symbol for a global variable which can be called from anywhere in an application.
.chop
<
$
>=
4. method that tells an argument's place value within an array
A
.gsub
$
.index
5. tells ruby a value to pass while iterating a block of code
%q
=>
struct
yield
6. method to determine if an object is an even number
<<
W
%arg
.even?
7. allows for classes to relate to each other in a hierarchy
inheritance
not and or
<
<<
8. array method that removes last item from an array
#{}
.next
kernel
.pop
9. returns ASCII value of x
.sub
$:.
w
?x
10. passes value into block of code and assigns it the label of "x"
?x
.index
operators
|x|
11. a string method that scans object for arguments - uses regular expressions.
.scan()
call
^
|x|
12. array method that transforms the contents of an array according to a specified set of rules
<=
Z
$
.map
13. operator for "Boolean not"
.include?()
!
d
flow control
14. string method that determines if a string starts with a defined string
break if
start_with?
parameters
S
15. (regular expression)any nonletter or nondigit or nonunderscore.
A
W
.downcase
constant
16. (regular expression)anchor for the end of a string
.select
.downcase
.include?()
Z
17. a special array made from arguments that were added to the command line at start up.
array
W
.even?
ARGV
18. a string method that makes string all caps.
^
.capitalize
#{}
.upcase
19. defines a class variable. Can be used anywhere within a class
.sub
.next
@@
$:.
20. array method that selects particular items from an array
%arg
break if
.upcase
.select
21. assigns a key to a hash value
.index
=>
interpolation
!=
22. a collection of objects or values with associated keys
hash
%w{}
.split
object orientation
23. a module of classes and or functions
.even?
library
#{}
w
24. a placeholder for a single object that may be a number or string or list or instance of a defined class
method
variable
.index
.scan()
25. (regular expression)any letter or digit or underscore
array
w
s
@@
26. a fixed value that begins with a capital letter such as Pi.
kernel
.next
constant
.between?
27. a collection of objects with a defined order
array
!=
W
if?then:else
28. comparison operator for "not equal to"
hash
!=
operators
ARGV
29. conditionally stops a loop
break if
#{}
.map
variable
30. string method that "cleans" extra spaces from strings
.sub
strip
break if
.methods
31. the remainder operator
object orientation
inheritance
%
.sub
32. a set of code within a class or object
@
#{}
method
iterator
33. (regular expression)anchor for the start of a string
|x|
!
if?then:else
A
34. a string method that scans object for arguments - uses regular expressions.
.scan()
.between?
.downcase
inheritance
35. (regular expression)any non-whitespace character
S
.swapcase
@@
#{}
36. a regular method that is the anchor for the end of a line
<<
not and or
$
.index
37. comparison operator for "equal to"
==
object orientation
parameters
method
38. runs a proc that has been stored to a variable
<=>
call
not and or
class
39. mixing expressions into strings
library
float
interpolation
.upcase
40. a string method (with /REGEX/ and starting_point separated by comma) that outputs the first string matching the defined regular expression from an optionally defined starting point
.methods
call
.sub
.match
41. a string method that substituition. Requires 2 arguments.
||
@@
.sub
.each
42. a definition of a concept in an object oriented language.
array
class
.gsub
parameters
43. (regular expression)any nondigit
D
.capitalize
.index
.sub
44. tells you all methods that an object may invoke.
.methods
strip
!
#{}
45. (regular expression)anchor for the start of a string
.downcase
arguments
ARGV
A
46. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
class
.sub
library
47. sets a text delimiter
variable
%arg
.downcase
.methods
48. used in an expression to manipulate objects
string
%q
operators
.include?()
49. the representation of data from a start to end point
%w{}
range
.next
.index
50. a string method that changes last character to next alphabetical character
S
end_with?
.pop
.next
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