|
ICSE Papers ICSE Guess > ICSE Papers > Important Questions > Class X > 2009 > Computer Application > Computer Applicatino By Mr. Vinod Khare
Test Paper – I (based on switch –case and if – else statement) Q. 1. WAP for following specification:
void display(): to display the following data in given format:
Now write a main method to create the object of the above class and call the above method to calculate and print the gross salary of an employee. Q. 2. Write the output of following statements: switch(num)
Q. 3. Differentiate between: switch and if-else Q. 4. A taximeter follows the following method of billing: Rs. 20 for the first kilometers, Q. 5.Write the equivalent switch case statement for the following decision making situation. If(x==’1’ || x==’3’) Q. 6. WAp to compute the railway fare depending on the criteria as given
Test Paper – I (based on switch –case and if – else statement) Q. 1. Write a java class to calculate the income tax by taking monthly salary of an employee based on the following conditions: Annual Income (Rs) Tax Q. 2. Write a java class to calculate and print the electricity bill to be paid by a customer. Assume that the customer pays a rent of Rs. 250.00 . No. of units Charge per unit Q. 3. Digital World announces seasonal discount on the laptops in the given order. Cost of the laptop Discount Q. 4. Define a class salary described as below: Data members: name, Address, Phone, Subject Specialization, Monthly Salary, Income Tax
Write a main method to create object of a class and call the above member method. Q. 5. Write a menu driven program for following menu:
Q. 6. Write a program for following specification: Class name – student now write the main method to create the object of the class and call the above method.
Test Paper – I (based on switch –case and if – else statement) Q. 13. Define a class salary described as below:-
Write a main method to create object of a class and call the above member method. Q. 14. A cloth showroom has announced the following festival discounts on the purchase of items, based on the total cost of the items purchased:- Total cost Discount (in Percentage)
Write a program to input the total cost and to compute and display the amount to be paid by the customer after availing the discount. Q. 15. Write a program that outputs the results of the following evaluations based on the number entered by the user.
Q16.Write a program using a function called area() to compute the area of a :
Q. 17. Write the syntax of switc-case statements. Q. 18. Define fall through in reference of switc-case statement. VXL TUTORIALS |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
About Us - Guest Book - Education Forum - Contact Us - Help - Links - Advertise With Us - Terms of Service - Privacy Policy
© 2003-2012, ICSEGuess.com |