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 non-whitespace character
$
.sub
S
break if
2. a regular method that is the anchor for the beggining of a line
?x
.even?
^
S
3. array assignment oprator
class
.upcase
&&
<<
4. a definition of a concept in an object oriented language.
.sub
class
!
.chop
5. passes value into block of code and assigns it the label of "x"
w
<=
|x|
%q
6. (regular expression)any letter or digit or underscore
!=
|x|
w
kernel
7. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
hash
.even?
kernel
!
8. (regular expression)any nondigit
D
.between?
.scan()
break if
9. (regular expression)any non-whitespace character
S
!
end_with?
class
10. (regular expression)anchor for the start of a string
>=
A
.capitalize
parameters
11. class inheritance operator.
code blocks
.pop
.map
<
12. Boolean AND operator
.index
interpolation
^
&&
13. method that tells if an argument is within the limits of two numbers
A
.between?
variable
float
14. the remainder operator
w
S
%
ARGV
15. comparison operator for "not equal to"
.upcase
!=
|x|
%w{}
16. method to determine if an object is an even number
.even?
start_with?
inheritance
end_with?
17. a string method that removes last character
library
.chop
||
interpolation
18. less than or equal to (comparison operator)
<=
not and or
D
.select
19. a string method that uncapitalizes first character
local variable
&&
S
.downcase
20. allows for classes to relate to each other in a hierarchy
inheritance
w
?x
>=
21. tells ruby a value to pass while iterating a block of code
Z
end_with?
yield
.capitalize
22. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.map
local variable
class
<=>
23. (regular expression)any space or tab or newline or whitespace
iterator
D
s
inheritance
24. a way to describe patterns in text
D
regular expressions
==
parameters
25. interpolation operator
not and or
constant
.split
#{}
26. defines array of multiple elements seperated by a space
not and or
@
W
%w{}
27. (regular expression)any space or tab or newline or whitespace
kernel
s
.include?()
library
28. methods that step through lists element by element (like each or upto or times etc)
iterator
.scan()
D
D
29. variable that can be used only where it is defined within an application
float
local variable
.even?
.index
30. array method that transforms the contents of an array according to a specified set of rules
^
<<
.map
!=
31. an array method that returns TRUE or FALSE if the array contains specified item
.match
integer
d
.include?()
32. array method that removes last item from an array
.pop
w
.even?
.capitalize
33. an array method that
<<
local variable
@@
.each
34. an array method that
<=>
.each
.chop
code blocks
35. returns ASCII value of x
?x
inheritance
s
A
36. method that tells an argument's place value within an array
.index
library
<=
|x|
37. a string method that capitalizes first character
$:.
&&
%w{}
.capitalize
38. defines an instance variable which only exists within the object it was created in.
.downcase
@
#{}
end_with?
39. the ternary operator if?then:else
S
if?then:else
S
.select
40. method to determine if an object is an even number
.sub
.split
.sub
.even?
41. a special array made from arguments that were added to the command line at start up.
hash
ARGV
method
.capitalize
42. a string method that substitutes THE FIRST occurrence of a string within a string
.include?()
.chop
!=
.sub
43. defines a class variable. Can be used anywhere within a class
hash
@@
flow control
.select
44. comparison operator for "equal to"
S
==
.capitalize
library
45. method that sorts items alphabetically
.sort
$
constant
.even?
46. sets a text delimiter
%arg
<<
<<
method
47. passes value into block of code and assigns it the label of "x"
not and or
|x|
?x
end_with?
48. returns ASCII value of x
?x
<<
S
kernel
49. tells you all methods that an object may invoke.
flow control
.methods
code blocks
.scan()
50. runs a proc that has been stored to a variable
call
|x|
ARGV
@
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