0% found this document useful (0 votes)
7 views

Icse 10 Montgly 24

ICSE class 10 question paper June 24

Uploaded by

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

Icse 10 Montgly 24

ICSE class 10 question paper June 24

Uploaded by

sarfoon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

SEVENTH DAY ADVENTIST HIGH SCHOOL

MONTHLY EXAMINATION
STD : X D,E COMPUTER APPLICATIONS MARKS: 50

SECTION ‘A’ (20 MARKS)


(Attempt all questions)
Question 1
(a) A mechanism where one class acquires a properties of another class _________ [1]
(b) Exposing only essential features while hiding unnecessary details is _____. [1]
(c) What is type casting? When do we need it? [2]
(d) Missing semicolon is what type of error? [1]
(e) Give the output Math.pow(64,1/3) + Math.sqrt(121) [1]
(f) Give one similarity and one differentiate for and while loop [2]
(g) What is fall through? [2]
Question 2
(a) What is the value of m if m= 10,n = 6? [2]
m - = 9%++n ++ +n /2
(b) Give the output of the following. [2]
int n= 5387; int d;
while (n>0) {
d= n%10:
System.out.println(d);
n =n/100;. }
(c) Write notes on break and continue statements [2]
(d) a= 1000;. while ( a>10). [2]
{. a= a/10; }
System.out.println(n);
How many times the loop is executed and what is the output?
(e) Write the Java expression for. ( a+b) x |x 2 + xy | [2]

SECTION - ’B’(30 MARKS)


(Attempt any two questions)
Question 3
Design a class student with the following description
Instance variables
String name. – to store the name of the student
int age – to store age of the student
int marks – to store marks
String stream – to store the stream allocated
Member Functions
void accept( ). – to accept name, age,marks using Scanner class
void calculate( ). – to allocate stream as follows
mks stream
>= 300. Science and Computer
200 to 299. Commerce and Computer
75 to 199 Arts and Animation
< 75 Try again

void display( ). – to display the result


Write a main program to create an object for the class and call the methods

QQuestion 4
Design a class employee with the following description
Instance variables
String name. – to store the name of the employee
int empno – to store the employee number
double salary. – to store the basic salary
double pf – to store the provident fund
double pay. – to store the net pay
Member Functions
void input( ). – to accept name, employee number and salary
void calculate( ). – to calculate pf and net pay as follows
pf = 12% of salary
netpay. = salary - pf
void display( ). – to display the pay slip
Write a main program to create an object for the class and call the methods

Question 5
Design a class telephone with the following description
Instance variables
String name. – to store the name of the consumer
int phno – to store the phone number
int calls. – to store the number of calls
double charge – to store the amount to be paid
Member Functions
void input( ). – to accept name, phone number and calls count
void calculate( ). – to calculate charge as follows

Calls. Rate / call


Upto 100. Free
101 to 300. 2
301 to 500 3
Above 500. 3.50
void display( ). – to display the bill
Write a main program to create an object for the class and call the methods

You might also like