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.
(i) System.in,
(ii) reader,
(iii) input,
(iv) data object (Name etc.),
and (v) 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.
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.
InputStreamReader indata = new InputStreamReader (System.in); BufferedReader input = new BufferedReader (indata);
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 screenStep 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.
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.
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.
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
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.
Answer:
InputStreamReader indata = new InputStreamReader (System.in); BufferedReader input = new BufferedReader (indata); String studentName = input.readLine ( );
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.
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.
Answer:
Scanner keyboard = new Scanner (System.in); int mark1 = keyboard.nextInt ( ); int mark2 = keyboard.nextInt ( ); int mark3 = keyboard.nextInt ( );
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");
}
}
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);
}
}
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);
}
}
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 \)
"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");
}
}
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]);
}
}
(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.
| Roll no. | Subject A | Subject B | Subject C |
|---|---|---|---|
| ... | ... | ... | ... |
(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]);
}
}
}Free study material for Computer Application
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
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.
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.
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.
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.
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.