What is the return value of “select”.substring(0. 5)?

46. What is the return value of SELECT substring(0, 5)? a. SELECT b. SELEC C. SELE d. ELECT 47. To check if a string s contains the prefix Java, you may write a. if (s.startsWith(Java)) b. if (s.indexOf(Java)0). c. if (s.substring(o, 4).equals(Java). d. All of the above 48. The -method parses a string s to an int value. a. integer.parselnt(s); b. Integer.parselnt(s) c. integer.parselnteger(s) d. Integer.parselnteger(s); 49. The statement System.out.printf(%3.1f, 123456) outputs a. 123.4 b. 123.5 c. 1234.5 d. 1234.6 50. The statement System.out.printf(%10s, 123456) outputs space) (Note: represents a a. 123456** b. 23456* c. 12345** d. *123456 46. What exactly is the return worth of “SELECT” substring(0, 5)? a. “SELECT b. “SELEC C. “SELE” d. “ELECT 47. To check if a string s provides the prefix “Java”, you might write a. if (s.startsWith(“Java”)) b. if (s.indexOf(“Java”)0). c. if (s.substring(o, 4).equals(“Java”). d. The above mentioned 48. The -method parses a string s to an int price. a. integer.parselnt(s); b. Integer.parselnt(s) c. integer.parselnteger(s) d. Integer.parselnteger(s); 49. The statement System.out.printf(“%3.1f”, 123456) outputs a. 123.4 b. 123.5 c. 1234.5 d. 1234.6 50. The statement System.out.printf(“%10s”, 123456) outputs location) (Note: “represents a a. 123456** b. 23456* c. 12345** d. *123456
49) B. 123.5
48) B . Integer.parseInt(s)Explanation: series tend to be became integer utilizing overhead
%10 s indicates 10 numbers with 4 start and 6 digits
Explanation: starts with 0 and takes 5 personality
47) d. All the overhead

50) d)****123456
Thanks, PLEASE UPVOTE if
helpful

prefix
Information: all of them make certain that series starts with Java as
46) b. SELEC
strategy
3.1 indicates 3 amount before decimal and 1 after decimal
from list 0. ergo its SELEC

Leave a Comment