You are on page 1of 2

Spicer Higher Secondary School (ICSE/ISC)

First Term Examination 2020 - 21


Subject: Computer Applications
Standard: X (C & D)
Time 1 Hr. Marks: 40

Instructions:
1. You must write your full Name, Standard, Section, Date, Subject and
page number on every answer sheet.
2. Answers must be written on the answer sheets separately.
3. Send your Answer Sheets in PDF to either:
E – Mail Id: atrameshga642@gmail.com OR WhatsApp No : 9850659969

Section A (20 Marks)

(Attempt all the questions from this section)

Question 1: [10]

(a) Define JVM.


(b) Define Variable and Expression
(c) What is the use of keyword final? How will declare in java program
(d) Differentiate between Math.ceil() and Math.floor() with solved example
(e) What is the difference between / and % operator with solved example

Question 2: [10]

(a) Identify the literals listed below : (i)0.5 (ii)'A' (iii)false (iv)"a"

(b) if int y = 10 then find


int z = (++y*(y++ +5));

(c) What are the types of casting shown by the following examples?
(i) double x=15.2;
int y=(int)x;
(ii) int x=12;
long y =x:

(d) Evaluate the value of n if value of p = 5, q = 19


int n = (q - p) > (p - q) ? (q - p) : (p - q);

(e) Write equivalent java syntax for the following expression:


a = 0.05 – 2y3
x-y

Page 1 of 2
Section B (20 Marks)
(Attempt any two questions from this section)
Question 3: [10]

A cloth showroom has announced the following festival discounts and the assured
gifts on the purchase of items, based on the total cost of the item purchased:

Total Cost Discount Assured Gift


Less than or up to Rs. 5% Wall Clock
2000
Rs. 2,001 to Rs. 5,000 10% School Bag
Rs. 5,001 to Rs. 10,000 15% Electronic Iron
More than Rs. 10,000 20% Wrist Watch

Write a program to input the total cost of the item purchased, discount, amount to
be paid after availing discount and the assured gift.

Question 4: [10]
Using a switch statement, write a menu driven program for:
(i) To find sum of product of the following series:
S=1 + (1 x 2) + (1 x 2 x 3) + (1 x 2 x 3 x 4) + (1 x 2 x 3 x 4 …… x 20)

(ii) Generate and display the first 10 terms of the Fibonacci series 0,1,1,2,3,5…
The first two Fibonacci numbers are 0 and 1, and each subsequent number
is the sum of the previous two.

(iii) To print series 0, 7, 26, 63, 124 .........n terms (value of ‘n’ is to be an input by
the user)

Question 5:

An electronics shop has announced the following seasonal discount on the purchase
of certain items

Purchase Amt . in Rs. Discount on Laptop Discount on Desktop


PC
0-25000 0.0% 5.0%
25001-57000 5.0% 7.5%
57001-100000 7.5% 10.0%
More than 100000 10.0% 15.0%
WAP based on the above criteria, to input name, address, amount of purchase and
the type of purchase(L for Laptop and D for Desktop) by a customer. Compute and
print the net amount to be paid by a customer along with his/her name and address.

[Hint: discount =(discount rate/100)*amount of purchase


Net amount = amount of purchase - discount]

*****All The Best*****

Page 2 of 2

You might also like