Output Questions for Class 10 ICSE Computer Applications

  • Java String Handling

    Give the output of the following:

    
    String n = "Computer Knowledge";
    String m = "Computer Applications"; 
    System.out.println(n.substring(0,8).concat(m.substring(9))); 
    System.out.println(n.endsWith("e"));
    
    View Answer

    69 Likes


  • Java String Handling

    What do the following functions return?

    
    String x = "Vision";
    String y = "2020";
    System.out.println(x.equals(y));
    
    View Answer

    24 Likes


  • Java String Handling

    Give the output of the following statements:

    String x[] = {"SAMSUNG", "NOKIA", "SONY", "MICROMAX", "BLACKBERRY"};

    System.out.println(x[3].length());

    View Answer

    29 Likes


  • Java String Handling

    Consider the following String array and give the output

    
    String arr[]= {"DELHI", "CHENNAI", "MUMBAI", "LUCKNOW", "JAIPUR"}; 
    System.out.println(arr[0].length() > arr[3].length()); 
    System.out.print(arr[4].substring(0,3));
    
    View Answer

    35 Likes


  • Java String Handling

    Give the output of the following string functions:

    "ACHIEVEMENT".replace('E', 'A')

    View Answer

    32 Likes


  • Java String Handling

    What do the following functions return?

    
    String x = "Vision";
    String y = "2020";
    System.out.println(x.length());
    
    View Answer

    30 Likes


  • Java String Handling

    Predict the output of the following Java program snippet:

    
    String n1 = "46", n2 = "64";
    int total = Integer.parseInt(n1) + Integer.parseInt(n2);
    System.out.println("The sum of " + "46 " + "and" + " 64" + " is " + total);
    
    View Answer

    51 Likes


  • Java String Handling

    Give the output of the following statements:

    String x[] = {"SAMSUNG", "NOKIA", "SONY", "MICROMAX", "BLACKBERRY"};

    System.out.println(x[1]);

    View Answer

    22 Likes


  • Java String Handling

    Predict the output of the following Java program snippet:

    
    String str = "Computer Applications" + 1 + 0;
    System.out.println("Understanding" + str);
    
    View Answer

    72 Likes


  • Java String Handling

    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");
    
    View Answer

    27 Likes


Showing 81 - 90 of 147 Questions