1. Engineering
  2. Computer Science
  3. g chase checking c summaryaccount applat on assgment...

Question: g chase checking c summaryaccount applat on assgment...

Question details

G Chase Checking | c, summary-Account Applat on () Assgment 2 xAssignment 2 Description CSC1x+ >< >< anck Links I elendale Communi X グ × С File file:///C/Users/wisman/Downloads/ 11040-1.pdf Part 1 (10 points): Place your answers to the questions in Part 1 in a Word document. The document will be submitted to Assigiment 2 Part 1 on Canvas. A) What number is used to represent the starting index of a String? 8) What is the output of the following lines of code? Hint: Try this in Textpad String sentence Text processing is hard! int position sentence.indexofl hard) System.out.printin(sentence) word hardstarts at index position): int index 0 String changedStr-sentence.substring index, position)fun C) What is the output produced by the following statements? String test-abcdefg System.out.printintest.length) System.out println test.charAt(1)) D) What is the value of the expression sl.equals(s2) after the following statements execute? String s1- Hello John String s2-hello john; E) What is the value of the expression si.equals(s2) after the following statements execute? String s1- Hello John String s2-hello john; 1-s1.toUpperCase s2- s2.toUpperCase

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution