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. array assignment oprator
.gsub
<<
.pop
>=
2. class inheritance operator.
class
<<
D
<
3. Boolean AND operator
call
constant
not and or
&&
4. a string method that substitutes THE FIRST occurrence of a string within a string
.sub
arguments
D
string
5. a number with a decimal point such as 1.0 or 3.1
float
.map
.pop
s
6. (regular expression)any nondigit
inheritance
D
.chop
.map
7. a definition of a concept in an object oriented language.
<
.methods
<=>
class
8. defines array of multiple elements seperated by a space
ARGV
.map
.swapcase
%w{}
9. a string method that removes last character
.chop
not and or
.between?
&&
10. sets a text delimiter
%arg
&&
#{}
call
11. Boolean not and or (lower preference)
not and or
strip
S
#{}
12. a regular method that is the anchor for the beggining of a line
.downcase
w
W
^
13. (regular expression)any space or tab or newline or whitespace
.index
.sub
.upcase
s
14. conditionally stops a loop
.each
break if
W
d
15. the representation of data from a start to end point
&&
string
range
s
16. string method that "cleans" extra spaces from strings
strip
A
w
.pop
17. array method that removes last item from an array
flow control
.pop
.between?
array
18. a string method that uncapitalizes first character
&&
A
.downcase
?x
19. the remainder operator
==
local variable
||
%
20. a single instance of a class.
!=
|x|
object
.next
21. the ternary operator if?then:else
.sub
>=
if?then:else
D
22. an array method that returns TRUE or FALSE if the array contains specified item
S
.include?()
A
<=>
23. a string method that scans object for arguments - uses regular expressions.
range
.gsub
flow control
.scan()
24. an array method that returns TRUE or FALSE if the array contains specified item
#{}
call
.include?()
iterator
25. 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
d
||
flow control
26. allows for classes to relate to each other in a hierarchy
S
inheritance
$
.even?
27. a string method that scans object for arguments - uses regular expressions.
@
%
.scan()
==
28. a variable that lists the directories where Ruby will look for libraries
$:.
d
.each
D
29. passes value into block of code and assigns it the label of "x"
|x|
.even?
ARGV
.capitalize
30. tells ruby a value to pass while iterating a block of code
A
constant
yield
kernel
31. method to determine if an object is an even number
.even?
||
.index
^
32. returns ASCII value of x
.methods
!=
?x
D
33. method that tells an argument's place value within an array
start_with?
A
.sub
.index
34. method that tells if an argument is within the limits of two numbers
<=>
.between?
strip
.next
35. array method that removes last item from an array
.index
.pop
array
w
36. (regular expression)any letter or digit or underscore
range
operators
A
w
37. Boolean OR operator
D
|x|
&&
||
38. assigns a key to a hash value
yield
.index
.match
=>
39. a string method that makes string all caps.
integer
break if
.upcase
object
40. (regular expression)any nondigit
method
D
<
|x|
41. defines a class variable. Can be used anywhere within a class
strip
.scan()
regular expressions
@@
42. a string method that substitutes ALL occurrences of a string with another.
strip
.gsub
.sub
.next
43. a way to describe patterns in text
.chop
regular expressions
flow control
.swapcase
44. tells you all methods that an object may invoke.
.methods
.capitalize
S
class
45. a string method that removes last character
.chop
s
<<
library
46. (regular expression)anchor for the start of a string
^
A
Z
.between?
47. greater than or equal to (comparison operator)
inheritance
.upcase
.pop
>=
48. passes value into block of code and assigns it the label of "x"
.upcase
%w{}
.between?
|x|
49. (regular expression)any digit
d
variable
Z
start_with?
50. a string method that capitalizes first character
.downcase
.between?
.capitalize
.between?
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