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 letter or digit or underscore
flow control
!=
w
.select
2. (regular expression)any nondigit
D
operators
.sub
.even?
3. string method that determines if a string ends with a defined string
D
#{}
end_with?
.capitalize
4. (regular expression)any nonletter or nondigit or nonunderscore.
.sub
.scan()
W
variable
5. (regular expression)any non-whitespace character
@
&&
S
w
6. tells ruby a value to pass while iterating a block of code
%
method
.gsub
yield
7. string method that determines if a string starts with a defined string
iterator
<=
start_with?
.scan()
8. (regular expression)any letter or digit or underscore
.next
<<
w
string
9. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
not and or
.map
arguments
10. (regular expression)any non-whitespace character
S
.sub
.map
.even?
11. (regular expression)any space or tab or newline or whitespace
w
library
<=
s
12. comparison operator for "equal to"
not and or
<<
iterator
==
13. method that tells if an argument is within the limits of two numbers
.even?
.between?
$
d
14. passes value into block of code and assigns it the label of "x"
.methods
.sort
constant
|x|
15. a variable that lists the directories where Ruby will look for libraries
inheritance
.next
$:.
%q
16. a regular method that is the anchor for the end of a line
.even?
$
!
if?then:else
17. Boolean not and or (lower preference)
not and or
.capitalize
string
constant
18. class inheritance operator.
S
constant
<
==
19. a string method that changes last character to next alphabetical character
!
.next
variable
S
20. (regular expression)any nondigit
.scan()
kernel
D
.chop
21. operator for "Boolean not"
.chop
S
parameters
!
22. pushes a new item onto the end of an array.
<<
.gsub
Z
interpolation
23. method to determine if an object is an even number
#{}
arguments
<
.even?
24. assigns a key to a hash value
.chop
kernel
array
=>
25. a single instance of a class.
?x
local variable
object
array
26. a string method that uncapitalizes first character
.sub
.downcase
if?then:else
.index
27. (regular expression)anchor for the end of a string
&&
object
class
Z
28. a string method that substituition. Requires 2 arguments.
.sub
start_with?
d
not and or
29. the process of deciding which sections of code to execute based on conditions
@@
flow control
variable
|x|
30. a number with a decimal point such as 1.0 or 3.1
float
.include?()
string
.select
31. mixing expressions into strings
interpolation
D
strip
d
32. a collection of objects with a defined order
array
.sub
.select
object
33. symbol for a global variable which can be called from anywhere in an application.
<=>
$
.capitalize
s
34. data passed to methods in parenthesis after a method's name.
.map
W
arguments
.between?
35. an array method that
.each
variable
?x
start_with?
36. operator for "Boolean not"
if?then:else
!
.sort
D
37. method that sorts items alphabetically
.swapcase
string
.sort
.next
38. Boolean AND operator
code blocks
>=
&&
#{}
39. conditionally stops a loop
break if
.downcase
.capitalize
float
40. a fixed value that begins with a capital letter such as Pi.
A
constant
.sub
.next
41. a string method that scans object for arguments - uses regular expressions.
.scan()
.sub
.map
!=
42. (regular expression)any digit
d
.scan()
.scan()
arguments
43. a string method that removes last character
.chop
%w{}
^
&&
44. array method that transforms the contents of an array according to a specified set of rules
.map
#{}
S
d
45. (regular expression)anchor for the start of a string
array
D
A
end_with?
46. a regular method that is the anchor for the beggining of a line
^
W
local variable
.capitalize
47. sets a single character text delimiter for multi-line strings
%w{}
%q
.pop
w
48. less than or equal to (comparison operator)
<=
.map
s
.sub
49. array method that removes last item from an array
library
constant
.pop
<=>
50. a collection of characters such as "Hello world!"
!=
string
#{}
@
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