0% found this document useful (0 votes)
7 views7 pages

ICSE Class10 Computer Expected Questions Programs

This document is a revision guide for ICSE Class 10 Computer Applications, outlining important theory questions, expected output questions, and Java programs with solutions. It includes topics such as class and object definitions, inheritance, constructors, loops, and exception handling, along with practical programming examples. Additionally, it provides exam tips for effective preparation.

Uploaded by

nakshatrarane0
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views7 pages

ICSE Class10 Computer Expected Questions Programs

This document is a revision guide for ICSE Class 10 Computer Applications, outlining important theory questions, expected output questions, and Java programs with solutions. It includes topics such as class and object definitions, inheritance, constructors, loops, and exception handling, along with practical programming examples. Additionally, it provides exam tips for effective preparation.

Uploaded by

nakshatrarane0
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ICSE Class 10 Computer Applications

Expected Questions & Programs with


Solutions
Last 12 Days Smart Revision Guide

Prepared for Board Exam Success ■


■ Important Theory Questions
1. Define class and object. Explain with example.

2. What is inheritance? State its advantages.

3. Explain constructors and their types.

4. Differentiate between while and for loop.

5. What are wrapper classes?

6. Explain any four Java keywords.

7. What is method overloading?

8. Difference between abstract class and interface.

9. Explain garbage collection.

10. What is exception handling?


■ Expected Output Questions
Q1:
int x=5;
while(x>0)
{
[Link](x+" ");
x--;
}

Output: 5 4 3 2 1

Q2:
for(int i=1;i<=3;i++)
{
[Link](i*i);
}

Output: 1 4 9
■ Important Java Programs with Solutions
1. Program to check Prime Number

import [Link].*;
class Prime
{
public static void main()
{
Scanner sc=new Scanner([Link]);
int n,i,c=0;
[Link]("Enter number:");
n=[Link]();

for(i=1;i<=n;i++)
{
if(n%i==0)
c++;
}

if(c==2)
[Link]("Prime");
else
[Link]("Not Prime");
}
}

2. Program to check Palindrome Number

import [Link].*;
class Palindrome
{
public static void main()
{
Scanner sc=new Scanner([Link]);
int n,rev=0,d,temp;

[Link]("Enter number:");
n=[Link]();
temp=n;

while(n>0)
{
d=n%10;
rev=rev*10+d;
n=n/10;
}

if(temp==rev)
[Link]("Palindrome");
else
[Link]("Not Palindrome");
}
}

3. Program to find Sum of Array Elements

import [Link].*;
class ArraySum
{
public static void main()
{
int a[]=new int[5];
int i,sum=0;
Scanner sc=new Scanner([Link]);

for(i=0;i<5;i++)
{
a[i]=[Link]();
sum+=a[i];
}

[Link]("Sum="+sum);
}
}

4. Program to Count Vowels in String

import [Link].*;
class Vowel
{
public static void main()
{
Scanner sc=new Scanner([Link]);
String s;
int i,c=0;

[Link]("Enter String:");
s=[Link]();
s=[Link]();

for(i=0;i {
char ch=[Link](i);
if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
c++;
}

[Link]("Vowels="+c);
}
}
■ Pattern Program
*
**
***
****

Code:
for(int i=1;i<=4;i++)
{
for(int j=1;j<=i;j++)
{
[Link]("*");
}
[Link]();
}
■ Exam Tips
✔ Practice writing programs daily.
✔ Learn syntax properly.
✔ Revise outputs daily.
✔ Maintain neat handwriting.
✔ Don’t panic in exam.

Believe in yourself ■

You might also like