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. method to determine if an object is an even number
.split
.even?
S
call
2. array method that transforms the contents of an array according to a specified set of rules
D
array
.map
.sub
3. class inheritance operator.
.capitalize
<
|x|
$
4. defines an instance variable which only exists within the object it was created in.
@
integer
regular expressions
not and or
5. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
s
S
constant
if?then:else
6. defines array of multiple elements seperated by a space
.downcase
arguments
%w{}
.index
7. assigns a key to a hash value
=>
d
kernel
!=
8. passes value into block of code and assigns it the label of "x"
operators
|x|
D
?x
9. method that tells an argument's place value within an array
.index
W
if?then:else
integer
10. (regular expression)anchor for the end of a string
Z
if?then:else
object orientation
.downcase
11. returns ASCII value of x
arguments
?x
.index
.downcase
12. (regular expression)any letter or digit or underscore
string
?x
class
w
13. (regular expression)any space or tab or newline or whitespace
s
.between?
@@
break if
14. an array method that returns TRUE or FALSE if the array contains specified item
w
.include?()
s
constant
15. pushes a new item onto the end of an array.
.gsub
regular expressions
<<
kernel
16. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
<=>
object orientation
method
@
17. string method that determines if a string ends with a defined string
D
d
end_with?
class
18. tells ruby a value to pass while iterating a block of code
w
yield
.upcase
.match
19. (regular expression)any non-whitespace character
.downcase
S
?x
&&
20. a collection of characters such as "Hello world!"
.scan()
string
hash
struct
21. a string method that uncapitalizes first character
.downcase
d
.chop
<
22. operator for "Boolean not"
%q
!
S
$:.
23. 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
struct
A
!
.match
24. using classes and objects to make real-world concepts in programming.
.index
s
!
object orientation
25. the remainder operator
W
<<
%
A
26. a string method that makes string all caps.
=>
.next
<=>
.upcase
27. an array method that
%arg
code blocks
.select
.each
28. string method that "cleans" extra spaces from strings
.downcase
!=
strip
S
29. (regular expression)any nondigit
string
.next
.between?
D
30. a string method that removes last character
string
.chop
struct
.downcase
31. allows for classes to relate to each other in a hierarchy
.even?
.between?
inheritance
@@
32. a variable that lists the directories where Ruby will look for libraries
.gsub
constant
S
$:.
33. a string method that reverses capitalization
^
#{}
.swapcase
.methods
34. method that sorts items alphabetically
.select
.sort
w
local variable
35. data passed to methods in parenthesis after a method's name.
.each
object orientation
parameters
A
36. comparison operator for "not equal to"
.even?
.methods
.scan()
!=
37. (regular expression)any letter or digit or underscore
#{}
!=
@
w
38. an array method that
break if
regular expressions
Z
.each
39. the ternary operator if?then:else
=>
&&
if?then:else
!
40. (regular expression)anchor for the start of a string
%arg
@
A
!=
41. a string method that splits a string into an array
.split
.upcase
.capitalize
.downcase
42. method that tells if an argument is within the limits of two numbers
.between?
.sort
.downcase
W
43. a string method that capitalizes first character
.capitalize
#{}
$
struct
44. a whole number
integer
W
&&
w
45. a string method that capitalizes first character
?x
kernel
.capitalize
.scan()
46. a string method that substitutes ALL occurrences of a string with another.
inheritance
interpolation
.gsub
flow control
47. a regular method that is the anchor for the end of a line
iterator
$
%
%w{}
48. array method that selects particular items from an array
.swapcase
.select
Z
object
49. Boolean AND operator
.pop
&&
break if
kernel
50. array method that removes last item from an array
!=
.swapcase
.pop
.map
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