Exam 10: Text Processing and More About Wrapper Classes
Exam 1: Introduction to Computers and Java42 Questions
Exam 2: Java Fundamentals53 Questions
Exam 3: Decision Structures52 Questions
Exam 4: Loops and Files48 Questions
Exam 5: Methods50 Questions
Exam 6: A First Look at Classes49 Questions
Exam 7: A First Look at Gui Applications49 Questions
Exam 8: Arrays and the Arraylist Class52 Questions
Exam 9: A Second Look at Classes and Objects40 Questions
Exam 10: Text Processing and More About Wrapper Classes49 Questions
Exam 11: Inheritance49 Questions
Exam 12: Exceptions and Advanced File Io46 Questions
Exam 13: Advanced Gui Applications46 Questions
Exam 14: Applets and More39 Questions
Exam 15: Recursion34 Questions
Exam 16: Sorting, Searching, and Algorithm Analysis46 Questions
Exam 17: Generics50 Questions
Exam 18: Collections50 Questions
Exam 19: Array-Based Lists20 Questions
Exam 20: Linked Lists36 Questions
Exam 21: Stacks and Queues36 Questions
Exam 22: Binary Trees, Avl Trees, and Priority Queues45 Questions
Select questions type
What will be the value of loc after the following code is executed? int loc;
String str = "The cow jumped over the moon.";
Loc = str.indexOf("ov");
(Multiple Choice)
4.8/5
(34)
Look at the following code. Integer myNumber;
MyNumber = 5;
Which of the following is true about the second statement?
(Multiple Choice)
4.8/5
(34)
What will be the value of loc after the following code is executed? int loc;
String str = "The cow jumped over the moon.";
Loc = str.lastIndexOf("ov",14);
(Multiple Choice)
4.8/5
(30)
If you are using characters other than whitespaces as delimiters,you will probably want to trim the string before tokenizing;otherwise,the leading and/or following whitespaces will become part of the first and/or last token.
(True/False)
4.7/5
(44)
What will be the tokens in the following statement? StringTokenizer strToken =
New StringTokenizer("January 1,2008",",",true);
(Multiple Choice)
4.9/5
(47)
For the following code,how many times would the while loop execute? StringTokenizer strToken =
New StringTokenizer("Ben and Jerry's ice cream is great.");
While (strToken.hasMoreTokens())
{
System.out.println(strToken.nextToken());
}
(Multiple Choice)
4.7/5
(40)
What will be the value of matches after the following code is executed? boolean matches;
String[] productCodes = {"456HI345","3456hj"};
Matches = productCodes[0].regionMatches(true,1,
ProductCodes[1],2,3);
(Multiple Choice)
4.8/5
(42)
You must call a method to get the value of a wrapper class object.
(True/False)
4.9/5
(33)
What would be the results of executing the following code? StringBuilder str = new StringBuilder(12);
Str)append("The cow");
Str)append(" jumped over the ");
Str)append("moon.");
(Multiple Choice)
4.7/5
(39)
Showing 41 - 49 of 49
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)