Revision: String Handling Computer Applications (English Medium) ICSE Class 10 CISCE
- Give the output of the following string functions: (i) “ACHIEVEMENT”.replace(E’, ‘A’) (ii) “DEDICATE”.compareTo(“DEVOTE”)
- Design a Class Name Showroom with the Following Description : Instance Variables/ Data Members :
- Design a class Railway Ticket with following description: Instance variables/data members: String name: To store the name of the customer
- Special Words Are Those Words that Start and End with the Same Letter. Examples: Existence Comic Window Palindrome Words Are Those Words Which Read the Same from Left to Right
- Give the Output of the Following String Functions: (I) "Mississippi".Indexof('S') + "Mississippi".Lastindexof('I') (Ii) "Cable".Compareto("Cadet")
- Give the output of the following String class method: "COMMENCEMENT".lastIndex0f('M')
- Give the output of the following String class method: "devote". compareTo("DEVOTE")
- Define a class to accept a String and print the number of digits, alphabets and special characters in the string. Example: S = "KAPILDEV@83"
- Int x = 98; char ch = (char)x; what is the value in ch?
- The out put of the statement "CONCENTRATION" indexOf('T') is ______.
- The output of the statement "talent". compareTo("genius") is ______.
- The following code to compare two strings is compiled, the following syntax error was displayed - incompatible types - int cannot be converted to boolean.
- Write a Program to Initialize the Seven Wonders of the World Along with Their Locations in Two Different Arrays. Search for a Name of the Country Input by the User. If Found, Display
- Write the Return Data Type of the Following Function: Endswith( )
- The String class method to join two strings is ______.
- The output of the function "COMPOSITION". substring(3, 6):
- Design a Class to Overload a Function Joystring( ) as Follows :
- String X() = {“Artificial Intelligence”, “Iot”, “Machine Learning”, “Big Data”}; Give the Output of the Following Statements:
- Write a Program to Input a Sentence and Convert It into Uppercase and Count and Display the Total Number of Words Starting with a Letter ‘A’.
- A Tech Number Has Even Number of Digits. If the Number is Split in Two Equal Halves, Then the Square of Sum of These Halves is Equal to the Number Itself.
- String x[] = {“SAMSUNG”, “NOKIA”, “SONY”, “MICROMAX”, “BLACKBERRY”}; Give the output of the following statements: System.out.println(x[1]); System.out.println(x[3].length());
- Write the Output for the Following : String S= “Today is Test”; System.Out.Println(S.Indexof(‘T’)); System.Out.Println(S.Substring(0, 7) + ” ” + “Holiday”);
- What is the Function of Catch Block in Exception Handling ? Where Does It Appear in a Program ?
- State the output when the following program segment is executed: String a = "Smartphone", b = "Graphic Art"; String h = a.substring(2, 5); String k = b.substring(S).toUpperCase();
- Write the Output for the Following : System.Out.Prindn(“Incredible” + “\N” + “World”);
- If Int Y = 10 Then Find Int Z = (++Y * (Y++ +5));
- Write the Output for the Following: String S1 = “Phoenix”; String S2 =”Island”;
- State the Output of the Following Program Segment: String Str1 = “Great”; String Str2 = “Minds”;
- Rewrite the following program segment using if-else statements instead of the ternary operator: String grade = (mark >= 90) ? “A” : (mark >= 80) ? “B” : “C”;
- Give the output of the following method: public static void main (String [] args) { int a = 5; a++; System.out.println(a); a -= (a--) − (--a); System.out.println(a); }
- State the Value of Characteristic and Mantissa When the Following Code is Executed: String S = “4.3756”; Int N = S.Indexof(‘.’); Int Characteristic=Integer.Parseint (S.Substring (0,N)); Int Mantissa
- Define a Class Named Moviemagic with the Following Description: Instance Variables/Data Members: Int Year — to Store the Year of Release of a Movie. String Title — To-store the Title of the Movie