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 space or tab or newline or whitespace
W
.pop
s
w
2. string method that determines if a string starts with a defined string
code blocks
not and or
.sub
start_with?
3. mixing expressions into strings
D
.pop
interpolation
!=
4. (regular expression)any letter or digit or underscore
d
w
%q
constant
5. defines array of multiple elements seperated by a space
strip
.select
%w{}
.capitalize
6. a string method that capitalizes first character
$
.include?()
%w{}
.capitalize
7. method to determine if an object is an even number
.upcase
.even?
?x
if?then:else
8. (regular expression)any digit
#{}
class
$
d
9. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
.methods
.swapcase
!
10. a number with a decimal point such as 1.0 or 3.1
.even?
float
flow control
.index
11. (regular expression)any non-whitespace character
S
||
.sort
end_with?
12. a string method that uncapitalizes first character
S
hash
.downcase
.sub
13. a whole number
.sub
constant
integer
.gsub
14. method that sorts items alphabetically
<=
A
.sort
S
15. (regular expression)any letter or digit or underscore
.gsub
constant
w
S
16. a placeholder for a single object that may be a number or string or list or instance of a defined class
variable
W
float
!=
17. a collection of characters such as "Hello world!"
start_with?
.match
string
d
18. method that tells an argument's place value within an array
.chop
%
.index
constant
19. using classes and objects to make real-world concepts in programming.
.capitalize
.match
object orientation
!
20. (regular expression)any nondigit
.index
@
D
%arg
21. string method that determines if a string ends with a defined string
.pop
end_with?
.gsub
.swapcase
22. a regular method that is the anchor for the beggining of a line
#{}
^
object
.split
23. array method that selects particular items from an array
<
interpolation
.select
D
24. (regular expression)anchor for the start of a string
!=
A
&&
?x
25. method to determine if an object is an even number
.even?
@@
%
$
26. 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
%
.capitalize
.next
.match
27. comparison operator for "equal to"
start_with?
variable
class
==
28. defines a class variable. Can be used anywhere within a class
@@
.gsub
.pop
.next
29. a special class that holds attributes and data but no methods.
struct
arguments
inheritance
%
30. a string method that makes string all caps.
.upcase
.between?
.sub
.chop
31. an array method that
.select
%
<<
.each
32. assigns a key to a hash value
flow control
%w{}
.include?()
=>
33. a string method that substitutes ALL occurrences of a string with another.
operators
.gsub
array
!
34. (regular expression)anchor for the start of a string
A
!=
.swapcase
if?then:else
35. Boolean AND operator
&&
integer
strip
Z
36. symbol for a global variable which can be called from anywhere in an application.
$
d
array
S
37. class inheritance operator.
|x|
not and or
<
%w{}
38. a string method that scans object for arguments - uses regular expressions.
.scan()
flow control
library
break if
39. greater than or equal to (comparison operator)
S
class
>=
break if
40. a collection of objects with a defined order
integer
.between?
array
s
41. data passed to methods in parenthesis after a method's name.
parameters
.upcase
S
arguments
42. a string method that reverses capitalization
!
.each
.swapcase
<=
43. (regular expression)any nonletter or nondigit or nonunderscore.
<=
operators
$
W
44. tells you all methods that an object may invoke.
.scan()
.methods
%q
variable
45. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
.capitalize
end_with?
@
46. 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.
A
code blocks
.chop
end_with?
47. a string method that scans object for arguments - uses regular expressions.
W
$
%q
.scan()
48. array method that removes last item from an array
||
.index
.even?
.pop
49. (regular expression)any nonletter or nondigit or nonunderscore.
<=>
.swapcase
.index
W
50. the representation of data from a start to end point
.between?
range
<<
<=>
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