The each method is a very commonly used looping method. This method is supported by a number of different Ruby classes, including all of the following except ____.
A. The Array class
B. The Dir class
C. The String class
D. The Range class
Answer: C
You might also like to view...
Although it is an exciting medium, 3D animation is still a curiosity on the Web. Why is this? List several reasons.
What will be an ideal response?
(De Morgan’s Laws) In this chapter, we discussed the logical operators &&, || and !. De Morgan’s Laws can sometimes make it more convenient for us to express a logical expression. These laws state that the expression !(condition1 && condition2) is logically equivalent to the expression (!condition1 || !condition2). Also, the expression !(condition1 || condition2) is log- ically equivalent to the expression (!condition1 && !condition2). Use De Morgan’s Laws to write equivalent expressions for each of the following, and then write a program to show that the original expression and the new expression are equivalent in each case.
a. ``` !( x < 5 ) && !( y >= 7 ) ``` b. ``` !( a == b ) || !( g != 5 ) ``` c. ``` !( ( x <= 8 ) && ( y > 4 ) ) ``` d. ``` !( ( i > 4 ) || ( j <= 6 ) ) ```
To display the Join Properties dialog box, right-click the join line and click ____ on the shortcut menu.
A. Properties B. Join Properties C. Property Sheet D. Modify Properties
?In the above figure, _____ is added to a tablet viewport so that navigation links appear above the main element rather than within it.
A. ?clear: right; B. ?clear:top; C. ?clear: left; D. ?clear: bottom;