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. a variable that lists the directories where Ruby will look for libraries
<<
$:.
>=
method
2. mixing expressions into strings
%q
&&
interpolation
call
3. (regular expression)anchor for the start of a string
A
d
!
.gsub
4. tells ruby a value to pass while iterating a block of code
$
.chop
yield
#{}
5. array method that removes last item from an array
^
.pop
object
D
6. array method that transforms the contents of an array according to a specified set of rules
%q
.even?
W
.map
7. (regular expression)any nonletter or nondigit or nonunderscore.
.next
W
.next
.sub
8. variable that can be used only where it is defined within an application
.sub
local variable
S
interpolation
9. tells you all methods that an object may invoke.
<
D
call
.methods
10. (regular expression)any digit
d
arguments
?x
w
11. a string method that capitalizes first character
@
.capitalize
ARGV
.pop
12. a string method that changes last character to next alphabetical character
.next
w
|x|
break if
13. a string method that removes last character
operators
%
.chop
local variable
14. the process of deciding which sections of code to execute based on conditions
.swapcase
|x|
.each
flow control
15. string method that "cleans" extra spaces from strings
Z
strip
.sort
!
16. (regular expression)any letter or digit or underscore
w
.between?
#{}
>=
17. interpolation operator
.chop
.downcase
.scan()
#{}
18. a special class that holds attributes and data but no methods.
struct
.chop
D
hash
19. the ternary operator if?then:else
w
kernel
if?then:else
!=
20. (regular expression)any letter or digit or underscore
w
.next
.sub
strip
21. 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
.match
operators
iterator
A
22. a string method that makes string all caps.
?x
.swapcase
<<
.upcase
23. symbol for a global variable which can be called from anywhere in an application.
.upcase
<
local variable
$
24. greater than or equal to (comparison operator)
.each
>=
yield
.methods
25. allows for classes to relate to each other in a hierarchy
variable
inheritance
?x
.sub
26. (regular expression)any space or tab or newline or whitespace
constant
||
s
.methods
27. a string method that uncapitalizes first character
.include?()
.downcase
not and or
.chop
28. class inheritance operator.
!=
.between?
<
range
29. a module of classes and or functions
.pop
W
library
^
30. a string method that reverses capitalization
>=
.scan()
.swapcase
!=
31. (regular expression)any space or tab or newline or whitespace
|x|
d
s
>=
32. a regular method that is the anchor for the end of a line
strip
<<
$
regular expressions
33. an array method that
.each
.index
.scan()
inheritance
34. conditionally stops a loop
.gsub
.chop
break if
d
35. an array method that returns TRUE or FALSE if the array contains specified item
.next
.include?()
class
S
36. a string method that removes last character
.chop
<=>
ARGV
parameters
37. defines a class variable. Can be used anywhere within a class
?x
hash
S
@@
38. string method that determines if a string starts with a defined string
start_with?
<<
==
.each
39. operator for "Boolean not"
!
|x|
=>
$
40. less than or equal to (comparison operator)
.capitalize
W
$
<=
41. a number with a decimal point such as 1.0 or 3.1
float
%w{}
S
.gsub
42. a string method that splits a string into an array
start_with?
<<
.split
%
43. assigns a key to a hash value
interpolation
=>
s
constant
44. sets a text delimiter
<=
%arg
||
?x
45. a placeholder for a single object that may be a number or string or list or instance of a defined class
local variable
.even?
variable
.sub
46. array method that removes last item from an array
not and or
method
.pop
#{}
47. (regular expression)any nondigit
D
integer
.chop
w
48. returns ASCII value of x
class
hash
.between?
?x
49. method that tells if an argument is within the limits of two numbers
.between?
.capitalize
.select
.methods
50. Boolean OR operator
S
||
#{}
call
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