Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Starting Out with Java
Quiz 10: Text Processing and More About Wrapper Classes
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Multiple Choice
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.") ;
Question 22
Multiple Choice
Look at the following code. Integer myNumber = new Integer(5) ; Int var = myNumber; Which of the following is true about the second statement?
Question 23
Multiple Choice
Look at the following code. Integer myNumber; MyNumber = 5; Which of the following is true about the second statement?
Question 24
Multiple Choice
What does the following statement do? Float number = new Float(8.8) ;
Question 25
Multiple Choice
Given the following statement,which of the following is not true? str.insert(8,32) ;
Question 26
Multiple Choice
What will be the tokens in the following statement? String str = "red$green&blue#orange"; String tokens = str.split("[$]") ;
Question 27
Multiple Choice
What will be printed after the following code is executed? String str = "abc456"; Int m = 0; While ( m < 6 ) { If (!Character.isLetter(str.charAt(m) ) ) System.out.print( Character.toUpperCase(str.charAt(m) ) ) ; M++; }
Question 28
Multiple Choice
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() ) ; }
Question 29
Multiple Choice
If you do not specify delimiters in the StringToken constructor,which of the following cannot be a delimiter?
Question 30
Multiple Choice
What is the value of str after the following code has been executed? String str; String sourceStr = "Hey diddle,diddle,the cat and the fiddle"; Str = sourceStr.substring(12,17) ;
Question 31
Multiple Choice
In a string that contains a series of words or other items of data separated by spaces or other characters,the programming term for the data items is
Question 32
Multiple Choice
What will be the value of matches after the following code has been executed? boolean matches; String str1 = "The cow jumped over the moon."; String str2 = "moon"; Matches = str1.endsWith(str2) ;