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. used in an expression to manipulate objects
operators
Z
!=
$
2. assigns a key to a hash value
.chop
.gsub
=>
.each
3. a module of classes and or functions
.next
class
library
parameters
4. the ternary operator if?then:else
#{}
.pop
.next
if?then:else
5. runs a proc that has been stored to a variable
yield
parameters
<
call
6. string method that determines if a string starts with a defined string
integer
start_with?
|x|
.index
7. passes value into block of code and assigns it the label of "x"
class
.between?
|x|
object orientation
8. a special class that holds attributes and data but no methods.
struct
.include?()
parameters
.downcase
9. a way to describe patterns in text
regular expressions
.chop
$
flow control
10. comparison operator for "not equal to"
.include?()
.sub
!=
string
11. method to determine if an object is an even number
.match
.even?
S
=>
12. tells you all methods that an object may invoke.
.between?
@
constant
.methods
13. data passed to methods in parenthesis after a method's name.
W
.map
library
parameters
14. string method that determines if a string ends with a defined string
local variable
end_with?
integer
s
15. the remainder operator
object orientation
w
@
%
16. mixing expressions into strings
class
.next
interpolation
.gsub
17. variable that can be used only where it is defined within an application
local variable
d
regular expressions
string
18. (regular expression)anchor for the end of a string
.sub
Z
.match
break if
19. (regular expression)any nonletter or nondigit or nonunderscore.
.next
W
s
s
20. passes value into block of code and assigns it the label of "x"
.gsub
start_with?
|x|
#{}
21. a string method that makes string all caps.
.upcase
code blocks
.chop
.include?()
22. comparison operator for "equal to"
constant
kernel
==
integer
23. a string method that changes last character to next alphabetical character
interpolation
regular expressions
.next
class
24. tells ruby a value to pass while iterating a block of code
yield
if?then:else
iterator
%q
25. (regular expression)any letter or digit or underscore
<=>
constant
parameters
w
26. a definition of a concept in an object oriented language.
variable
arguments
class
%
27. a collection of objects or values with associated keys
class
local variable
hash
%w{}
28. 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.
!
<=
code blocks
||
29. tells you all methods that an object may invoke.
regular expressions
.methods
!=
.select
30. a collection of objects with a defined order
local variable
.scan()
array
^
31. (regular expression)any letter or digit or underscore
w
.select
S
^
32. a variable that lists the directories where Ruby will look for libraries
$:.
>=
.split
method
33. a string method that substituition. Requires 2 arguments.
.sub
$
start_with?
.index
34. a string method that uncapitalizes first character
.split
constant
.downcase
.even?
35. (regular expression)any nondigit
D
.include?()
#{}
.chop
36. an array method that returns TRUE or FALSE if the array contains specified item
call
object orientation
W
.include?()
37. (regular expression)anchor for the start of a string
.gsub
A
d
||
38. pushes a new item onto the end of an array.
.sub
#{}
D
<<
39. method that tells an argument's place value within an array
d
.index
class
.gsub
40. (regular expression)anchor for the end of a string
S
Z
.pop
not and or
41. a regular method that is the anchor for the beggining of a line
.map
^
class
&&
42. array method that removes last item from an array
.pop
.index
@@
.each
43. the process of deciding which sections of code to execute based on conditions
=>
.pop
flow control
%arg
44. a string method that substitutes ALL occurrences of a string with another.
.methods
.gsub
#{}
call
45. array method that removes last item from an array
^
.pop
&&
>=
46. a string method that substitutes ALL occurrences of a string with another.
^
.swapcase
constant
.gsub
47. a set of code within a class or object
method
.scan()
hash
interpolation
48. defines array of multiple elements seperated by a space
.select
<=
integer
%w{}
49. array method that transforms the contents of an array according to a specified set of rules
.map
object orientation
w
.capitalize
50. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.even?
flow control
<=>
.capitalize
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