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. an array method that returns TRUE or FALSE if the array contains specified item
.include?()
.between?
%arg
.match
2. a string method that removes last character
.chop
Z
.pop
string
3. (regular expression)any nondigit
D
library
constant
|x|
4. Boolean OR operator
!=
.capitalize
||
W
5. method to determine if an object is an even number
library
.even?
string
operators
6. data passed to methods in parenthesis after a method's name.
@
parameters
Z
.chop
7. (regular expression)any nonletter or nondigit or nonunderscore.
.split
.each
D
W
8. operator for "Boolean not"
.capitalize
Z
.next
!
9. (regular expression)anchor for the start of a string
library
?x
@@
A
10. a regular method that is the anchor for the beggining of a line
.chop
<=>
d
^
11. sets a text delimiter
%arg
method
local variable
<=>
12. a string method that uncapitalizes first character
^
.downcase
s
&&
13. Data type that is assigned at initialization and typically does not change. Starts with a capital letter.
constant
object
.sub
.index
14. a placeholder for a single object that may be a number or string or list or instance of a defined class
%arg
object orientation
variable
.gsub
15. tells you all methods that an object may invoke.
.methods
S
regular expressions
%q
16. a string method that substitutes ALL occurrences of a string with another.
start_with?
iterator
.gsub
regular expressions
17. a string method that uncapitalizes first character
>=
.include?()
.downcase
?x
18. string method that "cleans" extra spaces from strings
<<
.downcase
.methods
strip
19. a module of classes and or functions
^
.index
library
w
20. a string method that capitalizes first character
.capitalize
!=
D
S
21. a string method that splits a string into an array
.split
D
Z
constant
22. a definition of a concept in an object oriented language.
<<
class
iterator
Z
23. data passed to methods in parenthesis after a method's name.
object
arguments
!
@@
24. passes value into block of code and assigns it the label of "x"
struct
w
!
|x|
25. symbol for a global variable which can be called from anywhere in an application.
A
.select
.map
$
26. a collection of characters such as "Hello world!"
!
string
%
.scan()
27. less than or equal to (comparison operator)
Z
float
<=
@@
28. comparison operator for "equal to"
==
.downcase
$
object orientation
29. pushes a new item onto the end of an array.
W
iterator
operators
<<
30. the remainder operator
%
.sub
.scan()
s
31. greater than or equal to (comparison operator)
>=
w
w
not and or
32. Boolean not and or (lower preference)
arguments
.methods
not and or
d
33. a string method that substitutes ALL occurrences of a string with another.
.gsub
interpolation
start_with?
%w{}
34. a special array made from arguments that were added to the command line at start up.
range
.map
Z
ARGV
35. defines a class variable. Can be used anywhere within a class
W
!
@@
W
36. a collection of objects with a defined order
method
d
array
.chop
37. array assignment oprator
<=
string
<<
%arg
38. a module that works everywhere within ruby without being refereed to. Contains many common ruby methods.
.between?
kernel
array
A
39. comparison operator for "not equal to"
start_with?
!=
@
!
40. a number with a decimal point such as 1.0 or 3.1
start_with?
float
A
@@
41. a regular method that is the anchor for the beggining of a line
?x
library
^
!=
42. returns ASCII value of x
constant
.include?()
.downcase
?x
43. defines array of multiple elements seperated by a space
.downcase
library
.sub
%w{}
44. returns ASCII value of x
.capitalize
.map
.downcase
?x
45. a string method that substitutes THE FIRST occurrence of a string within a string
$
struct
.sub
<=>
46. interpolation operator
A
.scan()
hash
#{}
47. method that tells an argument's place value within an array
string
|x|
.include?()
.index
48. comaprison operator that will read 0 if = or 1 if higher or -1 if lower.
.next
class
<=>
.include?()
49. runs a proc that has been stored to a variable
.gsub
object orientation
call
.methods
50. (regular expression)anchor for the end of a string
d
Z
S
A
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