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. sets a single character text delimiter for multi-line strings
.methods
==
%q
.pop
2. string method that "cleans" extra spaces from strings
strip
.map
W
call
3. the representation of data from a start to end point
constant
object orientation
w
range
4. a single instance of a class.
object
.map
#{}
#{}
5. (regular expression)anchor for the start of a string
?x
.next
.match
A
6. a string method that substitutes ALL occurrences of a string with another.
A
s
.gsub
.index
7. a collection of characters such as "Hello world!"
@@
A
string
.swapcase
8. array assignment oprator
%arg
.capitalize
A
<<
9. a whole number
.index
=>
integer
W
10. method to determine if an object is an even number
iterator
variable
@@
.even?
11. a string method that changes last character to next alphabetical character
.index
|x|
.next
.even?
12. less than or equal to (comparison operator)
.downcase
<=
.sub
library
13. (regular expression)anchor for the start of a string
A
s
.between?
<
14. data passed to methods in parenthesis after a method's name.
code blocks
.swapcase
arguments
break if
15. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
kernel
||
&&
object orientation
16. a fixed value that begins with a capital letter such as Pi.
$
constant
w
.scan()
17. (regular expression)anchor for the end of a string
Z
W
.index
.even?
18. an array method that
.methods
.each
||
range
19. a string method that capitalizes first character
.capitalize
float
integer
.even?
20. a string method that makes string all caps.
ARGV
w
.upcase
string
21. passes value into block of code and assigns it the label of "x"
|x|
&&
variable
W
22. a string method that removes last character
.pop
regular expressions
.chop
.next
23. (regular expression)any space or tab or newline or whitespace
<
?x
s
ARGV
24. (regular expression)any nonletter or nondigit or nonunderscore.
W
!
!
<<
25. Boolean not and or (lower preference)
.map
.capitalize
iterator
not and or
26. pushes a new item onto the end of an array.
w
!
<<
D
27. tells you all methods that an object may invoke.
$:.
strip
?x
.methods
28. array method that transforms the contents of an array according to a specified set of rules
.map
?x
!
.scan()
29. a string method that reverses capitalization
.downcase
%
.sub
.swapcase
30. defines array of multiple elements seperated by a space
S
.sub
.sort
%w{}
31. interpolation operator
.scan()
D
|x|
#{}
32. methods that step through lists element by element (like each or upto or times etc)
iterator
yield
S
%arg
33. class inheritance operator.
<
.include?()
range
^
34. using classes and objects to make real-world concepts in programming.
object orientation
code blocks
strip
A
35. a regular method that is the anchor for the beggining of a line
object
^
.gsub
.upcase
36. 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.
.scan()
local variable
%q
code blocks
37. the ternary operator if?then:else
.between?
|x|
Z
if?then:else
38. (regular expression)anchor for the end of a string
Z
.map
$
==
39. a regular method that is the anchor for the beggining of a line
$
.capitalize
<
^
40. a collection of objects or values with associated keys
hash
start_with?
?x
<<
41. a string method that scans object for arguments - uses regular expressions.
.index
.swapcase
.select
.scan()
42. (regular expression)any space or tab or newline or whitespace
range
.even?
s
class
43. a string method that substitutes THE FIRST occurrence of a string within a string
Z
yield
.sub
!
44. data passed to methods in parenthesis after a method's name.
parameters
.map
library
?x
45. a string method that capitalizes first character
.downcase
method
.capitalize
!=
46. method that tells if an argument is within the limits of two numbers
.downcase
A
.between?
S
47. 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
class
.even?
%w{}
.match
48. symbol for a global variable which can be called from anywhere in an application.
.sub
W
iterator
$
49. passes value into block of code and assigns it the label of "x"
==
.sub
|x|
<=>
50. method that tells an argument's place value within an array
.next
constant
.index
.sub
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