Class string has member function __________ to interchange the data stored in two string objects
a. exchange
b. switch
c. swap
d. copyto
c. swap
You might also like to view...
Which of the following statements is false?
a. Scanner method next reads characters until any white-space character is encountered, then returns the characters as a String. b. To call a method of an object, follow the object name with a comma, the method name and a set of parentheses containing the method’s arguments. c. A class instance creation expression begins with keyword new and creates a new object. d. A constructor is similar to a method but is called implicitly by the new operator to initialize an object’s instance variables at the time the object is created.
What is displayed on the console when running the following program?
``` public class Test { public static void main(String[] args) { try { System.out.println("Welcome to Java"); int i = 0; double y = 2.0 / i; System.out.println("Welcome to HTML"); } finally { System.out.println("The finally clause is executed"); } } } ``` a. Welcome to Java. b. Welcome to Java followed by The finally clause is executed in the next line. c. The program displays three lines: Welcome to Java, Welcome to HTML, The finally clause is executed. d. None of the above.
Critical Thinking QuestionsCase B-1As a production assistant, you have been using different kinds of images in Flash without a deep knowledge of what kinds of images you have been working with. In your introductory Flash course, you are beginning to build a more solid foundation of understanding. Your senior designer had asked you to increase the size of an image of the White House, then changed her mind and had you make it smaller, then larger again after that. The edges have started to become jagged, and the overall quality of the image has deteriorated. What kind of image is this? a. vectorc. modifiedb. rasterd. calibrated
What will be an ideal response?
When all statements in a high-level source program are translated as a complete unit before any statement is executed, the program doing the translation is called a(n) ____________________.
Fill in the blank(s) with the appropriate word(s).