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 operators is the Ruby assignment operator?
Free
(Multiple Choice)
4.9/5
(44)
Correct Answer:
C
Which of the following operators can be used to automatically increment a variable's value?
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
B
In Ruby variable names must be formulated in accordance in a very specific set of rules. These rules includes all of the following except:
(Multiple Choice)
4.7/5
(36)
When working with #{} , Ruby is able to perform variable substitution.
(True/False)
4.9/5
(41)
Ruby requires that programmers specify a numeric class type, otherwise errors occur.
(True/False)
4.8/5
(42)
When working with double-quotes, Ruby is not able to perform escaping.
(True/False)
4.8/5
(35)
The childclass operator is used to create a new class based on an existing (parent) class.
(True/False)
4.9/5
(40)
Which of the following escape characters can be used to embed a new line feed instruction inside a text string?
(Multiple Choice)
4.9/5
(34)
A numeric value can be converted to a string using which of the following methods?
(Multiple Choice)
4.8/5
(39)
One of the primary benefits of object-oriented programming is its ability to allow programmers to model the creation of classes based on real life concepts.
(True/False)
4.7/5
(38)
Ruby supports a number of different types of scope, including ____.
(Multiple Choice)
4.8/5
(34)
A module is a container use to group classes, method, and constants.
(True/False)
4.9/5
(30)
The advantage of using %q{ and } and %Q{ and } characters in place of quotation marks is that these characters allow for the creation of strings that span multiple lines.
(True/False)
4.8/5
(32)
An attr_accessor is a keyword that identifies a list of one or more object properties.
(True/False)
4.9/5
(41)
Which of the following is a true statement about constants?
(Multiple Choice)
4.8/5
(35)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)