Output Questions for Class 10 ICSE Computer Applications

  • Java Math Lib Methods

    Predict the output of the following:

    System.out.println(Math.cbrt(42.875));
    
    View Answer

    42 Likes


  • Java Math Lib Methods

    Predict the output of the following:

    System.out.println(Math.sqrt(10.24));
    
    View Answer

    102 Likes


  • Java Math Lib Methods

    Give the output of the following:

    1. Math.floor (-4.7)
    2. Math.ceil(3.4) + Math.pow(2, 3)

    View Answer

    28 Likes


  • Java Math Lib Methods

    Give the output of the following Math functions:

    1. Math.ceil(4.2)
    2. Math.abs(-4)

    View Answer

    10 Likes


  • Java Math Lib Methods

    Give the output of the following:

    1. Math.max(Math.ceil(14.5), 15.5)
    2. Math.sqrt(Math.abs(-225))

    View Answer

    14 Likes


  • Java Library Classes

    Give the output of the following code:

    
    String P = "20", Q ="19";
    int a = Integer.parseInt(P);
    int b = Integer.valueOf(Q);
    System.out.println(a+""+b);
    
    View Answer

    37 Likes


  • Java Library Classes

    Find the output of the following program snippet:

    
    char c = 'B';
    int i = 4;
    System.out.println(c+i);
    System.out.println((int)c+i);
    
    View Answer

    44 Likes


  • Java Library Classes

    Find the output of the following program snippet:

    
    String s= "7";
    int t =Integer.parseInt(s);
    t=t+1000;
    System.out.println(t);
    
    View Answer

    15 Likes


  • Java Library Classes

    Find the output of the following program snippet:

    
    char c = 'B';
    int i = 4;
    System.out.println(c+i);
    System.out.println((int)c+i);
    
    View Answer

    41 Likes


  • Java Library Classes

    Find the output of the following program snippet:

    
    char ch = 'x'; int n = 5;
    n = n + (int)ch;
    char c = (char)n;
    System.out.println((char)((int)c-26));
    
    View Answer

    92 Likes


Showing 51 - 60 of 147 Questions