KnowledgeBoat Logo

Output Questions for Class 10 ICSE Computer Applications

  • Values & Data Types Java

    What is the output produced by the following lines of program code?

    char x, y;
    x = 'y';
    System.out.println(x);
    y = 'z';
    System.out.println(y);
    x = y;
    System.out.println(x);
    
    View Answer

    434 Likes


  • Values & Data Types Java

    Write the output:

    char ch = 'F';
    int m = ch;
    m=m+5;
    System.out.println(m + " " + ch);
    
    View Answer

    240 Likes


  • Values & Data Types Java

    Write the output of the following statement:

    System.out.println("A picture is worth \t \"A thousand words.\" ");
    
    View Answer

    177 Likes


  • Java Intro

    Predict the output of the following Java program snippet:

    System.out.println("India got independence"); 
    System.out.println("on");
    System.out.println("15th August,1947");
    
    View Answer

    140 Likes


  • Java Intro

    Predict the output of the following Java program snippet:

    System.out.println("My name is ");
    System.out.print("Kunal Kishore");
    System.out.println("I am a student of Class X");
    
    View Answer

    166 Likes


  • Java Intro

    Predict the output of the following Java program snippet:

    System.out.print("The factorial of 5 is");
    System.out.println("120");
    
    View Answer

    92 Likes


  • Java Intro

    Predict the output of the following Java program snippet:

    System.out.println("This is my first Java program");
    System.out.print("Display the message:");
    System.out.print("Have fun!!!");
    
    View Answer

    81 Likes


  • User Defined Methods

    Give output of the following method definition and also write the mathematical operation they carry out:

    
    void test3(char c)
    {
        System.out.println( (int) c);
    }
    

    if 'm' is passed to c.

    View Answer

    135 Likes


  • User Defined Methods

    Give output of the following method definition and also write the mathematical operation they carry out:

    
    void test4(String x, String y)
    {
        if(x.compareTo(y) > 0)
            System.out.println(x);
        else
            System.out.println(y);
    }
    

    if "AMIT" and "AMAN" are passed to the method.

    View Answer

    140 Likes


  • User Defined Methods

    Give output of the following method definition and also write the mathematical operation they carry out:

    
    void test1(int n)
    {
    for(int x=1; x<=n; x++)
    if(n%x == 0)
        System. out.println(x);
    }
    

    if 12 is passed to n.

    View Answer

    169 Likes


Showing 1 - 10 of 147 Questions