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);
    

  • Values & Data Types Java

    Write the output:

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

  • Values & Data Types Java

    Write the output of the following statement:

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

  • 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");
    

  • 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");
    

  • Java Intro

    Predict the output of the following Java program snippet:

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

  • 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!!!");
    

  • Java User Defined Methods

    Give output of the following function 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.


  • Java User Defined Methods

    Give output of the following function 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 function.


  • Java User Defined Methods

    Give output of the following function 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.


Showing 1 - 10 of 147 Questions