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. comparison operator for "not equal to"
|x|
start_with?
!=
float
2. a string method that splits a string into an array
W
interpolation
.split
<
3. a fixed value that begins with a capital letter such as Pi.
.downcase
.even?
.gsub
constant
4. used in an expression to manipulate objects
operators
S
Z
not and or
5. data passed to methods in parenthesis after a method's name.
<
.next
.swapcase
parameters
6. method to determine if an object is an even number
?x
break if
.upcase
.even?
7. mixing expressions into strings
.next
.split
interpolation
start_with?
8. operator for "Boolean not"
.sub
.pop
.methods
!
9. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
.sub
!
constant
method
10. a string method that capitalizes first character
operators
.include?()
=>
.capitalize
11. comparison operator for "equal to"
==
.gsub
>=
.map
12. an array method that returns TRUE or FALSE if the array contains specified item
<
flow control
.include?()
class
13. greater than or equal to (comparison operator)
class
>=
.chop
d
14. (regular expression)anchor for the start of a string
A
d
D
.sub
15. string method that determines if a string ends with a defined string
#{}
.methods
$:.
end_with?
16. a string method that substitutes ALL occurrences of a string with another.
.gsub
inheritance
#{}
hash
17. (regular expression)anchor for the end of a string
$:.
<<
Z
.between?
18. allows for classes to relate to each other in a hierarchy
!
inheritance
.include?()
.sort
19. 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
.split
w
.match
.swapcase
20. a collection of characters such as "Hello world!"
string
.select
||
#{}
21. Boolean not and or (lower preference)
s
w
.map
not and or
22. class inheritance operator.
.even?
A
<
constant
23. the representation of data from a start to end point
ARGV
strip
end_with?
range
24. a string method that changes last character to next alphabetical character
.match
@
W
.next
25. (regular expression)any digit
d
.capitalize
|x|
==
26. passes value into block of code and assigns it the label of "x"
<
A
w
|x|
27. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
hash
struct
kernel
start_with?
28. an array method that returns TRUE or FALSE if the array contains specified item
.next
code blocks
.include?()
float
29. Boolean OR operator
||
?x
.scan()
constant
30. (regular expression)any space or tab or newline or whitespace
.swapcase
.scan()
!
s
31. a string method that scans object for arguments - uses regular expressions.
.scan()
strip
hash
.between?
32. array method that transforms the contents of an array according to a specified set of rules
.even?
<
s
.map
33. a string method that uncapitalizes first character
.next
.index
Z
.downcase
34. (regular expression)any nonletter or nondigit or nonunderscore.
A
W
%w{}
.map
35. array method that removes last item from an array
.chop
!=
.pop
strip
36. (regular expression)any digit
W
if?then:else
>=
d
37. (regular expression)any letter or digit or underscore
arguments
?x
w
Z
38. interpolation operator
#{}
.include?()
|x|
!=
39. sets a text delimiter
#{}
%arg
range
w
40. an array method that
.even?
S
.each
range
41. sets a single character text delimiter for multi-line strings
>=
yield
%q
start_with?
42. a number with a decimal point such as 1.0 or 3.1
float
ARGV
.match
end_with?
43. a definition of a concept in an object oriented language.
$
class
string
.sub
44. a string method that scans object for arguments - uses regular expressions.
string
.scan()
!=
struct
45. 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.
.index
object orientation
code blocks
constant
46. method that sorts items alphabetically
.sort
regular expressions
.even?
code blocks
47. using classes and objects to make real-world concepts in programming.
code blocks
object orientation
w
parameters
48. (regular expression)anchor for the end of a string
Z
@@
.capitalize
iterator
49. string method that "cleans" extra spaces from strings
strip
#{}
$
.next
50. interpolation operator
.scan()
.map
#{}
A
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