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 Study Set 1
Quiz 9: Text Processing and More About Wrapper Classes
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 41
Multiple Choice
What will be the value of position after the following code is executed? int position; String str = "The cow jumped over the moon."; Position = str.indexOf("ov") ;
Question 42
Multiple Choice
If str is declared as: String str = "ABCDEFGHI"; What will be returned from the following statement? Character.toLowerCase(str.charAt(5) )
Question 43
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 44
Multiple Choice
In the following statement, what data type must recField be? str.getChars(5, 10, recField, 0) ;
Question 45
Multiple Choice
What will be displayed after the following code is executed? String str = "RSTUVWXYZ"; System.out.println(str.charAt(5) ) ;
Question 46
Multiple Choice
In the following code, how many times will the for loop execute? String str = "1,2,3,4,5,6,7,8,9") ; String[ ] tokens = str.split(",") ; For (String s : tokens) System.out.println(s) ;
Question 47
Multiple Choice
What would be the results of executing the following code? StringBuilder str = new StringBuilder("Little Jack Horner ") ; Str) append("sat on the ") ; Str) append("corner") ;
Question 48
Multiple Choice
In the following code, how many times will the for loop execute? String str = ("Ben and Jerry's ice cream is great.") ; String[ ] tokens = str.split(" ") ; For (String s : tokens) System.out.println(s) ;