Sample Question Paper for Class X Students(USE BLUEJ JAVA)


This paper is helpful to all schools who follow bluej java

This paper is helpful to all school Students.
Mainly this paper is build for Icse/Cbse affliated English Medium School.




COMPUTER APPLICATIONS
Sample paper for icse/isc students.

SECTION - A (40 MARKS)
Attempt all questions from this Section
Q.1. ( a ) Explain any two types of access specifies.
( b ) State the difference between = = operator and equals( ) function.
( c ) What is the difference between SWITCH and IF-ELSE statement?
( d ) Explain the term INITIALIZATION OF ARRAYS in JAVA. How is it done?
( e )Explain SHORTHAND notations in JAVA.
[10]
Q.2. ( a ) What is the value of x after evaluating?
x + = x + + + - - x + 5
if x = 2, before the evaluation.
( b ) How are the operators / and % different?
( c ) Write the name and syntax of the function which is used to extract characters
from strings.
( d ) Differentiate between operator and expression.
( e ) Explain the meaning of break and continue statements.
[10]
Q.3. ( a ) Convert the segment into equivalent do-while loop. [3]
for( int k=0, k=6 ; ; )
{
if(i<=15)
{
for( int j=i ;j<= 4; )
{
System.out.print( k+ “ “ + j);
j++;
l++;
}
l++;
}
}
( b ) If array[ ] = {1,9,8,5,2}; [2]
( i ) What is array. length?
( ii ) What is array[0]?
( c ) What does the following mean? [2]
Computer class = new Computer( );
( d ) Write a JAVA statement to input/read the following from the user using
keyboard. [2]
( i ) Character.
( ii ) String.
( e ) What is the purpose of new operator? [2]
( f ) What is a package? Give examples. [2]
( g ) Find and correct the errors in the following program segment:- [3]
int n[ ] = (2,4,6,89,10);
for(int i=0;i<=5;i++)
System.out.println(“n[“+i+"]="+n[i]);
( h ) Find the output of the following program segment,when:
[2]
( i ) val = 20
( ii ) val=150
int val,n=55,sum;
sum= n+ val>175?400:200;
System.out.println(sum);
( i ) What is the output of the following: [2]
( i ) System.out.println( “four:"+4+2);
System.out.println( “four:"+(2+2));
( ii ) String S= “HELLO";
String S2= “There";
String S3= “HELLO";
String S4= “THERE";
System.out.println(S + “equals" + S3 + “—“ + S.equals(S3));
System.out.println(S2 + “equals" + S4 + “—“ +
S2.equalIgnoreCase(S4));

SECTION - B (60 MARKS)
Attempt any four out of six

Each program should contain the description of the variables used.
Q.4. A computer dealer sells computer at the following rates: [15]
( a ) Rs. 35000 per computer for less then 20 computers.
( b ) Rs. 31000 per computer for 20 to 39 computers.
( c ) Rs. 29000 per computer for 40 or more computers.
Write a program to take the number of computers as input and display the bill. A
customer gets a further 10% discount of his dealing with the dealer for more than 5 years.
Q.5. Write a program to do the following:
[15]
( a ) ( i ) To output the question “ Who has the rights of JAVA?".
( ii ) To accept an answer.
(iii) To print out “Well answered" and then stop, if the answer is correct.
(iv) To output the message “Try Again", if the answer is wrong.
(v) To display the correct answer when the answer is wrong even at the third
attempt and
stop.
( b ) Write a program in java to accept a number, count and print the total number
even of digits.
Q.6. Write a program to input a numbers into an array of 4 rows and 4 columns.
Display the sum of each row and each column in the format given below:
1 2 3 4 10
4 3 2 1 10
2 3 1 5 11
6 2 3 5 16
13 10 9 15
The numbers in BOLD are inputs by the user. The number in italics are the
results. Please do
not take these numbers to write your program. Input from the user is to be taken.
Q.7. Write a menu driven program to convert a given temperature from Fahrenheit to
Celcius and
vice versa. For an incorrect choice, an appropriate error message should be
displayed.
(HINT : C= (5/9)*(F-32) and F=1.8*(C+32)
[15]
Q.8 Write a program to store the names of 10 students in a single dimensional array.
[15]
Calculate the total marks along with percent and display the “REPORT" as per
given format:
REPORT
Name Marks1 Marks2 Marks3 Total Marks
Percent
- - - - - -
- - - - - -
Q.9. Write a program to compute and display the sum of the following series:
[15]

S=1-3+5-7+..............+N

CREATED BY SUBRATA RAT(MSCIT),HOD EAST WEST MODEL SCHOOL


Comments



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: