ICSE Class 10 Computer Applications Chapter 10 Input and Output Notes and Important Questions with Answers

Official Class 10 Computer Applications Revision Material: ICSE Class 10 Computer Applications Chapter 10 Input and Output Notes and Important Questions with Answers

Access comprehensive revision notes for Chapter 10 Input and Output using the ICSE Class 10 Computer Applications Chapter 10 Input and Output Notes and Important Questions with Answers. Designed to align with the 2026-27 academic syllabus for Class 10 Computer Applications, these concept summaries help students streamline their exam preparation and review complex topics efficiently.

Chapter-wise Concept Summaries: Chapter 10 Input and Output

Navigate directly to the revision notes for Chapter 10 Input and Output using the digital viewer below. Each summary is structured to highlight high-weightage sections, allowing students to instantly access critical definitions and focus on core exam topics.

These ICSE Class 10 Computer Applications notes on Input and Output cover key terms with 20 solved questions. They explain the System, InputStreamReader and BufferedReader classes, the Scanner and KeyboardReader classes, and print and println, with complete programs for keyboard input.

Important Terms and Definitions

1. Input is entering information (data) in the computer.

2. Output is retrieving information from the computer.

3. Input is urgently required for subsequent execution of a program.

4. Output is mostly obtained on the computer screen or from the printer.

5. During input, data flows through the following five objects:
(i) System.in,
(ii) reader,
(iii) input,
(iv) data object (Name etc.),
and (v) System.out. System.in reader input data object System.out

6. System.in and System.out are drawn as objects of the System class.

7. The System class is contained in java.lang package, which is imported automatically. For input/output operation, the java.io package is to be imported.

8. The three objects, reader, input and data are to be defined in the program.

9. The reader object is treated as an instance of the InputStreamReader class.

10. Input is created as an object of the BufferedReader class.

11. The reader object acts as a pipeline between keyboard and the input stream System.in. It is then transmitted into the program.

12. readLine ( ) method of the BufferedReader class enables the object input to extract input in a convenient way.

13. readLine ( ) method enables to read an entire line of character, entered through the keyboard.

14. When readLine ( ) method is called, the program waits till the information is entered by the user.

15. The information is passed to the program in the form of a string object.

16. In java.io package, nearly fifty I/O classes exist, out of which three are very much required. They are
(i) InputStream class,
(ii) InputStreamReader class extends to Reader class,
and (iii) BufferedReader class.

17. Those three classes may be included in a program by the following statement:
import java.io.*;

18. Those may also be included for use in a program by their qualified names, such as
(i) java.io.InputStream;
(ii) java.io.InputStreamReader;
(iii) java.io.BufferedReader;

19. The java.lang package which is automatically imported in all programs, has the System class. It spontaneously creates an InputStream object, as a System.in object and is in turn used to create, connected to the keyboard.

20. This InputStream object is used to produce an instance of the InputStreamReader class.

21. An instance of InputStreamReader class is used to create an object of BufferedReader class.
InputStreamReader indata = new InputStreamReader (System.in);
BufferedReader input = new BufferedReader (indata);
22. Steps of Inputs by user through console:
Step 1.
InputStreamReader r = new InputStreamReader (System.in);
// System.in object helps to create an InputStreamReader object.
Step 2.
BufferedReader br = new BufferedReader (r);
// InputStreamReader object helps to create a BufferedReader object.
Step 3.
System.out.println ("Enter data");
// A prompt asking the user to enter data is displayed on screen
Step 4.
String input = br.readLine ( );
/* The BufferedReader object helps in reading a line of text entered by the user */

23. The readLine ( ) method of BufferedReader returns only string objects.

24. The string object may be parsed (converted) and then stored as requisite primitive data type.
For example,
String input = br.readLine ( );
double number = Double.parseDouble (input);

25. As an object of the Reader class helps input string to work, there is a printer class whose object enables the output stream to function.

26. The PrintStream class extends the Printer class.

27. System.out is an object of the PrintStream class.

28. print ( ) and println ( ) methods of PrintStream class are mostly useful in producing output on the computer screen.

29. Scanner class was a gift of Java 1.5 (JDK 5.0) version.

30. This class has made keyboard input simpler.

31. The Scanner class enables to have input from the user.

32. The format of using Scanner class:
import java.util.Scanner;

public class <class name>
{
    private Scanner userInput = new Scanner (System.in);
}

33. The Scanner class has quite a few methods for the next element of input.

34. The method nextLine ( ) gets lines of inputs one after another.

35. The method next ( ) gets the next whitespace delimiter token.

36. KeyboardReader class provides another form of input device. After BufferedReader object gets created, it looks after all actions, such as, conversions of strings into numbers, handling exceptions, etc.

37. The methods in the KeyboardReader class are all static.

38. Those methods are invoked by class name. There is no need to create KeyboardReader object.
For example,
int i = KeyboardReader.readInt ( );        // To enter an integer
double j = KeyboardReader.readDouble ( );   // To enter a double
String str = KeyboardReader.readString ( ); // To enter a string

 

Questions with Answers

Question 1. Write a Java statement to input the following from the user using the keyboard:
(i) Character
(ii) String

Answer:
(i) char ch = (char) br.read ( );
(ii) String str = br.readLine ( );
// br is a BufferedReader class object

 

Question 2. Write Java statements to generate a random number n, such that 1 ≤ n < 10.
Answer:
Random random = new Random ( );
int n = 1 + random.nextInt (9);

nextInt (9) gives an integer from 0 to 8, so n lies between 1 and 9, i.e. 1 ≤ n < 10.

 

Question 3. Write Java statements to take student's name as input.
Answer:
InputStreamReader indata = new InputStreamReader (System.in);
BufferedReader input = new BufferedReader (indata);
String studentName = input.readLine ( );

 

Question 4. Combine the following two statements into one:
InputStreamReader isr = new InputStreamReader (System.in);
BufferedReader br = new BufferedReader (isr);

Answer:
BufferedReader standardInput = new BufferedReader (new InputStreamReader (System.in));

 

Question 5. Using KeyboardReader class, write an input statement to take in (i) short, (ii) long, (iii) string, (iv) character.
Answer:
(i) short x = KeyboardReader.readShort ( );
(ii) long y = KeyboardReader.readLong ( );
(iii) String str = KeyboardReader.readString ( );
(iv) char ch = KeyboardReader.readCharacter ( );

 

Question 6. Distinguish between reader class and printer class.
Answer:
The object of Reader class helps input stream to function. The object of printer class enables the output stream to function.

 

Question 7. Name two methods of the printer class which are frequently used for getting output of all types of data.
Answer:
print ( ) and println ( )

 

Question 8. What distinction is there between the output styles of print ( ) and println ( )?
Answer:
print ( ) method produces output horizontally on the same line.
println ( ) method produces output and then moves to the next line, so the next output is printed on the next horizontal line.

 

Question 9. What main purpose is served by the Scanner class?
Answer:
It allows to interact and obtain input straight from the user.

 

Question 10. How is System.in read by the statement?
private Scanner userInput = new Scanner (System.in);

Answer:
System.in is read from the keyboard.

 

Question 11. Distinguish between nextLine ( ) and next ( ) methods of the Scanner class.
Answer:
The nextLine ( ) method gets a line of input successively. The next ( ) method gets the next token, delimited by white space.

 

Question 12. Write how integers mark1, mark2, mark3, can be taken as keyboard input, using Scanner class.
Answer:
Scanner keyboard = new Scanner (System.in);
int mark1 = keyboard.nextInt ( );
int mark2 = keyboard.nextInt ( );
int mark3 = keyboard.nextInt ( );

 

Question 13. Write a program to input and print three integers as ages in years of three teenagers (use Scanner class).
Answer:
import java.util.Scanner;

public class teenAgers {
    public static void main (String args[ ])
    {
        Scanner input = new Scanner (System.in);
        int age1, age2, age3;
        System.out.println ("Enter the age");
        age1 = input.nextInt ( );
        System.out.println ("Enter the next age");
        age2 = input.nextInt ( );
        System.out.println ("Enter the age of the third one");
        age3 = input.nextInt ( );
        System.out.println ("The three are " + age1 + ", " + age2 + ", " + age3 + " years old");
    }
}

 

Question 14. Write a program, using Scanner class, to find bill amount in a restaurant charging 12.5% tax on bill.
Answer:
import java.util.Scanner;

public class makingBill {
    public static void main (String args[ ])
    {
        Scanner scan = new Scanner (System.in);
        System.out.println ("Enter the total food amount");
        double amt = scan.nextDouble ( );
        System.out.println ("Enter amount for dessert");
        double damt = scan.nextDouble ( );
        System.out.println ("Adding 12.5% service charge, the bill amounts to Rs. " + (amt + damt) * 1.125);
    }
}

 

Question 15. Write a program to illustrate console based I/O.
Answer:
import java.io.*;

public class consoleIO {
    private static BufferedReader br = new BufferedReader (new InputStreamReader (System.in));

    public static void main (String args[ ]) throws IOException
    {
        System.out.println ("Enter data");
        String inp = br.readLine ( );
        System.out.println ("Entered data: " + inp);
    }
}

 

Question 16. Write a program to calculate the volume of a cylinder. The radius and height are to be taken from the user.
Answer:
import java.io.*;

public class cylinderVol {
    public static void main (String args[ ]) throws IOException
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        double radius, volume, height;
        System.out.println ("Enter radius of the cylinder");
        radius = Double.parseDouble (br.readLine ( ));
        System.out.println ("Enter the height of the cylinder");
        height = Double.parseDouble (br.readLine ( ));
        volume = Math.PI * Math.pow (radius, 2) * height;
        System.out.println ("The volume of the cylinder = " + volume);
    }
}

Volume of a cylinder = \( \pi r^2 h \)

 

Question 17. Write a program using Reader class, to take a name from the user and print
"Hi! <Name>"
"Welcome to visit Infocase Laboratory".

Answer:
import java.io.*;

public class hiVisitor {
    public static void main (String args[ ]) throws IOException
    {
        InputStreamReader isr = new InputStreamReader (System.in);
        BufferedReader input = new BufferedReader (isr);
        System.out.println ("Your name, please. Enter it");
        String name = input.readLine ( );
        System.out.println ("Hi! " + name + ",");
        System.out.println ("Welcome to visit Infocase Laboratory");
    }
}

 

Question 18. Write a program to accept 25 integers from the keyboard, assuming that no integer entered is zero. Perform selection sort on the integers and then print them in ascending order.
Answer:
import java.io.*;

class numbers {
    public void selectionSort ( ) throws IOException
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        int vals[ ] = new int[25];
        int min, pos, temp;
        for (int i = 0; i < 25; i++)
        {
            System.out.println ("Enter one value");
            vals[i] = Integer.parseInt (br.readLine ( ));
        }
        for (int i = 0; i < 24; i++)
        {
            min = vals[i];
            pos = i;
            for (int j = i + 1; j < 25; j++)
            {
                if (vals[j] < min)
                {
                    min = vals[j];
                    pos = j;
                }
            }
            temp = vals[pos];
            vals[pos] = vals[i];
            vals[i] = temp;
        }
        System.out.println ("Ascending order list");
        for (int i = 0; i < 25; i++)
            System.out.println (vals[i]);
    }
}

 

Question 19. Using a switch statement, write a menu driven program to convert a given temperature from Fahrenheit to Celsius and vice-versa. For an incorrect choice, an appropriate error message should be displayed.
(Use the formula, \( C = \frac{5}{9}(F - 32) \) and \( F = 1.8 \times C + 32 \))

Answer:
import java.io.*;

class menu {
    public void temperature ( ) throws IOException
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        int choice;
        double F, C;
        do {
            System.out.println ("1. Fahrenheit to Celsius");
            System.out.println ("2. Celsius to Fahrenheit");
            System.out.println ("3. Exit");
            System.out.println ("Enter your choice (1 - 3)");
            choice = Integer.parseInt (br.readLine ( ));
            switch (choice)
            {
                case 1: System.out.println ("Enter Fahrenheit value");
                        F = Double.parseDouble (br.readLine ( ));
                        C = (5.0 / 9) * (F - 32);
                        System.out.println ("Temperature in Celsius = " + C);
                        break;
                case 2: System.out.println ("Enter Celsius value");
                        C = Double.parseDouble (br.readLine ( ));
                        F = 1.8 * C + 32;
                        System.out.println ("Temperature in Fahrenheit = " + F);
                        break;
                case 3: break;
                default: System.out.println ("Wrong choice! Enter again");
            }
        } while (choice != 3);
    }
}

Note: 5/9 must be written as 5.0/9, because the integer division 5/9 gives 0.

 

Question 20. The annual examination result of 50 students in a class is tabulated as follows:
Roll no.Subject ASubject BSubject C
............
Write a program to read the data, calculate and display the following:
(a) Average mark obtained by each student.
(b) Print the roll number and average marks of the students whose average mark is above 80.
(c) Print the roll number and average marks of the students whose average mark is below 40.

Answer:
import java.io.*;

class average {
    public void result ( ) throws IOException
    {
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        int roll[ ] = new int[50];
        int sub1[ ] = new int[50];
        int sub2[ ] = new int[50];
        int sub3[ ] = new int[50];
        double avg[ ] = new double[50];
        for (int i = 0; i < 50; i++)
        {
            System.out.println ("Enter roll no.");
            roll[i] = Integer.parseInt (br.readLine ( ));
            System.out.println ("Enter marks of three subjects");
            sub1[i] = Integer.parseInt (br.readLine ( ));
            sub2[i] = Integer.parseInt (br.readLine ( ));
            sub3[i] = Integer.parseInt (br.readLine ( ));
            avg[i] = (sub1[i] + sub2[i] + sub3[i]) / 3.0;
        }
        System.out.println ("Roll no.\tAverage");
        for (int i = 0; i < 50; i++)
            System.out.println (roll[i] + "\t" + avg[i]);
        System.out.println ("Students scoring above 80");
        System.out.println ("Roll no.\tAverage");
        for (int i = 0; i < 50; i++)
        {
            if (avg[i] > 80)
                System.out.println (roll[i] + "\t" + avg[i]);
        }
        System.out.println ("Students scoring below 40");
        System.out.println ("Roll no.\tAverage");
        for (int i = 0; i < 50; i++)
        {
            if (avg[i] < 40)
                System.out.println (roll[i] + "\t" + avg[i]);
        }
    }
}

Chapter 10 Input and Output Concepts and Summary for Class 10 Computer Applications

Download Chapter Summary: Class 10 Computer Applications Chapter 10 Input and Output

Review targeted chapter notes for Class 10 Computer Applications Chapter 10 Input and Output. Built according to official ICSE guidelines, these summaries highlight high-yield topics frequently tested in school evaluations.

Concept Clarification for Chapter 10 Input and Output

Each chapter summary is structured around standard ICSE textbooks, allowing students to check their understanding and clarify complex ideas early in their revision.

Additional Study Resources for Class 10 Computer Applications

Wrap up your chapter revision by testing your knowledge against standard question formats. Everything on our platform is provided free of charge.

FAQs

Where can I download the latest PDF for ICSE Class 10 Computer Applications Chapter 10 Input and Output Notes and Important Questions with Answers?

You can download the teacher prepared revision notes for ICSE Class 10 Computer Applications Chapter 10 Input and Output Notes and Important Questions with Answers from StudiesToday.com. These notes are designed as per 2026-27 academic session to help Class 10 students get the best study material for Computer Applications.

Are these Computer Applications notes for Class 10 based on the 2027 board exam pattern?

Yes, our ICSE Class 10 Computer Applications Chapter 10 Input and Output Notes and Important Questions with Answers include 50% competency-based questions with focus on core logic, keyword definitions, and the practical application of Computer Applications principles which is important for getting more marks in 2027 ICSE exams.

Do these Class 10 notes cover all topic-wise concepts for Computer Applications?

Yes, our ICSE Class 10 Computer Applications Chapter 10 Input and Output Notes and Important Questions with Answers provide a detailed, topic wise breakdown of the chapter. Fundamental definitions, complex numerical formulas and all topics of ICSE syllabus in Class 10 is covered.

How can I use ICSE Class 10 Computer Applications Chapter 10 Input and Output Notes and Important Questions with Answers for quick last-minute revision?

These notes for Computer Applications are organized into bullet points and easy-to-read charts. By using ICSE Class 10 Computer Applications Chapter 10 Input and Output Notes and Important Questions with Answers, Class 10 students fast revise formulas, key definitions before the exams.

Is there any registration required to download Class 10 Computer Applications notes?

No, all study resources on StudiesToday, including ICSE Class 10 Computer Applications Chapter 10 Input and Output Notes and Important Questions with Answers, are available for immediate free download. Class 10 Computer Applications study material is available in PDF and can be downloaded on mobile.