Exam 3: Working With Strings, Objects, and Variables
Exam 1: Ruby Basics45 Questions
Exam 2: Interacting With Ruby55 Questions
Exam 3: Working With Strings, Objects, and Variables50 Questions
Exam 4: Implementing Conditional Logic49 Questions
Exam 5: Working With Loops50 Questions
Exam 6: Working With Collections of Data46 Questions
Exam 7: Working With Regular Expressions50 Questions
Exam 8: Object-Oriented Programming50 Questions
Exam 9: File and Folder Administration49 Questions
Exam 10: Debugging50 Questions
Exam 11: Ruby on Rails Web Development51 Questions
Select questions type
Which of the following constructions is used as the basis for defining objects?
(Multiple Choice)
4.9/5
(34)
A method is an object attribute stored as a variable that describes a particular aspect or feature of the object.
(True/False)
4.8/5
(39)
The String class's swapcase method converts a string to all uppercase letters.
(True/False)
4.8/5
(41)
One of the differences between Ruby and many other programming languages is that ____.
(Multiple Choice)
4.9/5
(36)
Which of the following statements correctly defines local variable scope?
(Multiple Choice)
4.8/5
(30)
Interpolation is the process of substituting the value of an expression or variable inside a string.
(True/False)
4.8/5
(40)
Which of the following methods should be used to convert a numeric value to an integer?
(Multiple Choice)
4.9/5
(42)
Ruby supports a number of different types of numeric classes, including all of the following except ____.
(Multiple Choice)
4.8/5
(27)
Creating a string by embedding characters inside the %q{ and } characters is equivalent to embedding them within double quotes.
(True/False)
4.9/5
(38)
To compare two strings to see if they are equal the = operator must be used.
(True/False)
4.9/5
(39)
When creating multiline text strings using the %q{ and } and %Q{ and } characters, you can substitute any characters you wish in place of the { and } characters.
(True/False)
4.8/5
(43)
Text plays a big role in many scripts when communicating with users. Text strings in Ruby can consist of letters, numbers, special characters and even blank spaces.
(True/False)
4.8/5
(35)
When the user presses Enter in order to submit input, Ruby automatically appends an end of line marker to the end of the input. This end of line marker can be removed using what method?
(Multiple Choice)
4.9/5
(40)
Concatenation is the process of splitting a string into two smaller strings.
(True/False)
4.8/5
(43)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)